List:General Discussion« Previous MessageNext Message »
From:Chengbin FENG Date:March 11 1999 1:38am
Subject:compile error of DBD::mySQL on Solaris 2.5.1-sparc
View as plain text  
Hi,

When I try to compile DBD::mySQL ( Msql-Mysql-modules-1.2017 ) on my 
Solaris 2.5.1, I got the following error message. ( attachment is the 
full error message )

# make 
... 
chmod 644 mysql.bs

LD_RUN_PATH=
"/usr/local/mysql/lib:/lib:/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.3"
gcc -o ../blib/arch/auto/DBD/mysql/mysql.so -R/usr/local/mysql/lib -R/lib
-R/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.3 -G -L/usr/local/lib
dbdimp.o mysql.o -L/usr/local/mysql/lib -R/usr/local/mysql/lib
-L/usr/local/mysql/lib -lmysqlclient -lm
-L/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.3 -lgcc 

gcc: Internal compiler error: program ld got fatal signal 6 
make[1]: *** [../blib/arch/auto/DBD/mysql/mysql.so] Error 1 
make[1]: Leaving directory
`/export/home/grunion/cfeng/temp/Msql-Mysql-modules-1.2017/Mysql' 
make: *** [subdirs] Error 2
( return to prompt )

I really have no clue what is going wrong. Could you please give me some 
help? 

Thank you very much in advance!!

-- Wallace FENG

>Submitter-Id: <submitter ID> 
>Originator:  Wallace FENG 
>Organization: McGill University
>MySQL support: [none | licence | email support | extended email support ] 
>Synopsis:  Compile error of DBD::mySQL on Solaris 2.5.1
>Severity:  serious 
>Priority:  high
>Category:  mysql 
>Class:  <[ sw-bug | doc-bug | change-request | support ] (one line)> 
>Release:  mysql-3.22.19 (TCX binary)

>Environment: 
        <machine, os, target, libraries (multiple lines)> 
System: SunOS grunion 5.5.1 Generic_103640-08 sun4u sparc SUNW,Ultra-1
 
Architecture: sun4 

Some paths:  /opt/bin/perl /opt/gnu/bin/make /opt/gnu/bin/gcc /usr/ucb/cc 

GCC: Reading specs from 
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.3/specs 
gcc version 2.7.2.3 

Compilation info: CC='gcc' CFLAGS='-O3 -fomit-frame-pointer'
CXX='gcc' CXXFLAGS='-O3 -fomit-frame-pointer -felide-constructors
-fno-exceptions -fno-rtti' LDFLAGS='' 

Configure command: ./configure --prefix=/usr/local/mysql 
'--with-comment=TCX binary' --with-low-memory
--disable-shared 

Perl: This is perl, version 5.005_02 built for sun4-solaris

grunion# perl Makefile.PL

Checking for DBI, 0.93 or later ... ok
Checking for Data::Dumper ... ok
Checking for Data::ShowTable ... ok


Which DBMS do you want to use?

  1) MySQL
  2) mSQL (1 or 2)
  3) Both MySQL and mSQL

  4) mSQL1 and mSQL2
  5) Everything (MySQL, mSQL1 and mSQL2)

Enter your choice:  [3] 1


Do you want to install the MysqlPerl emulation? You might keep your old
Mysql module (to be distinguished from DBD::mysql!) if you are concerned
about compatibility to existing applications! [n] 
Which database should I use for testing the Mysql drivers? [test] 
On which host is database test running (hostname,  ip address or host:port)
 [localhost] 
User name for connecting to database test? [undef] 
Password for connecting to database test? [undef] 
Where is your mysql installed? Please tell me the directory that contains
the subdir include/. [/usr/local/mysql] 
Creating Mysql files .....................
Checking if your kit is complete...
Looks good
Writing Makefile for DBD::mysql
Writing Makefile for Msql-Mysql-modules

grunion# make

mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Msql-Mysql-modules
mkdir blib/lib/auto
mkdir blib/lib/auto/Msql-Mysql-modules
mkdir blib/man1
make[1]: Entering directory `/export/home/grunion/cfeng/temp/Msql-Mysql-modules-1.2017/Mysql'
mkdir ../blib/lib/DBD
mkdir ../blib/arch/auto/DBD
mkdir ../blib/arch/auto/DBD/mysql
mkdir ../blib/lib/auto/DBD
mkdir ../blib/lib/auto/DBD/mysql
mkdir ../blib/man3

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

gcc -c -I/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/DBI -I/usr/local/mysql/include -I../dbd  -I/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/DBI -I/usr/local/lib/perl5/5.00502/sun4-solaris -I/usr/local/include -O    -DVERSION=\"2.0217\" -DXS_VERSION=\"2.0217\" -fPIC -I/usr/local/lib/perl5/5.00502/sun4-solaris/CORE -DDBD_MYSQL -DMyConnect=mysql_dr_connect -DMyLogin=mysql_dr_login dbdimp.c

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

/opt/bin/perl -I/usr/local/lib/perl5/5.00502/sun4-solaris -I/usr/local/lib/perl5/5.00502 /usr/local/lib/perl5/5.00502/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/5.00502/ExtUtils/typemap mysql.xs >mysql.tc && mv mysql.tc mysql.c

gcc -c -I/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/DBI -I/usr/local/mysql/include -I../dbd  -I/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/DBI -I/usr/local/lib/perl5/5.00502/sun4-solaris -I/usr/local/include -O    -DVERSION=\"2.0217\" -DXS_VERSION=\"2.0217\" -fPIC -I/usr/local/lib/perl5/5.00502/sun4-solaris/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/local/mysql/lib:/lib:/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.3" gcc -o ../blib/arch/auto/DBD/mysql/mysql.so -R/usr/local/mysql/lib -R/lib -R/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.3 -G -L/usr/local/lib dbdimp.o mysql.o -L/usr/local/mysql/lib -R/usr/local/mysql/lib   -L/usr/local/mysql/lib -lmysqlclient -lm -L/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.3 -lgcc 

gcc: Internal compiler error: program ld got fatal signal 6
make[1]: *** [../blib/arch/auto/DBD/mysql/mysql.so] Error 1
make[1]: Leaving directory `/export/home/grunion/cfeng/temp/Msql-Mysql-modules-1.2017/Mysql'
make: *** [subdirs] Error 2

grunion# 
Thread
compile error of DBD::mySQL on Solaris 2.5.1-sparcChengbin FENG11 Mar
  • compile error of DBD::mySQL on Solaris 2.5.1-sparcMichael Widenius11 Mar