* problem with makefile
@ 1998-12-01 5:00 Manfred Gruber
1998-12-04 5:00 ` Charles M Richmond
0 siblings, 1 reply; 2+ messages in thread
From: Manfred Gruber @ 1998-12-01 5:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: problem with makefile
1998-12-01 5:00 problem with makefile Manfred Gruber
@ 1998-12-04 5:00 ` Charles M Richmond
0 siblings, 0 replies; 2+ messages in thread
From: Charles M Richmond @ 1998-12-04 5:00 UTC (permalink / raw)
OSF1 V4.0D != "-DSOLARIS"
In Solaris the "-G" permits undefined symbols while creating a shared
object. I do not know what "-G" does under the OSF/1 'ld'.
At the end of the day, it looks like you have the wrong makefile.
Manfred Gruber wrote:
>
> 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
--
***********************************************************************
* Charles Richmond Integrated International Systems Corporation *
* cmr@iisc.com cmr@koibito.iisc.com cmr@shore.net *
* UNIX Internals, I18N, L10N, X, Realtime Imaging, and Custom S/W *
* One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 *
* (617) 723 7695 (617) 367 3151 FAX (617) 723 6861 *
***********************************************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-12-04 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-01 5:00 problem with makefile Manfred Gruber
1998-12-04 5:00 ` Charles M Richmond
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox