Hi --- Artur Hecker <[EMAIL PROTECTED]> wrote: > hi > > > > checking for compress in -lz... no > > install the libz. >
How can I get and install the libz? > > > # gcc SQL.c -L/usr/local/mysql/lib -lmysqlclient > > > > However, I can't be success. > > > > #Undefined first referenced > > symbol in file > > socket /usr/local/mysql/lib/libmysqlclient.a > > (libmysql.o) > > getpeername /usr/local/mysql/lib/libmysqlclient.a > > (violite.o) > > gethostbyname_r > > /usr/local/mysql/lib/libmysqlclient.a > > (libmysql.o) > > setsockopt > /usr/local/mysql/lib/libmysqlclient.a > > (violite.o) > > getservbyname > /usr/local/mysql/lib/libmysqlclient.a > > (libmysql.o) > > floor /usr/local/mysql/lib/libmysqlclient.a > > (password.o) > > getsockopt /usr/local/mysql/lib/libmysqlclient.a > > (libmysql.o) > > inet_addr > /usr/local/mysql/lib/libmysqlclient.a > > (libmysql.o) > > inet_ntoa > > /usr/local/mysql/lib/libmysqlclient.a > > (my_net.o) > > shutdown > > /usr/local/mysql/lib/libmysqlclient.a > > (violite.o) > > connect > /usr/local/mysql/lib/libmysqlclient.a > > (libmysql.o) > > ld: fatal: Symbol referencing errors. No output > > written to a.out > > collect2: ld returned 1 exit status > > you should add some -L and -l options to the > compiler command, since it > seems not to find a lot of basic things on your > system. it definitely > should find gethostbyname etc. they should be in the > libresolv.a or > something. this is very very basic, you can hardly > compile any > (network-related) program without this. probably > your gcc isn't > configured like it should. take a look to a usual > working gcc command on > your system and copy all -L and -l options. > The compilier is gcc 3.2 binary distribution which downloads from sunfreeware.com. I used all default setting for installation. Thanks K _______________________________________________________________________ Do You Yahoo!? Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
