>Description: I get an error when I run the make on the msql:mysql DBD
perl module, specifically the mysql portion. I have already
checked the manuals and many archives on this subject and I
haven't found an answer. I have mysql version described below
installed locally(non-root) and working. My system is running
Perl5.00401. I have already successfully installed the
Data-Dumper and the DBI modules locally. So when running the
command perl5 Makefile.PL I added the PREFIX of my local
directory. I also defined the environment variable PERL5LIB to my
local directory. The DBD:mysql 1.2014
module however gives me the following output when I run make:
ease@macaque::/usr/people/ease/ann/Msql-Mysql-modules-1.2014> make
cc -c -I/usr/people/ease/ann/usr/local/lib/perl5/site_perl/IP32-irix/auto/DBI
-I/usr/people/ease/ann/mysql/include -I../dbd
-I/usr/people/ease/ann/usr/local/lib/perl5/site_perl/IP32-irix/auto/DBI
-I/usr/people/ease/ann/usr/local/lib/perl5/IP32-irix/5.00401 -DLANGUAGE_C -O
-DVERSION=\"2.0214\" -DXS_VERSION=\"2.0214\" -KPIC
-I/usr/local/lib/perl5/IP32-irix/5.00401/CORE -DDBD_MYSQL -DMyConnect=mysql_dr_connect
-DMyLogin=mysql_dr_login dbdimp.c
/usr/local/bin/perl5.00401 -I/usr/local/lib/perl5/IP32-irix/5.00401
-I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/ExtUtils/typemap mysql.xs >mysql.tc && mv mysql.tc
mysql.c
cc -c -I/usr/people/ease/ann/usr/local/lib/perl5/site_perl/IP32-irix/auto/DBI
-I/usr/people/ease/ann/mysql/include -I../dbd
-I/usr/people/ease/ann/usr/local/lib/perl5/site_perl/IP32-irix/auto/DBI
-I/usr/people/ease/ann/usr/local/lib/perl5/IP32-irix/5.00401 -DLANGUAGE_C -O
-DVERSION=\"2.0214\" -DXS_VERSION=\"2.0214\" -KPIC
-I/usr/local/lib/perl5/IP32-irix/5.00401/CORE -DDBD_MYSQL -DMyConnect=mysql_dr_connect
-DMyLogin=mysql_dr_login mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
LD_RUN_PATH="/usr/people/ease/ann/mysql/lib:/usr/lib" cc -o
.././blib/arch/auto/DBD/mysql/mysql.so -shared -L/usr/local/lib dbdimp.o mysql.o
-L/usr/people/ease/ann/mysql/lib -L/usr/people/ease/ann/mysql/lib -lmysqlclient -lm
ld: FATAL 113: cannot link new 32-bit object without -n32:
/usr/people/ease/ann/mysql/lib/libmysqlclient.a(libmysql.o).
*** Error code 1 (bu21)
*** Error code 1 (bu21)
Any ideas or help would be greatly appreciated!!
>How-To-Repeat: run make
>Fix:
>Submitter-Id: <submitter ID>
>Originator: bessenba
>Organization: NSIDC(National Snow and Ice Data Center)
>MySQL support: [none ]
>Synopsis: mysql DBD error:FATAL 113: cannot link new 32-bit object without -n32
<synopsis of the problem (one line)>
>Severity:
>Priority:
>Category: mysql
>Class:
>Release: mysql-3.22.22 (TCX binary)
>Server: ./mysqladmin Ver 7.11 Distrib 3.22.22, for sgi-irix6.3 on mips
TCX Datakonsult AB, by Monty
Server version 3.22.22
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /tmp/mysql.sock
Uptime: 1 day 5 hours 0 sec
Threads: 1 Questions: 1 Slow queries: 0 Opens: 6 Flush tables: 1 Open tables: 2
>Environment:
System: IRIX macaque 6.3 12161207 IP32
Some paths: /usr/local/bin/perl /sbin/make /usr/bin/cc
Compilation info: CC='gcc' CFLAGS='' CXX='gcc' CXXFLAGS='-O3' LDFLAGS=''
Configure command: ./configure --prefix=/usr/local/mysql '--with-comment=TCX binary'
--with-thread-safe-client --with-named-z-libs=not-used --disable-shared
Perl: This is perl, version 5.004_01
| Thread |
|---|
| • Problem with DBD:mysql make | bessenba | 26 May |