DBI::mysql 3.0002 on X86_64 link error

Niels Larsen <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
Greetings,

When trying to 'make' DBI::mysql version 3.002 on opensuse 10.0 linux
on an AMD 64 bit machine i get the error below. The MySQL version I am
trying against is 4.1.15, compiled from source. Would anyone know the
medicine against this? On a 32-bit system with Mandriva LE 2005
there were no problems. I get the same error with DBD::mysql 2.904.

Niels L

------------------------------------------------------------------------

Niels Larsen
Danish Genome Institute

Electronic mail: [email protected]

------------------------------------------------------------------------


<pre>
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c 
-I/home/biobase/GOFFICE/Software/Package_installs/Perl/lib/perl5/site_perl/5.8.6/x86_64-linux/auto/DBI/ 
-I/home/biobase/GOFFICE/Software/Package_installs/MySQL/include/mysql 
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -fno-strict-aliasing -pipe -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"3.0002\" 
-DXS_VERSION=\"3.0002\" -fpic 
"-I/home/biobase/GOFFICE/Software/Package_installs/Perl/lib/perl5/5.8.6/x86_64-linux/CORE" 
   dbdimp.c
/home/biobase/GOFFICE/Software/Package_installs/Perl/bin/perl -p -e 
"s/~DRIVER~/mysql/g" 
/home/biobase/GOFFICE/Software/Package_installs/Perl/lib/perl5/site_perl/5.8.6/x86_64-linux/auto/DBI//Driver.xst 
 > mysql.xsi
/home/biobase/GOFFICE/Software/Package_installs/Perl/bin/perl 
/home/biobase/GOFFICE/Software/Package_installs/Perl/lib/perl5/5.8.6/ExtUtils/xsubpp 
  -typemap 
/home/biobase/GOFFICE/Software/Package_installs/Perl/lib/perl5/5.8.6/ExtUtils/typemap 
  mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 224
Warning: duplicate function definition 'rows' detected in mysql.xs, line 559
cc -c 
-I/home/biobase/GOFFICE/Software/Package_installs/Perl/lib/perl5/site_perl/5.8.6/x86_64-linux/auto/DBI/ 
-I/home/biobase/GOFFICE/Software/Package_installs/MySQL/include/mysql 
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -fno-strict-aliasing -pipe -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"3.0002\" 
-DXS_VERSION=\"3.0002\" -fpic 
"-I/home/biobase/GOFFICE/Software/Package_installs/Perl/lib/perl5/5.8.6/x86_64-linux/CORE" 
   mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/lib" /home/biobase/GOFFICE/Software/Package_installs/Perl/bin/perl myld 
cc  -shared -L/usr/local/lib dbdimp.o mysql.o  -o blib/arch/auto/DBD/mysql/mysql.so 
  -L/home/biobase/GOFFICE/Software/Package_installs/MySQL/lib/mysql -lmysqlclient -lz 
-lcrypt -lnsl -lm
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld: 
/home/biobase/GOFFICE/Software/Package_installs/MySQL/lib/mysql/libmysqlclient.a(libmysql.o): 
relocation R_X86_64_32 against `a local symbol' can not be used when making a shared 
object; recompile with -fPIC
/home/biobase/GOFFICE/Software/Package_installs/MySQL/lib/mysql/libmysqlclient.a: 
could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
</pre>

-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.