On Tue, 27 Feb 2001, Curtis Kelch wrote:
> I am trying to get analog compiled on a Solaris 2.6 platform. When I run
> make I get the following error:
>
> gcc -O2 alias.o analog.o cache.o dates.o globals.o hash.o init.o init2.o
> input.
> o macinput.o macstuff.o output.o output2.o pcre.o process.o settings.o
> sort.o t
> ree.o utils.o win32.o -o analog -lnsl
> Undefined first referenced
> symbol in file
> __inet_addr alias.o
> ld: fatal: Symbol referencing errors. No output written to analog
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `analog'
>
> I have tried changing the Makefile LIBS= line to LIBS = -lnsl and LIBS =
> -lnsl -lm with no change. I have tried searching the list with no
> luck. Any ideas? Let me know if anyone needs more information.
>
Not including -lnsl normally produces an error for inet_addr, not
__inet_addr. I strongly suspect that your system libraries are in a broken
state. In other words, it found inet_addr, but I suspect that inet_addr
calls __inet_addr internally on your OS, and that that latter function is
missing.
Apart from getting mended libraries, you can use
DEFS = -DNODNS
This will ignore that part of the code. The price is that you will lose DNS
lookups.
--
Stephen Turner http://www.statslab.cam.ac.uk/~sret1/
Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
"Your account can only be used for a single internet session at any one
time and for no more than 24 hours in any one day." (NTL terms of use)
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------