MySQL Forums
Forum List  »  Perl

MySQL, Solaris 9 and DBD::mysql - Install fail
Posted by: Tech Consultant
Date: December 03, 2008 07:27PM

Hi,

I am trying to install perl (5.6) DBD::mysql module on solaris 9. I am getting error when I execute "make".

cc: acomp failed for mysql.c
*** Error code 2
make: Fatal error: Command failed for target `mysql.o'
Current working directory /extra/servicelist/usr/perl5/Msql-Mysql-modules-1.2219
/mysql
*** Error code 1
make: Fatal error: Command failed for target `subdirs'

I will greatly appreciate your inputs / help.

Thanks!

******************* Perl -V **********************************
# perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=solaris, osvers=2.9, archname=sun4-solaris-64int
uname='sunos localhost 5.9 sun4u sparc sunw,ultra-1'
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=unde
f
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-xO3 -xdepend',
cppflags=''
ccversion='Sun WorkShop', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lsee
ksize=8
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.6.
1/lib/sun4-solaris-64int/CORE'
cccdlflags='-KPIC', lddlflags='-G'
************************************************************************

*************** mysql version **********************
mysql Ver 14.14 Distrib 5.1.29-rc, for sun-solaris2.9 (sparc) using readline 5.1

***************************************************

***************** error*************
Creating files for MySQL ....................
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgz
Using DBI 1.38 installed in /usr/perl5/site_perl/5.6.1/sun4-solaris-64int/auto/D
BI
Writing Makefile for DBD::mysql
Writing Makefile for Msql-Mysql-modules
# make
/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/perl5/5.6.1/lib/sun4-solaris-64int \
-I/usr/perl5/5.6.1/lib -Ilib -MExtUtils::PerlPP \
-e ppp "dbd/dbimon.in" "dbimon" "lib/DBD/mysql/Install/Config.pm"
/usr/perl5/5.6.1/bin/pod2text mysql/lib/DBD/mysql.pm >README
cp lib/DBD/mysql.pm ../blib/lib/DBD/mysql.pm
cp lib/Bundle/DBD/mysql.pm ../blib/lib/Bundle/DBD/mysql.pm
cp lib/Mysql/Statement.pm ../blib/lib/Mysql/Statement.pm
cp lib/Mysql.pm ../blib/lib/Mysql.pm
cc -c -I/usr/perl5/site_perl/5.6.1/sun4-solaris-64int/auto/DBI -I/extra/servicel
ist/usr/mysql/include -I../dbd -I/usr/perl5/site_perl/5.6.1/sun4-solaris-64int/a
uto/DBI -I/usr/perl5/5.6.1/lib/sun4-solaris-64int -D_LARGEFILE_SOURCE -D_FILE_OF
FSET_BITS=64 -xO3 -xdepend -DVERSION=\"2.0419\" -DXS_VERSION=\"2.0419\" -KPI
C -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DDBD_MYSQL dbdimp.c
"dbdimp.c", line 725: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "dbdimp.c", line 398
argument : pointer to const char
"dbdimp.c", line 1013: warning: assignment type mismatch:
pointer to char "=" pointer to const char
"dbdimp.c", line 1019: warning: assignment type mismatch:
pointer to char "=" pointer to const char
"dbdimp.c", line 1027: warning: assignment type mismatch:
pointer to char "=" pointer to const char
"dbdimp.c", line 1048: warning: assignment type mismatch:
pointer to char "=" pointer to const char
"dbdimp.c", line 1059: warning: assignment type mismatch:
pointer to char "=" pointer to const char
"dbdimp.c", line 1203: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "dbdimp.c", line 398
argument : pointer to const char
"dbdimp.c", line 1264: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "dbdimp.c", line 398
argument : pointer to const char
"dbdimp.c", line 1427: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "dbdimp.c", line 398
argument : pointer to const char
"dbdimp.c", line 2164: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "dbdimp.c", line 398
argument : pointer to const char
/bin/sh -c true
/bin/sh -c true
/usr/bin/perl -p -e "s/~DRIVER~/mysql/g" /usr/perl5/site_perl/5.6.1/sun4-solaris
-64int/auto/DBI/Driver.xst > mysql.xsi
/usr/bin/perl -I/usr/perl5/5.6.1/lib/sun4-solaris-64int -I/usr/perl5/5.6.1/lib /
usr/perl5/5.6.1/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.6.1/lib/ExtUtils/type
map mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 281
Warning: duplicate function definition 'rows' detected in mysql.xs, line 407
cc -c -I/usr/perl5/site_perl/5.6.1/sun4-solaris-64int/auto/DBI -I/extra/servicel
ist/usr/mysql/include -I../dbd -I/usr/perl5/site_perl/5.6.1/sun4-solaris-64int/a
uto/DBI -I/usr/perl5/5.6.1/lib/sun4-solaris-64int -D_LARGEFILE_SOURCE -D_FILE_OF
FSET_BITS=64 -xO3 -xdepend -DVERSION=\"2.0419\" -DXS_VERSION=\"2.0419\" -KPI
C -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DDBD_MYSQL mysql.c
"mysql.xs", line 98: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../dbd/dbdimp.h", line 276
argument : pointer to const char
"mysql.xs", line 138: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../dbd/dbdimp.h", line 276
argument : pointer to const char
"mysql.xs", line 144: prototype mismatch: 1 arg passed, 2 expected
"mysql.xs", line 186: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../dbd/dbdimp.h", line 276
argument : pointer to const char
"mysql.xs", line 250: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../dbd/dbdimp.h", line 276
argument : pointer to const char
"mysql.xs", line 271: warning: argument #3 is incompatible with prototype:
prototype: pointer to char : "../dbd/dbdimp.h", line 276
argument : pointer to const char
cc: acomp failed for mysql.c
*** Error code 2
make: Fatal error: Command failed for target `mysql.o'
Current working directory /extra/servicelist/usr/perl5/Msql-Mysql-modules-1.2219
/mysql
*** Error code 1
make: Fatal error: Command failed for target `subdirs'

Options: ReplyQuote


Subject
Written By
Posted
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
MySQL, Solaris 9 and DBD::mysql - Install fail
December 03, 2008 07:27PM


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.