RE: [dbi] DBD::mysql compile failing

"Martin J. Evans" <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Organization Easysoft Ltd
Message-ID <[email protected]>
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/DBI/
> -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/DBI/
> -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/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.