MySQL Forums
Forum List  »  Perl

Re: MySQL, Solaris 9 and DBD::mysql
Posted by: carlo reyes
Date: May 30, 2006 03:35PM

I attempted to added the -xcode-abs64 in the Makefile. I'm not sure if I did this correctly. Please forgive my ignorance. I'm not sure where to exactly add -xcode=abs64 in the Makefile. Please help me identify where the compiler flags are in the Makefile. Are there more than one instance of the compiler flag in the Makefile?

LD = /opt/SUNWspro/bin/cc -xtarget=ultra -xarch=v9 -xcode=abs64

Then, I ran make. Here are the messages:

# make
/opt/SUNWspro/bin/cc -c -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI/ -I/opt/mysql/mysql/include -xO3 -mt -D_FORTEC_ -xarch=v9 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -I/usr/local/include -xarch=v9 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -xtarget=ultra -xarch=v9 -DVERSION=\"3.0004_1\" -DXS_VERSION=\"3.0004_1\" -KPIC -xtarget=ultra -xarch=v9 "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" dbdimp.c
"dbdimp.c", line 285: warning: statement not reached
/opt/SUNWspro/bin/cc -c -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI/ -I/opt/mysql/mysql/include -xO3 -mt -D_FORTEC_ -xarch=v9 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -I/usr/local/include -xarch=v9 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -xtarget=ultra -xarch=v9 -DVERSION=\"3.0004_1\" -DXS_VERSION=\"3.0004_1\" -KPIC -xtarget=ultra -xarch=v9 "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" mysql.c
"mysql.xs", line 529: warning: implicit function declaration: mysql_st_next_results
"mysql.xs", line 663: warning: implicit function declaration: is_prefix
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/opt/mysql/mysql/lib:/usr/lib" /usr/local/bin/perl myld /opt/SUNWspro/bin/cc -xtarget=ultra -xarch=v9 -G -xarch=v9 -L/usr/local/lib -L/opt/SUNWspro/WS6U2/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -L/opt/mysql/mysql/lib -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm
ld: fatal: relocation error: R_SPARC_H44: file /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o): symbol <unknown>: relocations based on the ABS44 coding model can not be used in building a shared object
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/DBD/mysql/mysql.so'




Edited 2 time(s). Last edit at 05/31/2006 11:48AM by carlo reyes.

Options: ReplyQuote


Subject
Written By
Posted
Re: MySQL, Solaris 9 and DBD::mysql
May 30, 2006 03:35PM
June 05, 2006 10:49AM
June 05, 2006 01:10PM
March 07, 2005 12:57PM
March 07, 2005 12:58PM
February 14, 2006 10:32AM
October 24, 2007 08:59AM
November 17, 2007 07:58PM


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.