DBD::mysql compile failing

DBD::mysql compile failing

am 28.01.2006 02:34:50 von Richard Foos

------=_NextPart_000_0009_01C62381.216AD280
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I have tried everything to get DBD::mysql to compile on my system. I've
tried it with CPAN and from source, I've tried old and new versions of =
the
source and they all give me the same errors.
=20
Any help with this would be greatly appreciated.
=20
=20
My system configuration:
=20
SunOS eos 5.10 Generic_118844-28 i86pc i386 i86pc
=20
perl, v5.8.7 built for i86pc-solaris =20
=20
gcc -v
Thread model: posix
gcc version 3.4.5
=20
DBI is up to date (1.50).
=20
mysqlshow Ver 9.5 Distrib 5.0.18, for pc-solaris2.10 (i386)
=20
=20
Log of install:
=20
# perl Makefile.PL
I will use the following settings for compiling and testing:
=20
cflags (mysql_config) =3D -I/opt/mysql/mysql/include -xO3 -mt
-fsimple=3D1
-ftrap=3D%none -nofstore -xbuiltin=3D%all -xlibmil -xlibmopt =
-xtarget=3Dgeneric
embedded (mysql_config) =3D
libs (mysql_config) =3D -L/opt/mysql/mysql/lib -lmysqlclient =
-lz
-lposi
x4 -lcrypt -lgen -lsocket -lnsl -lm -lmtmalloc
mysql_config (guessed ) =3D mysql_config
nocatchstderr (default ) =3D 0
nofoundrows (default ) =3D 0
ssl (guessed ) =3D 0
testdb (default ) =3D test
testhost (default ) =3D
testpassword (default ) =3D
testsocket (default ) =3D
testuser (default ) =3D
=20
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
=20
Checking if your kit is complete...
Looks good
Using DBI 1.50 (for perl 5.008007 on i86pc-solaris) installed in
/usr/local/lib/
perl5/site_perl/5.8.5/i86pc-solaris/auto/DBI/
Writing Makefile for DBD::mysql
# make
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
gcc -c -I/usr/local/lib/perl5/site_perl/5.8.5/i86pc-solaris/auto/DB I/
-I/opt/my
sql/mysql/include -xO3 -mt -fsimple=3D1 -ftrap=3D%none -nofstore =
-xbuiltin=3D%all
-xli
bmil -xlibmopt -xtarget=3Dgeneric -DDBD_MYSQL_INSERT_ID_IS_GOOD -g
-fno-strict-al
iasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE =
-D_FILE_OFFSET_BITS=3D64
-O
-DVERSION=3D\"3.0002\" -DXS_VERSION=3D\"3.0002\" -fPIC
"-I/usr/local/lib/perl5/5.8
..7/i86pc-solaris/CORE" dbdimp.c
gcc: unrecognized option `-nofstore'
gcc: language target=3Dgeneric not recognized
gcc: dbdimp.c: linker input file unused because linking not done
/usr/bin/perl -p -e "s/~DRIVER~/mysql/g"
/usr/local/lib/perl5/site_perl/5.8.5/i8
6pc-solaris/auto/DBI//Driver.xst > mysql.xsi
/usr/bin/perl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap
/usr/local/li
b/perl5/5.8.7/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc =
mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line =
224
Warning: duplicate function definition 'rows' detected in mysql.xs, line =
559
gcc -c -I/usr/local/lib/perl5/site_perl/5.8.5/i86pc-solaris/auto/DB I/
-I/opt/my
sql/mysql/include -xO3 -mt -fsimple=3D1 -ftrap=3D%none -nofstore =
-xbuiltin=3D%all
-xli
bmil -xlibmopt -xtarget=3Dgeneric -DDBD_MYSQL_INSERT_ID_IS_GOOD -g
-fno-strict-al
iasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE =
-D_FILE_OFFSET_BITS=3D64
-O
-DVERSION=3D\"3.0002\" -DXS_VERSION=3D\"3.0002\" -fPIC
"-I/usr/local/lib/perl5/5.8
..7/i86pc-solaris/CORE" mysql.c
gcc: unrecognized option `-nofstore'
gcc: language target=3Dgeneric 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=3D"/usr/lib" /usr/bin/perl myld gcc -G -L/usr/local/lib =
dbdimp.o
mysq
l.o -o blib/arch/auto/DBD/mysql/mysql.so \
-L/opt/mysql/mysql/lib -lmysqlclient -lz -lposix4 -lcrypt -lgen =
-lsocket
-lns
l -lm -lmtmalloc \
=20
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
=20
=20
Thanks again!

