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 2>&1 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 + DBI::PurePerl: t/zvxgnp_48dbi_dbd_sqlengine.t t/zvxgnp_49dbd_file.t t/zvxgnp_50dbm_simple.t t/zvxgnp_51dbm_file.t t/zvxgnp_52dbm_complex.t t/zvxgnp_85gofer.t Checking if your kit is complete... Looks good I see you're using perl 5.018001 on sun4-solaris, okay. Remember to actually *read* the README file! Use 'make' to build the software (dmake or nmake on Windows). Then 'make test' to execute self tests. Then 'make install' to install the DBI and then delete this working directory before unpacking and building any DBD::* drivers. Writing Makefile for DBI Writing MYMETA.yml and MYMETA.json 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 cp Changes blib/lib/DBI/Changes.pm cp lib/DBD/Gofer/Transport/pipeone.pm blib/lib/DBD/Gofer/Transport/pipeone.pm cp lib/DBI/SQL/Nano.pm blib/lib/DBI/SQL/Nano.pm cp lib/DBI/DBD/SqlEngine.pm blib/lib/DBI/DBD/SqlEngine.pm cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm cp lib/DBI/Gofer/Transport/stream.pm blib/lib/DBI/Gofer/Transport/stream.pm cp DBIXS.h blib/arch/auto/DBI/DBIXS.h cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm cp lib/DBI/DBD/SqlEngine/HowTo.pod blib/lib/DBI/DBD/SqlEngine/HowTo.pod cp lib/DBI/Gofer/Response.pm blib/lib/DBI/Gofer/Response.pm cp lib/DBI/Gofer/Serializer/DataDumper.pm blib/lib/DBI/Gofer/Serializer/DataDumper.pm cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm cp Driver.xst blib/arch/auto/DBI/Driver.xst cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm cp lib/DBI/Gofer/Transport/Base.pm blib/lib/DBI/Gofer/Transport/Base.pm cp lib/DBD/Gofer/Policy/classic.pm blib/lib/DBD/Gofer/Policy/classic.pm cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm cp lib/DBD/Gofer/Transport/null.pm blib/lib/DBD/Gofer/Transport/null.pm cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm cp dbixs_rev.h blib/arch/auto/DBI/dbixs_rev.h cp lib/DBI/Util/_accessor.pm blib/lib/DBI/Util/_accessor.pm cp lib/DBI/Gofer/Execute.pm blib/lib/DBI/Gofer/Execute.pm cp lib/DBD/Gofer/Transport/corostream.pm blib/lib/DBD/Gofer/Transport/corostream.pm cp lib/DBD/Gofer/Transport/stream.pm blib/lib/DBD/Gofer/Transport/stream.pm cp lib/DBD/Gofer.pm blib/lib/DBD/Gofer.pm cp lib/DBD/File/Developers.pod blib/lib/DBD/File/Developers.pod cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm cp lib/DBI/Util/CacheMemory.pm blib/lib/DBI/Util/CacheMemory.pm cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm cp lib/DBD/Gofer/Policy/Base.pm blib/lib/DBD/Gofer/Policy/Base.pm cp dbipport.h blib/arch/auto/DBI/dbipport.h cp lib/DBD/File.pm blib/lib/DBD/File.pm cp lib/DBD/File/Roadmap.pod blib/lib/DBD/File/Roadmap.pod cp lib/DBI/DBD/SqlEngine/Developers.pod blib/lib/DBI/DBD/SqlEngine/Developers.pod cp lib/DBD/File/HowTo.pod blib/lib/DBD/File/HowTo.pod cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm cp lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm cp lib/DBI/Gofer/Transport/pipeone.pm blib/lib/DBI/Gofer/Transport/pipeone.pm cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm cp DBI.pm blib/lib/DBI.pm cp lib/DBI/ProfileSubs.pm blib/lib/DBI/ProfileSubs.pm cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h cp lib/DBD/Gofer/Policy/rush.pm blib/lib/DBD/Gofer/Policy/rush.pm cp lib/DBI/Gofer/Serializer/Storable.pm blib/lib/DBI/Gofer/Serializer/Storable.pm cp lib/DBI/ProfileDumper/Apache.pm blib/lib/DBI/ProfileDumper/Apache.pm cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm cp lib/DBI/Gofer/Serializer/Base.pm blib/lib/DBI/Gofer/Serializer/Base.pm cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm cp lib/DBI/Const/GetInfo/ODBC.pm blib/lib/DBI/Const/GetInfo/ODBC.pm cp dbixs_rev.pl blib/lib/dbixs_rev.pl cp lib/DBI/Gofer/Request.pm blib/lib/DBI/Gofer/Request.pm cp lib/DBD/Gofer/Policy/pedantic.pm blib/lib/DBD/Gofer/Policy/pedantic.pm cp dbivport.h blib/arch/auto/DBI/dbivport.h cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h cp lib/DBD/Gofer/Transport/Base.pm blib/lib/DBD/Gofer/Transport/Base.pm /usr/local/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi /usr/local/bin/perl /usr/local/lib/perl5/5.18.1/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.18.1/ExtUtils/typemap -typemap typemap Perl.xs > Perl.xsc && mv Perl.xsc Perl.c gcc -B/usr/ccs/bin/ -c -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.628\" -DXS_VERSION=\"1.628\" -fPIC "-I/usr/local/lib/perl5/5.18.1/sun4-solaris/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter -DDBI_NO_THREADS Perl.c /usr/local/bin/perl /usr/local/lib/perl5/5.18.1/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.18.1/ExtUtils/typemap -typemap typemap DBI.xs > DBI.xsc && mv DBI.xsc DBI.c gcc -B/usr/ccs/bin/ -c -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.628\" -DXS_VERSION=\"1.628\" -fPIC "-I/usr/local/lib/perl5/5.18.1/sun4-solaris/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter -DDBI_NO_THREADS DBI.c 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' root@nevdisdev:/var/tmp/gia/DBI/DBI-1.628# make test 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' root@nevdisdev:/var/tmp/gia/DBI/DBI-1.628# make test TEST_VERBOSE=1 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' root@nevdisdev:/var/tmp/gia/DBI/DBI-1.628# find / -name DBI.so /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/auto/DBI/DBI.so /opt/oracle/10.2.0.3/perl/lib/site_perl/5.8.3/sun4-solaris-thread-multi-64/auto/DBI/DBI.so root@nevdisdev:/var/tmp/gia/DBI/DBI-1.628# perl -V Summary of my perl5 (revision 5 version 18 subversion 1) configuration: Platform: osname=solaris, osvers=2.10, archname=sun4-solaris uname='sunos 5.10 generic_141444-09 sun4u sparc sunw,sun-blade-2500 solaris ' config_args='-Dcc=gcc -B/usr/ccs/bin/' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc -B/usr/ccs/bin/', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='-fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='3.4.6', gccosandvers='solaris2.10' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib ' libpth=/usr/local/lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -lgdbm -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E' cccdlflags='-fPIC', lddlflags=' -Wl,-E -shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF Built under solaris Compiled at Aug 22 2013 07:17:29 @INC: /usr/local/lib/perl5/site_perl/5.18.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.18.1 /usr/local/lib/perl5/5.18.1/sun4-solaris /usr/local/lib/perl5/5.18.1 /usr/local/lib/perl5/site_perl . root@nevdisdev:/var/tmp/gia/DBI/DBI-1.628#