I typed following command:
LDFLAGS="-L/usr/local/instfiles/mysql/lib -lnsl -lsocket -lmysqlclient" ./con
figure --with-mysql=/usr/local/instfiles/mysql
The log file is like following:
configure:1904: gcc -o conftest -g -O2 -L/usr/local/instfiles/mysql/lib -lnsl -
lsocket -lmysqlclient conftest.c -lmysqlclient 1>&5
Undefined first referenced
symbol in file
floor /usr/local/instfiles/mysql/lib/libmysqlclien
t.a(password.o)
ld: fatal: Symbol referencing errors. No output written to conftest
configure: failed program was:
#line 1893 "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();
int main() {
mysql_connect()
; return 0; }
If I typed following:
LDFLAGS="-L/usr/local/instfiles/mysql/lib -lmidgard -lmysqlclient" ./configure
--with-mysql=/usr/local/instfiles/mysql
The log file is following:
configure:1095: gcc -o conftest -L/usr/local/instfiles/mysql/lib -lmidgard -lm
ysqlclient conftest.c 1>&5
ld: fatal: library -lmidgard: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
#line 1090 "configure"
#include "confdefs.h"
main(){return(0);}
Emile Heyns wrote:
> Zhuang Chenchao wrote:
>
> > LDFLAGS="-L/usr/local/instfiles/mysql/lib -lmidgard -lmysqlclient"
> > ./configure --with-mysql=/usr/local/instfiles/mysql
> >
> > The output is
> > checking whether the C compiler (gcc -L/usr/local/instfiles/mysql/lib
> > -lmidgard
> > -lmysqlclient) works... no
> > configure: error: installation or configuration problem: C compiler cannot
> > create executables.
>
> I'd like to see the config.log
>
> > When I type
> > LDFLAGS="-L/usr/local/instfiles/mysql/lib -lmidgard -lmysqlclient"
> > ./configure --with-mysql=/usr/local/instfiles/mysql
>
> This looks exactly like the line above. BTW: this should all be on
> one line.
>
> Bye,
> Emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]