Richard Foos


------=_NextPart_000_0009_01C62381.216AD280--

RE: [dbi] DBD::mysql compile failing

am 30.01.2006 10:11:53 von Martin.Evans

Does your compiler/linker have a -nofstore option because it does not look like
it. Try editing the Makefile to remove it.

gcc: unrecognized option `-nofstore'

Martin
--
Martin J. Evans
Easysoft Ltd, UK
http://www.easysoft.com


On 28-Jan-2006 Richard Foos wrote:
> I have tried everything to get DBD::mysql to compile on my system. I've
> tried it with CPAN and from source, I've tried old and new versions of the
> source and they all give me the same errors.
>
> Any help with this would be greatly appreciated.
>
>
> My system configuration:
>
> SunOS eos 5.10 Generic_118844-28 i86pc i386 i86pc
>
> perl, v5.8.7 built for i86pc-solaris
>
> gcc -v
> Thread model: posix
> gcc version 3.4.5
>
> DBI is up to date (1.50).
>
> mysqlshow Ver 9.5 Distrib 5.0.18, for pc-solaris2.10 (i386)
>
>
> Log of install:
>
># perl Makefile.PL
> I will use the following settings for compiling and testing:
>
> cflags (mysql_config) = -I/opt/mysql/mysql/include -xO3 -mt
> -fsimple=1
> -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=generic
> embedded (mysql_config) =
> libs (mysql_config) = -L/opt/mysql/mysql/lib -lmysqlclient -lz
> -lposi
> x4 -lcrypt -lgen -lsocket -lnsl -lm -lmtmalloc
> mysql_config (guessed ) = mysql_config
> nocatchstderr (default ) = 0
> nofoundrows (default ) = 0
> ssl (guessed ) = 0
> testdb (default ) = test
> testhost (default ) =
> testpassword (default ) =
> testsocket (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.50 (for perl 5.008007 on i86pc-solaris) installed in
> /usr/local/lib/
> perl5/site_perl/5.8.5/i86pc-solaris/auto/DBI/
> Writing Makefile for DBD::mysql
># make
> cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
> cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
> cp lib/Mysql.pm blib/lib/Mysql.pm
> cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
> cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
> cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
> gcc -c -I/usr/local/lib/perl5/site_perl/5.8.5/i86pc-solaris/auto/DB I/
> -I/opt/my
> sql/mysql/include -xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all
> -xli
> bmil -xlibmopt -xtarget=generic -DDBD_MYSQL_INSERT_ID_IS_GOOD -g
> -fno-strict-al
> iasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -O
> -DVERSION=\"3.0002\" -DXS_VERSION=\"3.0002\" -fPIC
> "-I/usr/local/lib/perl5/5.8
> .7/i86pc-solaris/CORE" dbdimp.c
> gcc: unrecognized option `-nofstore'
> gcc: language target=generic not recognized
> gcc: dbdimp.c: linker input file unused because linking not done
> /usr/bin/perl -p -e "s/~DRIVER~/mysql/g"
> /usr/local/lib/perl5/site_perl/5.8.5/i8
> 6pc-solaris/auto/DBI//Driver.xst > mysql.xsi
> /usr/bin/perl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap
> /usr/local/li
> b/perl5/5.8.7/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
> Warning: duplicate function definition 'do' detected in mysql.xs, line 224
> Warning: duplicate function definition 'rows' detected in mysql.xs, line 559
> gcc -c -I/usr/local/lib/perl5/site_perl/5.8.5/i86pc-solaris/auto/DB I/
> -I/opt/my
> sql/mysql/include -xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all
> -xli
> bmil -xlibmopt -xtarget=generic -DDBD_MYSQL_INSERT_ID_IS_GOOD -g
> -fno-strict-al
> iasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -O
> -DVERSION=\"3.0002\" -DXS_VERSION=\"3.0002\" -fPIC
> "-I/usr/local/lib/perl5/5.8
> .7/i86pc-solaris/CORE" mysql.c
> gcc: unrecognized option `-nofstore'
> gcc: language target=generic 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="/usr/lib" /usr/bin/perl myld gcc -G -L/usr/local/lib dbdimp.o
> mysq
> l.o -o blib/arch/auto/DBD/mysql/mysql.so \
> -L/opt/mysql/mysql/lib -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket
> -lns
> l -lm -lmtmalloc \
>
> 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
>
>
> Thanks again!
>
> Richard Foos
>

--
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