HeatSeekerCannibal has asked for the wisdom of the Perl Monks concerning the following question:
I'm having problems building dbd::informix version 2007.0914 on solaris 10/sparc with perl 5.8.4 and gcc 3.4.3.
I've tried several different approaches but none seems to work.
I tried the usual way, installing with perl and make, as posted here, but ended up nowhere. It complained about gcc not understanding the switches passed by the makefile I rephrased it as a question and posted in perlmonks and was suggested to re-build perl first using gcc instead of the preinstalled perl built with Sun Workshop and then reattempt to build the dbd::informix module using the same compiler (gcc 3.4.3). But this proved too frustrating with two versions of perl.
First I tried downloading and building perl 5.10 but the test phase failed with obscure errors in ExtUtils and CPANPLUS. Didn't find information on workarounds for these errors, so I ditched 5.10 in favor of 5.8. But I found even more problems here, since this one complained about not finding the Berkeley DB. I checked with pkginfo and it was SUNWbdb - ver 4.2.52 installed. Googled extensively and found comments about it needing a different version than the one I have (it seems it wants the one from sleepycat, SFWbdb if I remember correctly). Downloaded that and tried to install but with even more oscure error messages.
So I stumble upon this post where they mention perlgcc and it says its used precisely to compile with gcc modules that are meant to be used with a perl built with another compiler.
And this is where I am right now. Using perlgcc to attempt to build DBD::Informix.
================== BEGIN OF BUILD LOG ==================
informix@develop ~/framirez/DBD-Informix-2007.0914 $ /usr/perl5/bin/pe +rlgcc Makefile.PL *** ExtUtils::AutoInstall version 0.63 *** Checking for dependencies... [Core Features] - DBI ...loaded. (1.601 >= 1.38) [High Resolution Timing] - Time::HiRes ...loaded. (1.59) [POD Format Testing] - Test::Pod ...missing. ==> Auto-install the 1 optional module(s) from CPAN? [y] y *** Dependencies will be installed the next time you type 'make'. (You may need to do that as the 'root' user.) *** ExtUtils::AutoInstall configuration finished. Configuring IBM Informix Database Driver for Perl DBI Version 2007.091 +4 (2007-09-14) (aka DBD::Informix) You are using DBI version 1.601 and Perl version 5.008004 Remember to actually read the README file! Perl: /usr/perl5/5.8.4/bin/perl v5.008004 sun4-solaris-64int dl_dl +open.xs System: sunos localhost 5.10 sun4u sparc SUNW,Ultra-2 *** Ideally, you should upgrade to Perl version 5.008008 or later. Using INFORMIXDIR=/informix_10 and ESQL/C compiler esql Using IBM Informix CSDK Version 2.90, IBM Informix-ESQL Version 2.90.U +C3 from /informix_10 Note that bug RT#13708 (IBM CQ bug idsdb00139040) may affect you. In particular, if test t/t93lvarchar.t detects problems, consider an upgrade to CSDK 3.00 or later - it seems to be fixed there. All other parts of DBD::Informix will probably work. Beware: DBD::Informix is not yet aware of all the new IUS data types. Assert macro will be disabled! lib/DBD/Informix/Defaults.pm written OK esqlinfo.h written OK Testing whether your Informix test environment will work... ESQLTEST Program Running: @(#)$Id: esqltest.ec,v 2007.3 2007/06/09 23:19:15 jleffler Exp $ $INFORMIXDIR is set to '/informix_10'. $INFORMIXSERVER is set to 'ifx_10'. $DBI_DBNAME set to 'pro'. $DBD_INFORMIX_DATABASE set to 'pro'. $DBD_INFORMIX_DATABASE2 unset - defaulting to 'pro'. $DBD_INFORMIX_USERNAME is set to 'apache01'. $DBD_INFORMIX_USERNAME2 is unset - defaulting to 'apache01'. $DBD_INFORMIX_PASSWORD is unset. $DBD_INFORMIX_PASSWORD2 is unset. Testing connection to pro !!! DBD_INFORMIX_USERNAME & DBD_INFORMIX_PASSWORD are ignored unless both variables are set. CONNECT TO 'pro' - no user info !!! DBD_INFORMIX_USERNAME2 & DBD_INFORMIX_PASSWORD2 are ignored unless both variables are set. Testing concurrent connection to pro CONNECT TO 'pro' - no user info Your Informix environment is (probably) OK Using DBI 1.601 (for perl 5.008004 on sun4-solaris-64int) installed in + /usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI/ Writing Makefile for DBD::Informix
================== RUNNING UNALTERED MAKEFILE ==================
informix@develop ~/framirez/DBD-Informix-2007.0914 $ /usr/ccs/bin/make + /usr/perl5/5.8.4/bin/perl Makefile.PL --config=make_args,--hello --ins +talldeps=Test::Pod,0 *** ExtUtils::AutoInstall version 0.63 *** Checking for dependencies... [Core Features] - DBI ...loaded. (1.601 >= 1.38) [High Resolution Timing] - Time::HiRes ...loaded. (1.59) [POD Format Testing] - Test::Pod ...missing. ==> Auto-install the 1 optional module(s) from CPAN? [y] y *** Dependencies will be installed the next time you type 'make'. (You may need to do that as the 'root' user.) *** ExtUtils::AutoInstall configuration finished. Configuring IBM Informix Database Driver for Perl DBI Version 2007.091 +4 (2007-09-14) (aka DBD::Informix) You are using DBI version 1.601 and Perl version 5.008004 Remember to actually read the README file! Perl: /usr/perl5/5.8.4/bin/perl v5.008004 sun4-solaris-64int dl_dl +open.xs System: sunos localhost 5.10 sun4u sparc SUNW,Ultra-2 *** Ideally, you should upgrade to Perl version 5.008008 or later. Using INFORMIXDIR=/informix_10 and ESQL/C compiler esql Using IBM Informix CSDK Version 2.90, IBM Informix-ESQL Version 2.90.U +C3 from /informix_10 Note that bug RT#13708 (IBM CQ bug idsdb00139040) may affect you. In particular, if test t/t93lvarchar.t detects problems, consider an upgrade to CSDK 3.00 or later - it seems to be fixed there. All other parts of DBD::Informix will probably work. Beware: DBD::Informix is not yet aware of all the new IUS data types. Assert macro will be disabled! lib/DBD/Informix/Defaults.pm written OK esqlinfo.h written OK Testing whether your Informix test environment will work... gcc: language arch=v8 not recognized gcc: esqltest.c: linker input file unused because linking not done gcc: language arch=v8 not recognized gcc: esqlc_v6.c: linker input file unused because linking not done gcc: esqltest.o: No such file or directory gcc: esqlc_v6.o: No such file or directory Failed to link test program esqltest *** Error code 29 make: Fatal error: Command failed for target `installdeps'
================== EDITING MAKEFILE ==================
After this error I thought I should edit the Makefile to change the arc=v8 flag but didnt find it anywhere. So I changed all the calls to perl to perlgcc (PERL and FULLPERL), redefined CC as gcc and also changed the call to gcc, giving it the full path to the binary (including INFORMIXC). Granted, it doesnt look like the full path to gcc was needed, I was just trying things. Also I dont know if changing the calls to perlgcc should be done. But the original Makefile wasnt working. At least, after the changes, it went up to the compilation and linking phases.
================== RUNNING ALTERED MAKEFILE ==================
informix@develop ~/framirez/DBD-Informix-2007.0914 $ /usr/ccs/bin/make + /usr/perl5/5.8.4/bin/perlgcc Makefile.PL --config=make_args,--hello -- +installdeps=Test::Pod,0 *** ExtUtils::AutoInstall version 0.63 *** Checking for dependencies... [Core Features] - DBI ...loaded. (1.601 >= 1.38) [High Resolution Timing] - Time::HiRes ...loaded. (1.59) [POD Format Testing] - Test::Pod ...missing. ==> Auto-install the 1 optional module(s) from CPAN? [y] y *** Dependencies will be installed the next time you type 'make'. (You may need to do that as the 'root' user.) *** ExtUtils::AutoInstall configuration finished. Configuring IBM Informix Database Driver for Perl DBI Version 2007.091 +4 (2007-09-14) (aka DBD::Informix) You are using DBI version 1.601 and Perl version 5.008004 Remember to actually read the README file! Perl: /usr/perl5/5.8.4/bin/perl v5.008004 sun4-solaris-64int dl_dl +open.xs System: sunos localhost 5.10 sun4u sparc SUNW,Ultra-2 *** Ideally, you should upgrade to Perl version 5.008008 or later. Using INFORMIXDIR=/informix_10 and ESQL/C compiler esql Using IBM Informix CSDK Version 2.90, IBM Informix-ESQL Version 2.90.U +C3 from /informix_10 Note that bug RT#13708 (IBM CQ bug idsdb00139040) may affect you. In particular, if test t/t93lvarchar.t detects problems, consider an upgrade to CSDK 3.00 or later - it seems to be fixed there. All other parts of DBD::Informix will probably work. Beware: DBD::Informix is not yet aware of all the new IUS data types. Assert macro will be disabled! lib/DBD/Informix/Defaults.pm written OK esqlinfo.h written OK Testing whether your Informix test environment will work... ESQLTEST Program Running: @(#)$Id: esqltest.ec,v 2007.3 2007/06/09 23:19:15 jleffler Exp $ $INFORMIXDIR is set to '/informix_10'. $INFORMIXSERVER is set to 'ifx_10'. $DBI_DBNAME set to 'pro'. $DBD_INFORMIX_DATABASE set to 'pro'. $DBD_INFORMIX_DATABASE2 unset - defaulting to 'pro'. $DBD_INFORMIX_USERNAME is set to 'apache01'. $DBD_INFORMIX_USERNAME2 is unset - defaulting to 'apache01'. $DBD_INFORMIX_PASSWORD is unset. $DBD_INFORMIX_PASSWORD2 is unset. Testing connection to pro !!! DBD_INFORMIX_USERNAME & DBD_INFORMIX_PASSWORD are ignored unless both variables are set. CONNECT TO 'pro' - no user info !!! DBD_INFORMIX_USERNAME2 & DBD_INFORMIX_PASSWORD2 are ignored unless both variables are set. Testing concurrent connection to pro CONNECT TO 'pro' - no user info Your Informix environment is (probably) OK Using DBI 1.601 (for perl 5.008004 on sun4-solaris-64int) installed in + /usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI/ Writing Makefile for DBD::Informix cp lib/DBD/Informix/Summary.pm blib/lib/DBD/Informix/Summary.pm cp lib/DBD/Informix/TechSupport.pm blib/lib/DBD/Informix/TechSupport.p +m cp lib/DBD/Informix/GetInfo.pm blib/lib/DBD/Informix/GetInfo.pm cp lib/Bundle/DBD/Informix.pm blib/lib/Bundle/DBD/Informix.pm cp lib/DBD/Informix/Configure.pm blib/lib/DBD/Informix/Configure.pm cp Informix.pm blib/lib/DBD/Informix.pm cp lib/DBD/Informix/TestHarness.pm blib/lib/DBD/Informix/TestHarness.p +m cp lib/DBD/Informix/TypeInfo.pm blib/lib/DBD/Informix/TypeInfo.pm cp lib/DBD/Informix/Defaults.pm blib/lib/DBD/Informix/Defaults.pm cp lib/DBD/Informix/Metadata.pm blib/lib/DBD/Informix/Metadata.pm /usr/perl5/5.8.4/bin/perlgcc -p -e "s/~DRIVER~/Informix/g" /usr/perl5/ +site_perl/5.8.4/sun4-solaris-64int/auto/DBI/Driver.xst > Informix.xsi /usr/perl5/5.8.4/bin/perlgcc /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -ty +pemap /usr/perl5/5.8.4/lib/ExtUtils/typemap Informix.xs > Informix.xs +c && mv Informix.xsc Informix.c /usr/sfw/bin/gcc -c -I/informix_10/incl/esql -I/usr/perl5/5.8.4/lib/s +un4-solaris-64int/auto/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris- +64int/auto/DBI -I/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/auto +/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LAR +GEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-alia +sing -DVERSION=\"2007.0914\" -DXS_VERSION=\"2007.0914\" -fPIC "-I +/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DESQLC_VERSION=290 -D +NDEBUG -DDO_NOT_USE_STDERR_H Informix.c INFORMIXC="/usr/perl5/5.8.4/bin/perlgcc esqlcc" ESQLCC="/usr/sfw/bin/g +cc" esql -c -shared -I/informix_10/incl/esql -I/usr/perl5/5.8.4/lib/ +sun4-solaris-64int/auto/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris +-64int/auto/DBI -I/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/aut +o/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LA +RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-ali +asing -DVERSION=\"2007.0914\" -DXS_VERSION=\"2007.0914\" -fPIC - +I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -DESQLC_VERSION=290 -DN +DEBUG -DDO_NOT_USE_STDERR_H dbdimp.ec rm -f dbdimp.c INFORMIXC="/usr/perl5/5.8.4/bin/perlgcc esqlcc" ESQLCC="/usr/sfw/bin/g +cc" esql -c -shared -I/informix_10/incl/esql -I/usr/perl5/5.8.4/lib/ +sun4-solaris-64int/auto/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris +-64int/auto/DBI -I/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/aut +o/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LA +RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-ali +asing -DVERSION=\"2007.0914\" -DXS_VERSION=\"2007.0914\" -fPIC - +I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -DESQLC_VERSION=290 -DN +DEBUG -DDO_NOT_USE_STDERR_H dbdattr.ec rm -f dbdattr.c /usr/sfw/bin/gcc -c -I/informix_10/incl/esql -I/usr/perl5/5.8.4/lib/s +un4-solaris-64int/auto/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris- +64int/auto/DBI -I/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/auto +/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LAR +GEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-alia +sing -DVERSION=\"2007.0914\" -DXS_VERSION=\"2007.0914\" -fPIC "-I +/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DESQLC_VERSION=290 -D +NDEBUG -DDO_NOT_USE_STDERR_H sqltoken.c INFORMIXC="/usr/perl5/5.8.4/bin/perlgcc esqlcc" ESQLCC="/usr/sfw/bin/g +cc" esql -c -shared -I/informix_10/incl/esql -I/usr/perl5/5.8.4/lib/ +sun4-solaris-64int/auto/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris +-64int/auto/DBI -I/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/aut +o/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LA +RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-ali +asing -DVERSION=\"2007.0914\" -DXS_VERSION=\"2007.0914\" -fPIC - +I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -DESQLC_VERSION=290 -DN +DEBUG -DDO_NOT_USE_STDERR_H sqltype.ec rm -f sqltype.c INFORMIXC="/usr/perl5/5.8.4/bin/perlgcc esqlcc" ESQLCC="/usr/sfw/bin/g +cc" esql -c -shared -I/informix_10/incl/esql -I/usr/perl5/5.8.4/lib/ +sun4-solaris-64int/auto/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris +-64int/auto/DBI -I/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/aut +o/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LA +RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-ali +asing -DVERSION=\"2007.0914\" -DXS_VERSION=\"2007.0914\" -fPIC - +I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -DESQLC_VERSION=290 -DN +DEBUG -DDO_NOT_USE_STDERR_H ixblob.ec rm -f ixblob.c /usr/sfw/bin/gcc -c -I/informix_10/incl/esql -I/usr/perl5/5.8.4/lib/s +un4-solaris-64int/auto/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris- +64int/auto/DBI -I/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/auto +/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LAR +GEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-alia +sing -DVERSION=\"2007.0914\" -DXS_VERSION=\"2007.0914\" -fPIC "-I +/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DESQLC_VERSION=290 -D +NDEBUG -DDO_NOT_USE_STDERR_H odbctype.c /usr/sfw/bin/gcc -c -I/informix_10/incl/esql -I/usr/perl5/5.8.4/lib/s +un4-solaris-64int/auto/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris- +64int/auto/DBI -I/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/auto +/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LAR +GEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-alia +sing -DVERSION=\"2007.0914\" -DXS_VERSION=\"2007.0914\" -fPIC "-I +/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DESQLC_VERSION=290 -D +NDEBUG -DDO_NOT_USE_STDERR_H kludge.c /usr/sfw/bin/gcc -c -I/informix_10/incl/esql -I/usr/perl5/5.8.4/lib/s +un4-solaris-64int/auto/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris- +64int/auto/DBI -I/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/auto +/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LAR +GEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-alia +sing -DVERSION=\"2007.0914\" -DXS_VERSION=\"2007.0914\" -fPIC "-I +/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DESQLC_VERSION=290 -D +NDEBUG -DDO_NOT_USE_STDERR_H link.c INFORMIXC="/usr/perl5/5.8.4/bin/perlgcc esqlcc" ESQLCC="/usr/sfw/bin/g +cc" esql -c -shared -I/informix_10/incl/esql -I/usr/perl5/5.8.4/lib/ +sun4-solaris-64int/auto/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris +-64int/auto/DBI -I/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/aut +o/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LA +RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-ali +asing -DVERSION=\"2007.0914\" -DXS_VERSION=\"2007.0914\" -fPIC - +I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -DESQLC_VERSION=290 -DN +DEBUG -DDO_NOT_USE_STDERR_H esqlcver.ec rm -f esqlcver.c INFORMIXC="/usr/perl5/5.8.4/bin/perlgcc esqlcc" ESQLCC="/usr/sfw/bin/g +cc" esql -c -shared -I/informix_10/incl/esql -I/usr/perl5/5.8.4/lib/ +sun4-solaris-64int/auto/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris +-64int/auto/DBI -I/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int/aut +o/DBI -I/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBI -D_LA +RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-ali +asing -DVERSION=\"2007.0914\" -DXS_VERSION=\"2007.0914\" -fPIC - +I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -DESQLC_VERSION=290 -DN +DEBUG -DDO_NOT_USE_STDERR_H esqlc_v6.ec rm -f esqlc_v6.c Running Mkbootstrap for DBD::Informix () chmod 644 Informix.bs rm -f blib/arch/auto/DBD/Informix/Informix.so LD_RUN_PATH="" INFORMIXC='/usr/perl5/5.8.4/bin/perlgcc esqlld' ESQLLD= +'/usr/sfw/bin/gcc -G' esql -G Informix.o dbdimp.o dbdattr.o sqltoken +.o sqltype.o ixblob.o odbctype.o kludge.o link.o esqlcver.o esqlc_v6. +o -R/informix_10/lib -R/informix_10/lib/esql -o blib/arch/auto/DBD/In +formix/Informix.so Undefined first referenced symbol in file main /usr/sfw/lib/gcc/sparc-sun-solaris +2.10/3.4.3/crt1.o PL_na dbdimp.o PL_op Informix.o PerlIO_printf Informix.o Perl_stack_grow Informix.o Perl_newSVpv Informix.o Perl_newSViv Informix.o Perl_sv_2mortal Informix.o PL_dirty Informix.o Perl_croak Informix.o Perl_newSV Informix.o Perl_newXS Informix.o Perl_newRV Informix.o Perl_newAV Informix.o PL_sv_no Informix.o PL_stack_max Informix.o PL_markstack_ptr Informix.o PL_markstack_max Informix.o Perl_get_sv Informix.o PL_curpad Informix.o Perl_mg_get Informix.o Perl_mg_set Informix.o PL_sv_yes Informix.o Perl_mg_find Informix.o Perl_mg_size Informix.o Perl_sv_setsv_flags dbdimp.o Perl_sv_2iv Informix.o Perl_sv_2nv dbdimp.o Perl_dowantarray Informix.o Perl_call_method Informix.o Perl_markstack_grow Informix.o Perl_form Informix.o Perl_warn Informix.o Perl_av_extend Informix.o Perl_newSVpvf dbdimp.o Perl_sv_setpvn dbdimp.o PL_stack_sp Informix.o Perl_newRV_noinc Informix.o PL_sv_undef Informix.o Perl_die dbdimp.o Perl_sv_newmortal Informix.o PL_stack_base Informix.o Perl_av_make Informix.o Perl_av_push Informix.o Perl_hv_fetch Informix.o Perl_sv_setpv Informix.o Perl_sv_setiv Informix.o Perl_av_store dbdimp.o Perl_sv_2pv_flags Informix.o Perl_sv_2pv_nolen Informix.o Perl_sv_2bool Informix.o Perl_sv_free dbdimp.o ld: fatal: Symbol referencing errors. No output written to blib/arch/a +uto/DBD/Informix/Informix.so collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/DBD/Infor +mix/Informix.so'
So these is where my scarce wits end. I've googled extensively looking for info on this, but couldnt find anything useful.
Hope you can provide some guidance.
Best regards.
================== DBI VERSION ==================
$DBI::VERSION = "1.601";
================== SOLARIS VERSION ==================
informix@develop ~/framirez/DBD-Informix-2007.0914 $ uname -a SunOS develop 5.10 Generic_118833-33 sun4u sparc SUNW,Ultra-4
================== ENV INFO ==================
informix@develop ~/framirez/DBD-Informix-2007.0914 $ env | sort _=/usr/bin/env DBDATE=MDY4 DBD_INFORMIX_DATABASE=pro DBD_INFORMIX_USERNAME=XXXXXX DBI_DBNAME=pro DB_LOCALE=es_es.CP1252 DBSPACETEMP=temp HOME=/export/home/informix INFORMIXDIR=/informix_10 INFORMIXSERVER=ifx_10 LC_COLLATE=en_US.ISO8859-1 LC_CTYPE=en_US.ISO8859-1 LC_MESSAGES=C LC_MONETARY=en_US.ISO8859-1 LC_NUMERIC=en_US.ISO8859-1 LD_LIBRARY_PATH=/informix_10/lib/esql:/informix_10/lib LOGNAME=informix MAIL=/usr/mail/informix OLDPWD=/usr/perl5/bin ONCONFIG=onconfig PATH=/usr/bin:/informix_10/bin PS1=ifx_10\n\u@\h \w $ PWD=/export/home/informix/framirez/DBD-Informix-2007.0914 SHELL=/bin/ksh SHLVL=1 SSH_CLIENT=XX.XX.XX.XX 23910 22 SSH_CONNECTION=XX.XX.XX.XX 23910 XX.XX.XX.XX SSH_TTY=/dev/pts/10 TERM=vt100 USER=informix
================== PERL VERSION ==================
informix@develop ~/framirez/DBD-Informix-2007.0914 $ perl -V Summary of my perl5 (revision 5 version 8 subversion 4) configuration: Platform: osname=solaris, osvers=2.10, archname=sun4-solaris-64int uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultipl +icity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xar +ch=v8 -D_TS_ERRNO', optimize='-xO3 -xspace -xildoff', 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=1 +6 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='of +f_t', lseeksize=8 alignbytes=8, 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 gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/ +perl5/5.8.4/lib/sun4-solaris-64int/CORE' cccdlflags='-KPIC', lddlflags='-G' Characteristics of this binary (from libperl): Compile-time options: USE_64_BIT_INT USE_LARGE_FILES Locally applied patches: 22667 The optree builder was looping when constructing the ops + ... 22715 Upgrade to FileCache 1.04 22733 Missing copyright in the README. 22746 fix a coredump caused by rv2gv not fully converting a PV + ... 22755 Fix 29149 - another UTF8 cache bug hit by substr. 22774 [perl #28938] split could leave an array without ... 22775 [perl #29127] scalar delete of empty slice returned garb +age 22776 [perl #28986] perl -e "open m" crashes Perl 22777 add test for change #22776 ("open m" crashes Perl) 22778 add test for change #22746 ([perl #29102] Crash on assig +n ... 22781 [perl #29340] Bizarre copy of ARRAY make sure a pad op's + ... 22796 [perl #29346] Double warning for int(undef) and abs(unde +f) ... 22818 BOM-marked and (BOMless) UTF-16 scripts not working 22823 [perl #29581] glob() misses a lot of matches 22827 Smoke [5.9.2] 22818 FAIL(F) MSWin32 WinXP/.Net SP1 (x86/ +1 cpu) 22830 [perl #29637] Thread creation time is hypersensitive 22831 improve hashing algorithm for ptr tables in perl_clone: +... 22839 [perl #29790] Optimization busted: '@a = "b", sort @a' . +.. 22850 [PATCH] 'perl -v' fails if local_patches contains code s +nippets 22852 TEST needs to ignore SCM files 22886 Pod::Find should ignore SCM files and dirs 22888 Remove redundant %SIG assignments from FileCache 23006 [perl #30509] use encoding and "eq" cause memory leak 23074 Segfault using HTML::Entities 23106 Numeric comparison operators mustn't compare addresses o +f ... 23320 [perl #30066] Memory leak in nested shared data structur +es ... 23321 [perl #31459] Bug in read() SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962 Built under solaris Compiled at Feb 13 2006 05:12:02 @INC: /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .
================== PERLGCC VERSION ==================
informix@develop ~/framirez/DBD-Informix-2007.0914 $ /usr/perl5/5.8.4/ +bin/perlgcc -V Summary of my perl5 (revision 5 version 8 subversion 4) configuration: Platform: osname=solaris, osvers=2.10, archname=sun4-solaris-64int uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultipl +icity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_ +TS_ERRNO', optimize='-O2 -fno-strict-aliasing', cppflags='' ccversion='GNU gcc', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='of +f_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', 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 gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/ +perl5/5.8.4/lib/sun4-solaris-64int/CORE' cccdlflags='-fPIC', lddlflags='-G' Characteristics of this binary (from libperl): Compile-time options: USE_64_BIT_INT USE_LARGE_FILES Locally applied patches: 22667 The optree builder was looping when constructing the ops + ... 22715 Upgrade to FileCache 1.04 22733 Missing copyright in the README. 22746 fix a coredump caused by rv2gv not fully converting a PV + ... 22755 Fix 29149 - another UTF8 cache bug hit by substr. 22774 [perl #28938] split could leave an array without ... 22775 [perl #29127] scalar delete of empty slice returned garb +age 22776 [perl #28986] perl -e "open m" crashes Perl 22777 add test for change #22776 ("open m" crashes Perl) 22778 add test for change #22746 ([perl #29102] Crash on assig +n ... 22781 [perl #29340] Bizarre copy of ARRAY make sure a pad op's + ... 22796 [perl #29346] Double warning for int(undef) and abs(unde +f) ... 22818 BOM-marked and (BOMless) UTF-16 scripts not working 22823 [perl #29581] glob() misses a lot of matches 22827 Smoke [5.9.2] 22818 FAIL(F) MSWin32 WinXP/.Net SP1 (x86/ +1 cpu) 22830 [perl #29637] Thread creation time is hypersensitive 22831 improve hashing algorithm for ptr tables in perl_clone: +... 22839 [perl #29790] Optimization busted: '@a = "b", sort @a' . +.. 22850 [PATCH] 'perl -v' fails if local_patches contains code s +nippets 22852 TEST needs to ignore SCM files 22886 Pod::Find should ignore SCM files and dirs 22888 Remove redundant %SIG assignments from FileCache 23006 [perl #30509] use encoding and "eq" cause memory leak 23074 Segfault using HTML::Entities 23106 Numeric comparison operators mustn't compare addresses o +f ... 23320 [perl #30066] Memory leak in nested shared data structur +es ... 23321 [perl #31459] Bug in read() SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962 Built under solaris Compiled at Feb 13 2006 05:12:02 %ENV: PERL5LIB="/usr/perl5/5.8.4/lib/Sun/Solaris/PerlGcc" PERL5_OVERRIDE_CONFIG="1" @INC: /usr/perl5/5.8.4/lib/Sun/Solaris/PerlGcc /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .
================== GCC VERSION ==================
informix@develop ~/framirez/DBD-Informix-2007.0914 $ /usr/sfw/bin/gcc +-v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs Configured with: /gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3. +4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu +-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c +++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
================== INFORMIX VERSION ==================
informix@develop ~/framirez/DBD-Informix-2007.0914 $ onstat -V IBM Informix Dynamic Server Version 10.00.FC3 Software Serial Number XXXXXXXX
================== ESQL VERSION ==================
informix@develop ~/framirez/DBD-Informix-2007.0914 $ esql -V IBM Informix CSDK Version 2.90, IBM Informix-ESQL Version 2.90.UC3 Software Serial Number XXXXXXXXX
================== SQLHOSTS INFO ==================
ifx_10 ontlitcp develop 1525
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problems building dbd::informix on solaris 10/sparc with perl 5.8.4 and gcc 3.4.3
by Anonymous Monk on Feb 09, 2008 at 02:39 UTC |