Sam Varshavchik wrote:
>
> On Tue, 25 Jul 2000, TAG wrote:
>
> > Sam Varshavchik wrote:
> > >
> > > On Tue, 25 Jul 2000, TAG wrote:
> > >
> > > > OK - I got that - where is it and why does the mysqld work as well as
> > > > the mysql-qmail work??
> > > >
> > > > Where is this mysqlclient??? - I thought that that was mysql - the
> > > > client package???
> > >
> > > Yes it is. The mysql library is not found by your compiler.
> > >
> > > --
> > > Sam
> >
> >
> > OK- I am a bit dimm today - what is the file called - you said it is a
>
> The name of the library is either libmysqlclient.a or libmysqlclient.so.
>
> > library - which one?? and how do I get the compiler to use it ???
>
> That's something you'll have to check your compiler's documentation for.
>
> --
> Sam
OK - I have found the lib file - called libmysqlclient.a and placed a
simlink into /usr/lib/
Now I get :
configure:2263: checking for getspent
configure:2291: gcc -o conftest -g -O2 -Wall -I.. -I./.. conftest.c
1>&5
configure:2615: checking for mysql_connect in -lmysqlclient
configure:2634: gcc -o conftest -g -O2 -Wall -I.. -I./.. conftest.c
-lmysqlclient 1>&5
Undefined first referenced
symbol in file
socket
/usr/lib/libmysqlclient.a(libmysql.o)
gethostbyname
/usr/lib/libmysqlclient.a(libmysql.o)
setsockopt
/usr/lib/libmysqlclient.a(libmysql.o)
getservbyname
/usr/lib/libmysqlclient.a(libmysql.o)
floor
/usr/lib/libmysqlclient.a(password.o)
getsockopt
/usr/lib/libmysqlclient.a(libmysql.o)
inet_addr
/usr/lib/libmysqlclient.a(libmysql.o)
shutdown
/usr/lib/libmysqlclient.a(libmysql.o)
connect
/usr/lib/libmysqlclient.a(libmysql.o)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 2623 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_connect();
in config.log.....
ALSO - I may not have mentioned it - but I am using Sun Solaris 2.8 as
OP system....
Any ideas??
Tnaks a ton :)
Tonino