Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Barnyard-0.2 with mysql - configure fails -on X86_64 - Please help!: msg#00000

Subject: Re: Barnyard-0.2 with mysql - configure fails -on X86_64 - Please help!
Many Thanks Paul.
 
My problem is now sorted out.
 
Solution:
 
1. I checked the file "config.log" in /usr/local/barnyard-0.20 which shows: gcc says the library is incompatible. ( see log below)

*********************

idpsmgts:/usr/local/barnyard-0.2.0 # vi config.log

configure:2494: checking for /usr/include/mysql/mysql.h

configure:2504: gcc -E -I/usr/include/mysql -DENABLE_MYSQL conftest.c >/dev/null 2>conftest.out

configure:2559: checking for mysql_real_connect in -lmysqlclient

configure:2578: gcc -o conftest -g -O2 -Wall -I/usr/include/mysql -DENABLE_MYSQL -L/usr/lib/mysql conftest.c -lmysqlclient -lz -lssl -lmysqlclient 1>&5

/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient

/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient

/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient

/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: cannot find -lmysqlclient

collect2: ld returned 1 exit status

***************************************

2. Verified all mysql rpms, some are for X86_64 and some are for i586. Found the problem.... incomatible libraries (some 32 bit, some 64 bit).

3. Un-installed all mysql rpms and Installed all X86_64 rpms for mysql-devel, mysql-client, mysql-shared libraries.

4.  ./configure;make;make install - works fine.

Thanks for your help.
sisa.



Paul Schmehl <pauls@xxxxxxxxxxxx> wrote:
--On Monday, February 28, 2005 06:46:50 AM -0800 s s
wrote:
>
[snipped]
>
> 5. ls -al /usr/lib/mysql
>
> mysystem:/usr/local/barnyard-0.2.0 # ls -al
>
> /usr/lib/mysql/
>
[snipped]
>
> 6. Configure script error:
>
> mysystem:/usr/local/barnyard-0.2.0 #./configure --enable-mysql
>
Try this instead:
./configure --enable-mysql --with-mysql-libraries=/usr/lib/mysql

You may also need to specify the location of the mysql includes:
./configure --enable-mysql --with-mysql-libraries=/usr/lib/mysql
--with-mysql-includes=/usr/include (or /usr/local/include)

Paul Schmehl (pauls@xxxxxxxxxxxx)
Adjunct Information Security Officer
The University of Texas at Dall as
AVIEN Founding Member
http://www.utdallas.edu


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Barnyard-users mailing list
Barnyard-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/barnyard-users


Do you Yahoo!?
Yahoo! Sports - Sign up for Fantasy Baseball.
<Prev in Thread] Current Thread [Next in Thread>