incompatible /usr/lib/libmysqlclient.so
am 16.07.2008 22:36:45 von Scott_Campbell------_=_NextPart_001_01C8E783.A9EA4900
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi, I've been searching the archives, but still haven't found a solution
to my problem.
=20
I have a new RedHat Enterprise 5.2 system. I installed the
5.0.51a-0.rhel5 rpms of MySQL devel/server/shared/client community.
I compiled perl 5.10.0 (x86_64-linux) without any problems.
I downloaded and compiled/installed DBI-1.605 from CPAN without issue.
=20
I am now trying to install DBD-mysql-4.007. I keep getting the
following errors when I run "make":
=20
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when
searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /lib/libmysqlclient.so when searching
for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when
searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
=20
Does anyone have any suggestions?
Thank you,
Scott
=20
=20
Here is the full output/history:
=20
[root@pwm-wex-1030 DBD-mysql-4.007]# perl Makefile.PL
=20
I will use the following settings for compiling and testing:
=20
cflags (mysql_config) =3D -I/usr/include/mysql -g -pipe
-Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector
--param=3Dssp-buffer-size=3D4 -m32 -march=3Di386 -mtune=3Dgeneric
-fasynchronous-unwind-tables
embedded (mysql_config) =
libs (mysql_config) =3D -L/usr/lib/mysql -lmysqlclient -lz
-lcrypt -lnsl -lm
mysql_config (guessed ) =3D mysql_config
nocatchstderr (default ) =3D 0
nofoundrows (default ) =3D 0
ssl (guessed ) =3D 0
testdb (default ) =3D test
testhost (default ) =
=20
testpassword (default ) =
testsocket (default ) =
Use of uninitialized value in printf at Makefile.PL line 171,
line 93.
testuser ( ) =3D root
=20
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
=20
Using DBI 1.605 (for perl 5.010000 on x86_64-linux) installed in
/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/auto/DBI/
Writing Makefile for DBD::mysql
=20
=20
[root@pwm-wex-1030 DBD-mysql-4.007]# make
cc -c -I/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/auto/DB I
-I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions
-fstack-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di386
-mtune=3Dgeneric -fasynchronous-unwind-tables
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64
-I/usr/include/gdbm -O2 -DVERSION=3D\"4.007\" -DXS_VERSION=3D\"4.007\"
-fPIC "-I/usr/local/lib/perl5/5.10.0/x86_64-linux/CORE" dbdimp.c
cc -c -I/usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux/auto/DB I
-I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions
-fstack-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di386
-mtune=3Dgeneric -fasynchronous-unwind-tables
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64
-I/usr/include/gdbm -O2 -DVERSION=3D\"4.007\" -DXS_VERSION=3D\"4.007\"
-fPIC "-I/usr/local/lib/perl5/5.10.0/x86_64-linux/CORE" mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
/usr/local/bin/perl myld cc -shared -O2 -L/usr/local/lib dbdimp.o
mysql.o -o blib/arch/auto/DBD/mysql/mysql.so \
-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm
\
=20
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when
searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /lib/libmysqlclient.so when searching
for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when
searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
=20
=20
Scott Campbell
Systems Engineer
Wright Express
http://www.wrightexpress.com
(207) 523-7402
=20
------_=_NextPart_001_01C8E783.A9EA4900--