From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078618110511.tru64-unix-managers.marc@archive.invalid> From: Param Date: Fri, 17 Oct 1997 03:45:01 +0000 To: tru64-unix-managers Subject: [Fwd: help] X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078618110511 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------ACA00DEC6BC5CC463B352760" This is a multi-part message in MIME format. --------------ACA00DEC6BC5CC463B352760 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------ACA00DEC6BC5CC463B352760 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <3446DA5D.2105417C@wipsys.soft.net> Date: Fri, 17 Oct 1997 08:54:17 +0530 From: Parmanand Organization: Wipro Systems Banglore X-Mailer: Mozilla 4.03 [en] (WinNT; I) MIME-Version: 1.0 To: alpha-osf-manager@ornl.gov Subject: help Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi there I am new to unix. I was trying a simple socket program using gnu compiler but it always gave this result ------------------------------- The object file is being created /home/ravip/gnu/bin/cc -O -I/usr/include -I/usr/ucbinclude -o clig cli.o /usr/li b/libc.a /usr/ucblib/libucb.a /usr/lib/libsocket.a Undefined first referenced symbol in file endnetconfig /usr/lib/libsocket.a(_utility.o) setnetconfig /usr/lib/libsocket.a(_utility.o) getnetconfig /usr/lib/libsocket.a(_utility.o) inet_addr cli.o ld: fatal: Symbol referencing errors. No output written to clig *** Error code 1 make: Fatal error: Command failed for target `clig' ------------------- I used follwing makefile SHELL = /bin/sh FILE=cli COMPROG = /home/ravip/gnu/bin/cc OPTION = -O OBJECTF = $(FILE).o BSDHFILE = /usr/ucbinclude CLIB = /usr/lib/libc.a BSDLIB = /usr/ucblib BSDCFILE =/usr/ucblib/libucb.a SOCKLIB =/usr/lib/libsocket.a LIBRARY = $(CLIB) $(BSDCFILE) $(SOCKLIB) INCLUDES = -I/usr/include -I/usr/ucbinclude FLAGS = $(OPTION) $(INCLUDES) -o .SUFFIXES : .o .c $(FILE)g : $(OBJECTF) @ /usr/bin/echo "The object file is being created" $(COMPROG) $(FLAGS) $(FILE)g $(FILE).o $(LIBRARY) $(FILE).o : $(FILE).c @ /usr/bin/echo "The file is being compiled with -c option" $(COMPROG) $(INCLUDES) -c $(FILE).c -------------------- My machine is Sun Sytems In man pages of cc I found following BSD compatibles files and liberaries /usr/ucbinclude : for BSD header files /usr/ucblib : for BSD liberaries /usr/lib/libsocket : lib for socket routine ---------------- Please help me what may be problem in makefile or elsewhere Param Shrivastava param@wipsys.soft.net ~ --------------ACA00DEC6BC5CC463B352760--