Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Manfred Gruber <manfred.gruber@lottery.co.at>
Subject: problem with makefile
Date: 1998/12/01	[thread overview]
Message-ID: <3663FF18.DE55884E@lottery.co.at> (raw)

Hi,
I have a problem with compiling a program. 
I'm running OSF1 V4.0D and I want to use a Makefile that looks like
that:

VVVVVVVVVVVVVVVV Makefile START VVVVVVVVVVVVVVVVVVVVVVVVVVVV

INCLUDEDIR=/usr/local/net-351/include

CC_CMD=cc -O -DNET_SSL -DSOLARIS -D_REENTRANT

LD_SHAREDCMD=ld -G

all:

JRUN_OBJS = extension.o interface.o jrun_proxy.o

INCLUDE_FLAGS=-I$(INCLUDEDIR) -I$(INCLUDEDIR)/base -I$(INCLUDEDIR)/frame

COMMON_DEFS=-DMCC_HTTPD -DXP_UNIX -DSPAPI20 -DNSAPI

all: libjrun_nsapi.so

libjrun_nsapi.so: $(JRUN_OBJS)
        $(LD_SHAREDCMD) $(JRUN_OBJS) -o libjrun_nsapi.so
$(EXTRA_LDDEFINES)

.c.o:
        $(CC_CMD) $(COMMON_DEFS) $(INCLUDE_FLAGS) -c -o $@ $<

clean:
        rm $(JRUN_OBJS) libjrun_nsapi.so $(EXTRA_CLEAN)

^^^^^^^^^^^^^^^^^^ Makefile STOP ^^^^^^^^^^^^^^^^^^^^^^

After successfully compiling extension.c, interface.c and jrun_proxy.c
there is an error when ld starts. It says:

ld -G extension.o interface.o jrun_proxy.o -o libjrun_nsapi.so
ld:
Error: Undefined:
__lc_ctype
sprintf
sscanf
atoi
memcpy
strlen
strcpy
strcmp
__nsapi30_table
WriteToLog
Verbose
bzero
select
connect
recv
send
setsockopt
socket
htons
htonl
inet_addr
printf
_errno
close
realloc
memset
strcat
*** Exit 1
Stop.

Can anyone tell me witch library is missing or what is wrong with my
Makefile?

Regards 

	Manfred



             reply	other threads:[~1998-12-01  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-01  5:00 Manfred Gruber [this message]
1998-12-04  5:00 ` problem with makefile Charles M Richmond
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox