3 messages in com.mysql.lists.perlCompiling problems of DBD-mysql-2.900...
FromSent OnAttachments
Costaras Steve - stcost16 Jan 2004 09:10 
Jochen Wiedmann16 Jan 2004 14:48 
Costaras Steve - stcost19 Jan 2004 04:16 
Subject:Compiling problems of DBD-mysql-2.9003 under solaris 9?
From:Costaras Steve - stcost (Stev@acxiom.com)
Date:01/16/2004 09:10:35 AM
List:com.mysql.lists.perl

We're trying to get DBD-Mysql 2.9003 running w/ perl v5.80 under solaris 9MU4, on a 64bit V120 server. Operating environment is:

Gcc v3.2.2

Make v3.80

Mysql v4.0.17

Perl-dbi v1.40

This happends with all versions of DBD-mysql from v2.1025 - v2.9003 inclusive. Tried changing -Xa to -ansi and also converting -arch=v9 to -m64 but no affect.

Anyone have any suggestions on how to get this to compile?

Steve

primednnm1# perl Makefile.PL

I will use the following settings for compiling and testing:

cflags (mysql_config) = -I/opt/mysql/include -Xa -xstrconst -mt -D_FORTEC_ -xarch=v9

libs (mysql_config) = -L/opt/mysql/lib -lmysqlclient -lposix4 -lcrypt -lgen -lsocket -lnsl -lm

nocatchstderr (default ) = 0

nofoundrows (default ) = 0

ssl (guessed ) = 0

testdb (default ) = test

testhost (default ) =

testpassword (default ) =

testuser (default ) =

To change these settings, see 'perl Makefile.PL --help' and

'perldoc INSTALL'.

Checking if your kit is complete...

Looks good

Using DBI 1.40 (for perl 5.008 on sun4-solaris) installed in /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI

Writing Makefile for DBD::mysql

primednnm1# make

cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm

cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm

cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod

cp lib/Mysql.pm blib/lib/Mysql.pm

cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm

cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm

gcc -B/usr/ccs/bin/ -c -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI -I/opt/mysql/include -Xa -xstrconst -mt -D_FORTEC_ -xarch=v9 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" dbdimp.c

gcc: unrecognized option `-Xa'

gcc: language arch=v9 not recognized

gcc: dbdimp.c: linker input file unused because linking not done

/usr/local/bin/perl -p -e "s/~DRIVER~/mysql/g" /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI/Driver.xst > mysql.xsi

/usr/local/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c

Warning: duplicate function definition 'do' detected in mysql.xs, line 192

Warning: duplicate function definition 'rows' detected in mysql.xs, line 290

gcc -B/usr/ccs/bin/ -c -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI -I/opt/mysql/include -Xa -xstrconst -mt -D_FORTEC_ -xarch=v9 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" mysql.c

gcc: unrecognized option `-Xa'

gcc: language arch=v9 not recognized

gcc: mysql.c: linker input file unused because linking not done

Running Mkbootstrap for DBD::mysql ()

chmod 644 mysql.bs

rm -f blib/arch/auto/DBD/mysql/mysql.so

LD_RUN_PATH="/opt/mysql/lib:/usr/lib" /usr/local/bin/perl myld gcc -B/usr/ccs/bin/ -G -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -L/opt/mysql/lib -lmysqlclient -lposix4 -lcrypt -lgen -lsocket -lnsl -lm

gcc: dbdimp.o: No such file or directory

gcc: mysql.o: No such file or directory

make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1

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