Compiling problems of DBD-mysql-2.9003 under solaris 9?

Compiling problems of DBD-mysql-2.9003 under solaris 9?

am 16.01.2004 18:10:57 von Costaras Steve - stcost

------_=_NextPart_001_01C3DC53.B514A050
Content-Type: text/plain



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/D river.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

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



************************************************************ **********
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


------_=_NextPart_001_01C3DC53.B514A050--

Re: Compiling problems of DBD-mysql-2.9003 under solaris 9?

am 16.01.2004 23:48:25 von Jochen Wiedmann

Do not mix binaries (MySQL, Perl) created with different compilers. It is
recommended to compile everything from source.


Jochen


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: Compiling problems of DBD-mysql-2.9003 under solaris 9?

am 16.01.2004 23:48:25 von Jochen Wiedmann

Do not mix binaries (MySQL, Perl) created with different compilers. It is
recommended to compile everything from source.


Jochen


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

RE: Compiling problems of DBD-mysql-2.9003 under solaris 9?

am 19.01.2004 13:16:48 von Costaras Steve - stcost

That was the problem, there were objects in mysql and in perl that were not
compatible (some of perl was 32 bit only, mysql was 64bit only).

In the short term I just got the 32bit version of mysql and that worked,
long term will recompile and create new packages. Thanks everyone.

Steve

-----Original Message-----
From: Jochen Wiedmann [mailto:joe@ispsoft.de]
Sent: Friday, January 16, 2004 16:48
To: Costaras Steve - stcost
Cc: 'msql-mysql-modules@lists.mysql.com'
Subject: Re: Compiling problems of DBD-mysql-2.9003 under solaris 9?


Do not mix binaries (MySQL, Perl) created with different compilers. It is
recommended to compile everything from source.


Jochen


************************************************************ **********
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

RE: Compiling problems of DBD-mysql-2.9003 under solaris 9?

am 19.01.2004 13:16:48 von Costaras Steve - stcost

That was the problem, there were objects in mysql and in perl that were not
compatible (some of perl was 32 bit only, mysql was 64bit only).

In the short term I just got the 32bit version of mysql and that worked,
long term will recompile and create new packages. Thanks everyone.

Steve

-----Original Message-----
From: Jochen Wiedmann [mailto:joe@ispsoft.de]
Sent: Friday, January 16, 2004 16:48
To: Costaras Steve - stcost
Cc: 'msql-mysql-modules@lists.mysql.com'
Subject: Re: Compiling problems of DBD-mysql-2.9003 under solaris 9?


Do not mix binaries (MySQL, Perl) created with different compilers. It is
recommended to compile everything from source.


Jochen


************************************************************ **********
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org