From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,715521ac225774ce X-Google-Attributes: gid1164f8,public From: Charles M Richmond Subject: Re: problem with makefile Date: 1998/12/04 Message-ID: <3667D7C8.2A9446D0@iisc.com>#1/1 X-Deja-AN: 418594266 Content-Transfer-Encoding: 7bit References: <3663FF18.DE55884E@lottery.co.at> X-Accept-Language: ja Content-Type: text/plain; charset=iso-2022-jp X-Complaints-To: abuse@shore.net X-Trace: news.shore.net 912775113 198.5.5.5 (Fri, 04 Dec 1998 07:38:33 EDT) Organization: Integrated International Systems Corporation MIME-Version: 1.0 NNTP-Posting-Date: Fri, 04 Dec 1998 07:38:33 EDT Newsgroups: comp.sys.dec 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 * ***********************************************************************