On Mon, 4 Jun 2001, Emiliano wrote:

> Andrew J Erickson wrote:
> 
> > MySQL is installed correctly and the libraries are in /usr/local/lib and
> > /usr/local/mysql/lib.
> 
> In both locations? That's not very usual. Shared libs or dynamic ones?

They are all static libraries. The excess libraries are left over from a
binary install of MySQL of the same version.

ice-weasel:/usr/local/lib/mysql>l
total 2224
-rw-r--r--  1 root  wheel   19136 Jun  3 17:44 libdbug.a
-rw-r--r--  1 root  wheel   42128 Jun  3 17:44 libheap.a
-rw-r--r--  1 root  wheel   17524 Jun  3 17:44 libmerge.a
-rw-r--r--  1 root  wheel  300440 Jun  3 17:44 libmyisam.a
-rw-r--r--  1 root  wheel   28136 Jun  3 17:44 libmyisammrg.a
-rw-r--r--  1 root  wheel  237824 Jun  3 17:44 libmysqlclient.a
-rw-r--r--  1 root  wheel     638 May  9 21:14 libmysqlclient.la
-rw-r--r--  1 root  wheel   23472 Jun  3 17:44 libmystrings.a
-rw-r--r--  1 root  wheel  308456 Jun  3 17:44 libmysys.a
-rw-r--r--  1 root  wheel  137464 Jun  3 17:44 libnisam.a

> 
> > I have attempted specifying the LDFLAGS in the
> > environment as has been previously suggested, along with the standard
> > --with-mysql=/usr/local/mysql, but nothing seems to work. Has anyone
> > figured out the problem? The output of my config.log follows.
> 
> Set the CFLAGS, LIB and LIBS variables to the same values, and try
> again.
> 

Okay, I set LDFLAGS, CFLAGS, LIB, and LIBS to "-L/usr/local/
-L/usr/local/mysql -L/usr/local/lib" and configure still fails. Here are
the offending lines in config.log.

configure:1244: checking for mgd_connect in -lmidgard
configure:1263: cc -o conftest -L/usr/local/ -L/usr/local/mysql
-L/usr/local/lib  -I/usr/local/include -I/sw/lib/glib/include
-I/sw/include -L/usr/local/ -L/usr/local/mysql -L/usr/local/lib conftest.c 
-lmidgard -L/usr/local/ -L/usr/local/mysql -L/usr/local/lib
-L/usr/local/mysql/lib/mysql -L/usr/local/lib -L/sw/lib -lglib 1>&5
/usr/bin/ld: Undefined symbols:  
_mysql_close
_mysql_errno
etc...

Looks like it's using the new environment variables, but still isn't
working. Should I reinstall mysql?

Thanks,
Andy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to