[osol-discuss] Compiling fails with undefined gethostbyname errors

2007-02-16 Thread Frank Mash
Hi all, I am trying to compile bitkeeper free client on Solaris 10. However I keep getting the following errors: bash-3.00# CC=cc bash-3.00# export CC bash-3.00# make cc -O2 -Wall -Wno-parenthesesbkf.c -o bkf cc: Warning: option -2 passed to ld cc: illegal option -Wall make: *** [bkf]

Re: [osol-discuss] Compiling fails with undefined gethostbyname errors

2007-02-16 Thread Alan Coopersmith
Frank Mash wrote: Hi all, I am trying to compile bitkeeper free client on Solaris 10. However I keep getting the following errors: bash-3.00# CC=cc bash-3.00# export CC bash-3.00# make cc -O2 -Wall -Wno-parenthesesbkf.c -o bkf cc: Warning: option -2 passed to ld cc: illegal option

Re: [osol-discuss] Compiling fails with undefined gethostbyname errors

2007-02-16 Thread Al Hopper
On Fri, 16 Feb 2007, Alan Coopersmith wrote: Frank Mash wrote: Hi all, I am trying to compile bitkeeper free client on Solaris 10. However I keep getting the following errors: bash-3.00# CC=cc bash-3.00# export CC bash-3.00# make cc -O2 -Wall -Wno-parenthesesbkf.c -o

Re: [osol-discuss] Compiling fails with undefined gethostbyname errors

2007-02-16 Thread Alan Coopersmith
Al Hopper wrote: And now I'm sure that the real linker-saavy experts are going to show us both a better way to accomplish this. But I've been doing this since I first started working with Solaris many moons ago... :) I often use similar nm grepping myself, though the first resort is the much

Re: [osol-discuss] Compiling fails with undefined gethostbyname errors

2007-02-16 Thread James Carlson
Al Hopper writes: for i in /lib/*.so do /usr/ccs/bin/nm -Ag $i |grep -v UNDEF |grep gethostbyname done Please don't do that. There's no guarantee at all that the symbols you find with 'nm' are actually supported. If you use that (or, for that matter, grep over header files), then you can

Re: [osol-discuss] Compiling fails with undefined gethostbyname errors

2007-02-16 Thread Joerg Schilling
Al Hopper [EMAIL PROTECTED] wrote: Undefined first referenced symbol in file gethostbyname /var/tmp//ccgyLdOf.o socket /var/tmp//ccgyLdOf.o connect