At 4:13 AM -0500 7/23/99, Hotdog wrote:
>Hi,
> I had installed mysql on Linux,FreeBSD,Sco osv and other system,all
>seems nice.
>Now,I installed mysql on Sun Solaras 7.0-intel-x86 box,but now, some
>problem take
>place.
> On Solaras 7, Mysql can be success compiled and run. (But there is still
>a little
>problem,term.h,i had to modify it). But,when compile myself programs,error
>comes..
>(GCC)
>
>Compile system file...
>Undefined first referenced
> symbol in file
>socket /usr/local/lib/mysql/libmysqlclient.so
>gethostbyname /usr/local/lib/mysql/libmysqlclient.so
>setsockopt /usr/local/lib/mysql/libmysqlclient.so
>getservbyname /usr/local/lib/mysql/libmysqlclient.so
>getsockopt /usr/local/lib/mysql/libmysqlclient.so
>inet_addr /usr/local/lib/mysql/libmysqlclient.so
>shutdown /usr/local/lib/mysql/libmysqlclient.so
>connect /usr/local/lib/mysql/libmysqlclient.so
>ld: fatal: Symbol referencing errors. No output written to sys/checkpassword
>
>I using the following command to compile program:
>
>cc -w -I/usr/local/include/mysql -L/usr/local/lib/mysql checkpassword.c -o
>sys/c
>heckpassword -lm -lmysqlclient -lcrypt
>
>The include files sys/socket.h & netdb.h are all ok.
>
>
>Anyone can tell me how can I do now ?
Add -lsocket -lnsl to your command.
--
Paul DuBois, paul@stripped