Installing DBI and getting a fatal error.
Hi All, Just having the following issue when we try to install DBI in a Solaris 10 zone. Any help with this issue would be appreciated. When we run the 'make' it comes up with a fatal error see below: root@nevdisdev:/var/tmp/gia/DBI/DBI-1.628# make /usr/local/bin/perl -MExtUtils::Command -e 'mkpath' -- blib/lib/DBI rm -f blib/lib/DBI/Changes.pm {snip.snip} Running Mkbootstrap for DBI () chmod 644 DBI.bs rm -f blib/arch/auto/DBI/DBI.so gcc -B/usr/ccs/bin/ -Wl,-E -shared -L/usr/local/lib DBI.o -o blib/arch/auto/DBI/DBI.so\ \ ld: fatal: unrecognized option '-E' ld: fatal: use the -z help option for usage information collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.so' The attached file has the 'perl -V' and the full printouts. Kind regards, Nick Callegari nick.calleg...@au.fujitsu.com mailto:nick.calleg...@au.fujitsu.com au.fujitsu.com http://au.fujitsu.com root@nevdisdev:/var/tmp/gia/DBI/DBI-1.628# make realclean rm -f \ blib/script/dbiproxy blib/script/dbiprof \ blib/script/dbilogstrip rm -f \ perlmain.c Makefile.aperl \ core perl \ so_locations tmon.out \ core.[0-9][0-9] core.[0-9] \ libDBI.def Perl.c \ *perl.core DBI.bso \ DBI.def core.[0-9][0-9][0-9] \ blibdirs.ts core.[0-9][0-9][0-9][0-9] \ MYMETA.yml core.[0-9][0-9][0-9][0-9][0-9] \ core.*perl.*.? DBI.exp \ MYMETA.json mon.out \ *.o DBI.bs \ blib/arch/auto/DBI/extralibs.ld pm_to_blib \ DBI.x DBI.c \ blib/arch/auto/DBI/extralibs.all perl \ perl.exe *.a \ pm_to_blib.ts rm -rf \ blib DBI-1.628 \ dbi*.prof Perl.xsi \ dbiproxy dbitrace.log \ t/zv*_*.t ndtest.prt \ dbi__null_test_tmp* dbiproxy.*log \ dbilogstrip dbiprof mv Makefile Makefile.old /dev/null 21 rm -f \ Makefile.old DBI.o \ Makefile rm -rf \ DBI-1.628 root@nevdisdev:/var/tmp/gia/DBI/DBI-1.628# perl Makefile.PL Your perl was compiled with gcc (version 3.4.6), okay. Creating test wrappers for DBD::Gofer: t/zvg_01basics.t t/zvg_02dbidrv.t t/zvg_03handle.t t/zvg_04mods.t t/zvg_05concathash.t t/zvg_06attrs.t t/zvg_07kids.t t/zvg_08keeperr.t t/zvg_09trace.t t/zvg_10examp.t t/zvg_11fetch.t t/zvg_12quote.t t/zvg_13taint.t t/zvg_14utf8.t t/zvg_15array.t t/zvg_16destroy.t t/zvg_19fhtrace.t t/zvg_20meta.t t/zvg_30subclass.t t/zvg_31methcache.t t/zvg_35thrclone.t t/zvg_40profile.t t/zvg_41prof_dump.t t/zvg_42prof_data.t t/zvg_43prof_env.t t/zvg_48dbi_dbd_sqlengine.t t/zvg_49dbd_file.t t/zvg_50dbm_simple.t t/zvg_51dbm_file.t t/zvg_52dbm_complex.t t/zvg_60preparse.t t/zvg_65transact.t t/zvg_70callbacks.t t/zvg_72childhandles.t t/zvg_80proxy.t t/zvg_85gofer.t t/zvg_86gofer_fail.t t/zvg_87gofer_cache.t t/zvg_90sql_type_cast.t Creating test wrappers for DBI::SQL::Nano: t/zvn_48dbi_dbd_sqlengine.t t/zvn_49dbd_file.t t/zvn_50dbm_simple.t t/zvn_51dbm_file.t t/zvn_52dbm_complex.t t/zvn_85gofer.t Creating test wrappers for DBI::PurePerl: t/zvp_01basics.t t/zvp_02dbidrv.t t/zvp_03handle.t t/zvp_04mods.t t/zvp_05concathash.t t/zvp_06attrs.t t/zvp_07kids.t t/zvp_08keeperr.t t/zvp_09trace.t t/zvp_10examp.t t/zvp_11fetch.t t/zvp_12quote.t t/zvp_13taint.t t/zvp_14utf8.t t/zvp_15array.t t/zvp_16destroy.t t/zvp_19fhtrace.t t/zvp_20meta.t t/zvp_30subclass.t t/zvp_31methcache.t t/zvp_35thrclone.t t/zvp_40profile.t t/zvp_41prof_dump.t t/zvp_42prof_data.t t/zvp_43prof_env.t t/zvp_48dbi_dbd_sqlengine.t t/zvp_49dbd_file.t t/zvp_50dbm_simple.t t/zvp_51dbm_file.t t/zvp_52dbm_complex.t t/zvp_60preparse.t t/zvp_65transact.t t/zvp_70callbacks.t t/zvp_72childhandles.t t/zvp_80proxy.t t/zvp_85gofer.t t/zvp_86gofer_fail.t t/zvp_87gofer_cache.t t/zvp_90sql_type_cast.t Creating test wrappers for DBD::Gofer + DBI::SQL::Nano: t/zvxgn_48dbi_dbd_sqlengine.t t/zvxgn_49dbd_file.t t/zvxgn_50dbm_simple.t t/zvxgn_51dbm_file.t t/zvxgn_52dbm_complex.t t/zvxgn_85gofer.t Creating test wrappers for DBD::Gofer + DBI::PurePerl: t/zvxgp_01basics.t t/zvxgp_02dbidrv.t t/zvxgp_03handle.t t/zvxgp_04mods.t t/zvxgp_05concathash.t t/zvxgp_06attrs.t t/zvxgp_07kids.t t/zvxgp_08keeperr.t t/zvxgp_09trace.t t/zvxgp_10examp.t t/zvxgp_11fetch.t t/zvxgp_12quote.t t/zvxgp_13taint.t t/zvxgp_14utf8.t t/zvxgp_15array.t t/zvxgp_16destroy.t t/zvxgp_19fhtrace.t t/zvxgp_20meta.t t/zvxgp_30subclass.t t/zvxgp_31methcache.t t/zvxgp_35thrclone.t t/zvxgp_40profile.t t/zvxgp_41prof_dump.t t/zvxgp_42prof_data.t t/zvxgp_43prof_env.t t/zvxgp_48dbi_dbd_sqlengine.t t/zvxgp_49dbd_file.t t/zvxgp_50dbm_simple.t t/zvxgp_51dbm_file.t t/zvxgp_52dbm_complex.t t/zvxgp_60preparse.t t/zvxgp_65transact.t t/zvxgp_70callbacks.t t/zvxgp_72childhandles.t t/zvxgp_80proxy.t t/zvxgp_85gofer.t t/zvxgp_86gofer_fail.t t/zvxgp_87gofer_cache.t t/zvxgp_90sql_type_cast.t Creating test wrappers for DBI::SQL::Nano + DBI::PurePerl: t/zvxnp_48dbi_dbd_sqlengine.t t/zvxnp_49dbd_file.t t/zvxnp_50dbm_simple.t t/zvxnp_51dbm_file.t t/zvxnp_52dbm_complex.t t/zvxnp_85gofer.t Creating test wrappers for DBD::Gofer + DBI::SQL::Nano +
Re: Installing DBI and getting a fatal error.
My interpretation of that output would be that your version of GCC is not using the same linker as the version of GCC used to build the Perl you're using. Either get the original version of GCC onto your machine, or build Perl with the GCC you've got. Look at the output of 'perl -V' to see what the linker was. On Wed, Sep 18, 2013 at 8:42 PM, Callegari, Nick nick.calleg...@au.fujitsu.com wrote: Hi All, ** ** Just having the following issue when we try to install DBI in a Solaris 10 zone. Any help with this issue would be appreciated. ** ** When we run the ‘make’ it comes up with a fatal error see below: ** ** root@nevdisdev:/var/tmp/gia/DBI/DBI-1.628# make /usr/local/bin/perl -MExtUtils::Command -e 'mkpath' -- blib/lib/DBI rm -f blib/lib/DBI/Changes.pm {snip…..snip} Running Mkbootstrap for DBI () chmod 644 DBI.bs rm -f blib/arch/auto/DBI/DBI.so gcc -B/usr/ccs/bin/ -Wl,-E -shared -L/usr/local/lib DBI.o -o blib/arch/auto/DBI/DBI.so\ \ ** ** ld: fatal: unrecognized option '-E' ld: fatal: use the -z help option for usage information collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.so'** ** ** ** The attached file has the ‘perl –V’ and the full printouts. ** ** Kind regards, *Nick Callegari *nick.calleg...@au.fujitsu.com au.fujitsu.com -- Jonathan Leffler jonathan.leff...@gmail.com #include disclaimer.h Guardian of DBD::Informix - v2013.0521 - http://dbi.perl.org Blessed are we who can laugh at ourselves, for we shall never cease to be amused.
RE: Installing DBI and getting a fatal error.
Hi Jonathan, Thank-you for your help. Kind regards, Nick Callegari nick.calleg...@au.fujitsu.com mailto:nick.calleg...@au.fujitsu.com au.fujitsu.com http://au.fujitsu.com From: Jonathan Leffler [mailto:jonathan.leff...@gmail.com] Sent: Thursday, 19 September 2013 5:15 PM To: Callegari, Nick Cc: DBI Users Mailing List; Lieng, Gia Subject: Re: Installing DBI and getting a fatal error. My interpretation of that output would be that your version of GCC is not using the same linker as the version of GCC used to build the Perl you're using. Either get the original version of GCC onto your machine, or build Perl with the GCC you've got. Look at the output of 'perl -V' to see what the linker was. On Wed, Sep 18, 2013 at 8:42 PM, Callegari, Nick nick.calleg...@au.fujitsu.com wrote: Hi All, Just having the following issue when we try to install DBI in a Solaris 10 zone. Any help with this issue would be appreciated. When we run the 'make' it comes up with a fatal error see below: root@nevdisdev:/var/tmp/gia/DBI/DBI-1.628# make /usr/local/bin/perl -MExtUtils::Command -e 'mkpath' -- blib/lib/DBI rm -f blib/lib/DBI/Changes.pm {snip.snip} Running Mkbootstrap for DBI () chmod 644 DBI.bs rm -f blib/arch/auto/DBI/DBI.so gcc -B/usr/ccs/bin/ -Wl,-E -shared -L/usr/local/lib DBI.o -o blib/arch/auto/DBI/DBI.so\ \ ld: fatal: unrecognized option '-E' ld: fatal: use the -z help option for usage information collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.so' The attached file has the 'perl -V' and the full printouts. Kind regards, Nick Callegari nick.calleg...@au.fujitsu.com au.fujitsu.com -- Jonathan Leffler jonathan.leff...@gmail.com #include disclaimer.h Guardian of DBD::Informix - v2013.0521 - http://dbi.perl.org Blessed are we who can laugh at ourselves, for we shall never cease to be amused.