MySQL Forums
Forum List  »  Perl

problems installing DBD::mysql
Posted by: Florian Marquardt
Date: April 12, 2010 05:41AM

Hello folks.

I have a problem with installing DBD::mysql in the Version: 4.013
I run a Suse Linux Enterprise Server 6 and the mysql Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (i686) using readline 5.0. i have the gcc 3.3.3 installed.
So now my problem evertime i try to make install on the DBD::mysql i receive the following error:

cc -c
-I/usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi/auto/DBI
-I/usr/include/mysql -g -m32 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -DUNIV_LINUX -DUNIV_LINUX
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -Wall -pipe -DVERSION=\"4.013\"
-DXS_VERSION=\"4.013\" -fPIC
"-I/usr/lib/perl5/5.8.3/i586-linux-thread-multi/CORE" dbdimp.c
dbdimp.c: In function `dbd_discon_all':
dbdimp.c:1988: warning: unused variable `imp_xxh'
dbdimp.c: In function `mysql_st_prepare':
dbdimp.c:2386: warning: unused variable `limit_flag'
cc -c
-I/usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi/auto/DBI
-I/usr/include/mysql -g -m32 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -DUNIV_LINUX -DUNIV_LINUX
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -Wall -pipe -DVERSION=\"4.013\"
-DXS_VERSION=\"4.013\" -fPIC
"-I/usr/lib/perl5/5.8.3/i586-linux-thread-multi/CORE" mysql.c
mysql.xs: In function `XS_DBD__mysql__db_do':
mysql.xs:242: warning: unused variable `statement_ptr'
mysql.xs: In function `XS_DBD__mysql__st_more_results':
mysql.xs:588: warning: implicit declaration of function
`mysql_st_next_results'
mysql.xs:587: warning: unused variable `retval'
mysql.xs: In function
`XS_DBD__mysql__GetInfo_dbd_mysql_get_info':
mysql.xs:724: warning: implicit declaration of function
`is_prefix'
mysql.c: In function `XS_DBD__mysql__db_do':
mysql.xs:234: warning: `retval' might be used uninitialized in
this function
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/lib/mysql" /usr/bin/perl myld cc -shared
dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so
-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm
/usr/lib/mysql/libmysqlclient.a
(libmysql.o)(.text.__i686.get_pc_thunk.cx+0x0): In function
`mysql_get_parameters':
/usr/src/packages/BUILD/mysql-5.1.45/libmysql/libmysql.c:231:
multiple definition of `__i686.get_pc_thunk.cx'
dbdimp.o(.gnu.linkonce.t.__i686.get_pc_thunk.cx
+0x0):/home/marquardt/DBD-mysql-4.013/dbdimp.c:229: first defined
here
/usr/lib/mysql/libmysqlclient.a
(libmysql.o)(.text.__i686.get_pc_thunk.bx+0x0): In function
`mysql_get_parameters':
/usr/src/packages/BUILD/mysql-5.1.45/libmysql/libmysql.c:231:
multiple definition of `__i686.get_pc_thunk.bx'
dbdimp.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx
+0x0):/home/marquardt/DBD-mysql-4.013/dbdimp.c:229: first defined
here
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1

And make will return without a installation.
Can you help me solving this problem?
Regards
Florian

Options: ReplyQuote


Subject
Written By
Posted
problems installing DBD::mysql
April 12, 2010 05:41AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.