Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DBD-Oracle CPAN distribution.

Report information
The Basics
Id: 40738
Status: resolved
Priority: 0/
Queue: DBD-Oracle

People
Owner: champoux [...] pythian.com
Requestors: angeloyz [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.22
Fixed in: (no value)



Subject: "ld: fatal error" when linking
Download (untitled) / with headers
text/plain 1.8k
rm -f blib/arch/auto/DBD/Oracle/Oracle.so LD_RUN_PATH="/opt/app/oracle9i/orabase/product/9.2.0.7/lib32:/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32" /opt/SUNWspro/bin/cc -G -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/WS6U2/lib Oracle.o dbdimp.o oci8.o cc -Xa -xstrconst -xF -xarch=v8 -xchip=ultra -W2,-AKNR_S -W2,-Rglobal_hoist -Wc,-Qdelay-speculate -Wc,-Qdepgraph-safe_spec_load=3 -W2,-Rloop -errtags=yes -v -K PIC -L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib -L/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32/ -L/opt/app/oracle9i/orabase/product/9.2.0.7/lib32/ -lclntsh `cat /opt/app/oracle9i/orabase/product/9.2.0.7/lib32/ldflags` `cat /opt/app/oracle9i/orabase/product/9.2.0.7/lib32/sysliblist` -R/opt/app/oracle9i/orabase/product/9.2.0.7/lib32 -laio -lposix4 -lkstat -lm -lthread -o blib/arch/auto/DBD/Oracle/Oracle.so \ \ ld: fatal: file cc: open failed: No such file or directory ld: fatal: File processing errors. No output written to blib/arch/auto/DBD/Oracle/Oracle.so *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/DBD/Oracle/Oracle.so' (I found out that the Makefile generated by Makefile.PL on my machine[sparc/solaris] is wrong : ) OTHERLDFLAGS = cc -Xa -xstrconst -xF -xarch=v8 -xchip=ultra -W2,-AKNR_S -W2,-Rglobal_hoist -Wc,-Qdelay-s peculate -Wc,-Qdepgraph-safe_spec_load=3 -W2,-Rloop -errtags=yes -v -K PIC -L/opt/SUNWcluster/lib -R/opt/SUNW cluster/lib -L/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32/ -L/opt/app/oracle9i/orabase/product/9.2.0 .7/lib32/ -lclntsh `cat /opt/app/oracle9i/orabase/product/9.2.0.7/lib32/ldflags` `cat /opt/app/oracle9i/or abase/product/9.2.0.7/lib32/sysliblist` -R/opt/app/oracle9i/orabase/product/9.2.0.7/lib32 -laio -lposix4 -lkst at -lm -lthread (Pay attention to the 'cc' after '=', that's the reason while link error occured!!!)
From: angeloyz [...] gmail.com
在 2008-11-07 04:32:42 星期五 时,angelo 写到: Show quoted text
> rm -f blib/arch/auto/DBD/Oracle/Oracle.so >
LD_RUN_PATH="/opt/app/oracle9i/orabase/product/9.2.0.7/lib32:/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32" Show quoted text
> /opt/SUNWspro/bin/cc -G -L/usr/lib -L/usr/ccs/lib > -L/opt/SUNWspro/WS6U2/lib Oracle.o dbdimp.o oci8.o cc -Xa > -xstrconst > -xF -xarch=v8 -xchip=ultra -W2,-AKNR_S -W2,-Rglobal_hoist > -Wc,-Qdelay-speculate -Wc,-Qdepgraph-safe_spec_load=3 -W2,-Rloop > -errtags=yes -v -K PIC -L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib > -L/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32/ > -L/opt/app/oracle9i/orabase/product/9.2.0.7/lib32/ -lclntsh `cat > /opt/app/oracle9i/orabase/product/9.2.0.7/lib32/ldflags` `cat > /opt/app/oracle9i/orabase/product/9.2.0.7/lib32/sysliblist` > -R/opt/app/oracle9i/orabase/product/9.2.0.7/lib32 -laio -lposix4 > -lkstat -lm -lthread -o blib/arch/auto/DBD/Oracle/Oracle.so \ > \ > > ld: fatal: file cc: open failed: No such file or directory > ld: fatal: File processing errors. No output written to > blib/arch/auto/DBD/Oracle/Oracle.so > *** Error code 1 > make: Fatal error: Command failed for target > `blib/arch/auto/DBD/Oracle/Oracle.so' > > (I found out that the Makefile generated by Makefile.PL on my > machine[sparc/solaris] is wrong : ) > > OTHERLDFLAGS = cc -Xa -xstrconst -xF -xarch=v8 -xchip=ultra > -W2,-AKNR_S -W2,-Rglobal_hoist -Wc,-Qdelay-s > peculate -Wc,-Qdepgraph-safe_spec_load=3 -W2,-Rloop -errtags=yes -v > -K > PIC -L/opt/SUNWcluster/lib -R/opt/SUNW > cluster/lib -L/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32/ > -L/opt/app/oracle9i/orabase/product/9.2.0 > .7/lib32/ -lclntsh `cat > /opt/app/oracle9i/orabase/product/9.2.0.7/lib32/ldflags` `cat > /opt/app/oracle9i/or > abase/product/9.2.0.7/lib32/sysliblist` > -R/opt/app/oracle9i/orabase/product/9.2.0.7/lib32 -laio -lposix4 > -lkst > at -lm -lthread > > > (Pay attention to the 'cc' after '=', that's the reason while link > error > occured!!!) > >
btw: if the 'cc' is removed in 'OTHERLDFLAGS', make succeeds!
Download (untitled) / with headers
text/plain 232b
In order to get to the root of this problem (ie How the Makefile is created) I will need a few more details 1) Operating system 2) version of DBI 3) Version of DBD::Oracle 4) Client version of Oracle 5) output from Perl Makefile.PL
Subject: Re: [rt.cpan.org #40738] "ld: fatal error" when linking
Date: Mon, 10 Nov 2008 15:13:54 +0800
To: bug-DBD-Oracle [...] rt.cpan.org
From: "Yu Ze" <angeloyz [...] gmail.com>
Download (untitled) / with headers
text/plain 5.7k
2008/11/7 Pythian Remote DBA via RT <bug-DBD-Oracle@rt.cpan.org>: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=40738 > > > In order to get to the root of this problem (ie How the Makefile is > created) I will need a few more details > > 1) Operating system
SunOS 5.9 Show quoted text
> 2) version of DBI
DBI-1.607 Show quoted text
> 3) Version of DBD::Oracle
DBD-Oracle-1.22 Show quoted text
> 4) Client version of Oracle
ORACLE_HOME=/opt/app/oracle9i/orabase/product/9.2.0.7 Show quoted text
> 5) output from Perl Makefile.PL >
v490i1:/userhome/tuxopq/DBD-Oracle-1.22$ ../perl5/perl Makefile.PL Using DBI 1.607 (for perl 5.008008 on sun4-solaris) installed in /userhome/tuxopq/perl5/lib/site_perl/5.8.8/sun4-solaris/auto/DBI/ Configuring DBD::Oracle for perl 5.008008 on solaris (sun4-solaris) Remember to actually *READ* the README file! Especially if you have any problems. Installing on a solaris, Ver#2.9 Using Oracle in /opt/app/oracle9i/orabase/product/9.2.0.7 DEFINE _SQLPLUS_RELEASE = "902000700" (CHAR) Oracle version 9.2.0.7 (9.2) Found /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo/demo_rdbms.mk Found /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib/ins_rdbms.mk Found /opt/app/oracle9i/orabase/product/9.2.0.7/precomp/demo/proc/demo_proc.mk Using /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo/demo_rdbms.mk Your LD_LIBRARY_PATH env var is set to '/opt/app/tuxapp/TUX91/tuxedo9.1/lib:/lib:/usr/lib:/usr/java/include:/opt/app/oracle9i/orabase/product/9.2.0.7/lib32:/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32:/opt/app/tuxapp/tuxopq/lib/log4cplus-1.0.2/src/.libs' Reading /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo/demo_rdbms.mk Reading /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib/env_rdbms.mk Attempting to discover Oracle OCI build32 rules /opt/SUNWspro/bin/cc -c -I/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/public -I/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo -I/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo -I/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/public -I/opt/app/oracle9i/orabase/product/9.2.0.7/plsql/public -I/opt/app/oracle9i/orabase/product/9.2.0.7/network/public -I/userhome/tuxopq/perl5/lib/site_perl/5.8.8/sun4-solaris/auto/DBI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -KPIC "-I/userhome/tuxopq/perl5/lib/5.8.8/sun4-solaris/CORE" -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"9.2.0.7\" DBD_ORA_OBJ.c by executing: [make -f /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo/demo_rdbms.mk build32 ECHODO=echo ECHO=echo GENCLNTSH='echo genclntsh' CC=true OPTIMIZE= CCFLAGS= EXE=DBD_ORA_EXE OBJS=DBD_ORA_OBJ.o] Oracle oci build command: [cc -Xa -xstrconst -xF -xarch=v8 -xchip=ultra -W2,-AKNR_S -W2,-Rglobal_hoist -Wc,-Qdelay-speculate -Wc,-Qdepgraph-safe_spec_load=3 -W2,-Rloop -errtags=yes -v -K PIC -L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib -o build -L/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32/ -L/opt/app/oracle9i/orabase/product/9.2.0.7/lib32/ -o DBD_ORA_EXE DBD_ORA_OBJ.o -lclntsh `cat /opt/app/oracle9i/orabase/product/9.2.0.7/lib32/ldflags` `cat /opt/app/oracle9i/orabase/product/9.2.0.7/lib32/sysliblist` -R/opt/app/oracle9i/orabase/product/9.2.0.7/lib32 -laio -lposix4 -lkstat -lm -lthread] Found header files in /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/public /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo. Checking for functioning wait.ph System: perl5.008008 sunos v490i1 5.9 generic_122300-12 sun4u sparc sunw,sun-fire-v490 Compiler: /opt/SUNWspro/bin/cc -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 Linker: /usr/ccs/bin/ld Sysliblist: -lnsl -lsocket -lgen -ldl Oracle makefiles would have used these definitions but we override them: CC: cc CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)\ $(SHARED_CFLAG) $(USRFLAGS) [$(GFLAG) -xO3 $(CDEBUG) -Xa $(PROFILE) -xstrconst -dalign -xF $(XS) $(MR) -xildoff -errtags=yes -v -xarch=v9 -xchip=ultra3 -W2,-AKNR_S -Wd,-xsafe=unboundsym -Wc,-Qiselect-funcalign=32 -xcode=abs44 -Wc,-Qgsched-trace_late=1 -Wc,-Qgsched-T5 -xalias_level=weak -D_REENTRANT -DSS_64BIT_SERVER -DBIT64 -DMACHINE64 -K PIC -I/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo -I/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/public -I/opt/app/oracle9i/orabase/product/9.2.0.7/plsql/public -I/opt/app/oracle9i/orabase/product/9.2.0.7/network/public -DSLMXMX_ENABLE -DSLTS_ENABLE -D_SVID_GETTOD -D_REENTRANT $(LPFLAGS) $(USRFLAGS)] LDFLAGS: -o $@ $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME) [-o $@ -L/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib/ -L$(LIBHOME)] Linking with OTHERLDFLAGS = cc -Xa -xstrconst -xF -xarch=v8 -xchip=ultra -W2,-AKNR_S -W2,-Rglobal_hoist -Wc,-Qdelay-speculate -Wc,-Qdepgraph-safe_spec_load=3 -W2,-Rloop -errtags=yes -v -K PIC -L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib -L/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32/ -L/opt/app/oracle9i/orabase/product/9.2.0.7/lib32/ -lclntsh `cat /opt/app/oracle9i/orabase/product/9.2.0.7/lib32/ldflags` `cat /opt/app/oracle9i/orabase/product/9.2.0.7/lib32/sysliblist` -R/opt/app/oracle9i/orabase/product/9.2.0.7/lib32 -laio -lposix4 -lkstat -lm -lthread [from 'build32' rule] WARNING: If you have problems you may need to rebuild perl with threading enabled. LD_RUN_PATH=/opt/app/oracle9i/orabase/product/9.2.0.7/lib32:/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32 Using DBD::Oracle 1.22. Using DBD::Oracle 1.22. Using DBI 1.607 (for perl 5.008008 on sun4-solaris) installed in /userhome/tuxopq/perl5/lib/site_perl/5.8.8/sun4-solaris/auto/DBI/ Writing Makefile for DBD::Oracle *** If you have problems... read all the log printed above, and the README and README.help.txt files. (Of course, you have read README by now anyway, haven't you?) -- hold faith in truth, kindness and love!
Download (untitled) / with headers
text/plain 128b
Can you run the attached Makefile.PL and put the results in the Ticket I have set up a little debugging messages on it. Cheers
Download Makefile.PL
text/x-perl 68.2k

Message body is not shown because it is too large.

Subject: Re: [rt.cpan.org #40738] "ld: fatal error" when linking
Date: Mon, 17 Nov 2008 17:36:15 +0800
To: bug-DBD-Oracle [...] rt.cpan.org
From: "Yu Ze" <angeloyz [...] gmail.com>
Download (untitled) / with headers
text/plain 5.4k
*here is the result of the new Makefile.PL:* DBD-Oracle-1.22$ ../perl5/perl Makefile.PL Using DBI 1.607 (for perl 5.008008 on sun4-solaris) installed in /userhome/tuxopq/perl5/lib/site_perl/5.8.8/sun4-solaris/auto/DBI/ Configuring DBD::Oracle for perl 5.008008 on solaris (sun4-solaris) Remember to actually *READ* the README file! Especially if you have any problems. Installing on a solaris, Ver#2.9 Using Oracle in /opt/app/oracle9i/orabase/product/9.2.0.7 DEFINE _SQLPLUS_RELEASE = "902000700" (CHAR) Oracle version 9.2.0.7 (9.2) os ='solaris' Found /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo/demo_rdbms.mk Found /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib/ins_rdbms.mk Found /opt/app/oracle9i/orabase/product/ 9.2.0.7/precomp/demo/proc/demo_proc.mk Using /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo/demo_rdbms.mk Trawl guts of Oracle Your LD_LIBRARY_PATH env var is set to '/opt/app/tuxapp/TUX91/tuxedo9.1/lib:/lib:/usr/lib:/usr/java/include:/opt/app/oracle9i/orabase/product/ 9.2.0.7/lib32:/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32:/opt/app/tuxapp/tuxopq/lib/log4cplus-1.0.2/src/.libs ' Reading /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo/demo_rdbms.mk Reading /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib/env_rdbms.mk Attempting to discover Oracle OCI build32 rules /opt/SUNWspro/bin/cc -c -I/opt/app/oracle9i/orabase/product/ 9.2.0.7/rdbms/public -I/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo-I. -I/opt/app/oracle9i/orabase/product/ 9.2.0.7/precomp/public -I/opt/app/oracle9i/orabase/product/ 9.2.0.7/rdbms/public -I/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo-I/opt/app/oracle9i/orabase/product/ 9.2.0.7/plsql/public -I/opt/app/oracle9i/orabase/product/ 9.2.0.7/network/public-I/userhome/tuxopq/perl5/lib/site_perl/5.8.8/sun4-solaris/auto/DBI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -KPIC "-I/userhome/tuxopq/perl5/lib/5.8.8/sun4-solaris/CORE" -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"9.2.0.7\" DBD_ORA_OBJ.c by executing: [make -f /opt/app/oracle9i/orabase/product/ 9.2.0.7/rdbms/demo/demo_rdbms.mk build32 ECHODO=echo ECHO=echo GENCLNTSH='echo genclntsh' CC=true OPTIMIZE= CCFLAGS= EXE=DBD_ORA_EXE OBJS=DBD_ORA_OBJ.o] Oracle oci build command: [cc -Xa -xstrconst -xF -xarch=v8 -xchip=ultra -W2,-AKNR_S -W2,-Rglobal_hoist -Wc,-Qdelay-speculate -Wc,-Qdepgraph-safe_spec_load=3 -W2,-Rloop -errtags=yes -v -K PIC -L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib -o build -L/opt/app/oracle9i/orabase/product/ 9.2.0.7/rdbms/lib32/ -L/opt/app/oracle9i/orabase/product/9.2.0.7/lib32/ -o DBD_ORA_EXE DBD_ORA_OBJ.o -lclntsh `cat /opt/app/oracle9i/orabase/product/ 9.2.0.7/lib32/ldflags` `cat /opt/app/oracle9i/orabase/product/ 9.2.0.7/lib32/sysliblist` -R/opt/app/oracle9i/orabase/product/9.2.0.7/lib32-laio -lposix4 -lkstat -lm -lthread] The simple approach Found header files in /opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/public/opt/app/oracle9i/orabase/product/ 9.2.0.7/rdbms/demo. Checking for functioning wait.ph System: perl5.008008 sunos v490i1 5.9 generic_122300-12 sun4u sparc sunw,sun-fire-v490 Compiler: /opt/SUNWspro/bin/cc -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 Linker: /usr/ccs/bin/ld Sysliblist: -lnsl -lsocket -lgen -ldl Oracle makefiles would have used these definitions but we override them: CC: cc CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)\ $(SHARED_CFLAG) $(USRFLAGS) [$(GFLAG) -xO3 $(CDEBUG) -Xa $(PROFILE) -xstrconst -dalign -xF $(XS) $(MR) -xildoff -errtags=yes -v -xarch=v9 -xchip=ultra3 -W2,-AKNR_S -Wd,-xsafe=unboundsym -Wc,-Qiselect-funcalign=32 -xcode=abs44 -Wc,-Qgsched-trace_late=1 -Wc,-Qgsched-T5 -xalias_level=weak -D_REENTRANT -DSS_64BIT_SERVER -DBIT64 -DMACHINE64 -K PIC -I/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/demo-I/opt/app/oracle9i/orabase/product/ 9.2.0.7/rdbms/public -I/opt/app/oracle9i/orabase/product/ 9.2.0.7/plsql/public -I/opt/app/oracle9i/orabase/product/ 9.2.0.7/network/public -DSLMXMX_ENABLE -DSLTS_ENABLE -D_SVID_GETTOD -D_REENTRANT $(LPFLAGS) $(USRFLAGS)] LDFLAGS: -o $@ $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME) [-o $@ -L/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib/-L$(LIBHOME)] Linking with OTHERLDFLAGS = cc -Xa -xstrconst -xF -xarch=v8 -xchip=ultra -W2,-AKNR_S -W2,-Rglobal_hoist -Wc,-Qdelay-speculate -Wc,-Qdepgraph-safe_spec_load=3 -W2,-Rloop -errtags=yes -v -K PIC -L/opt/SUNWcluster/lib -R/opt/SUNWcluster/lib -L/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32/-L/opt/app/oracle9i/orabase/product/ 9.2.0.7/lib32/ -lclntsh `cat /opt/app/oracle9i/orabase/product/ 9.2.0.7/lib32/ldflags` `cat /opt/app/oracle9i/orabase/product/ 9.2.0.7/lib32/sysliblist` -R/opt/app/oracle9i/orabase/product/9.2.0.7/lib32-laio -lposix4 -lkstat -lm -lthread [from 'build32' rule] WARNING: If you have problems you may need to rebuild perl with threading enabled. LD_RUN_PATH=/opt/app/oracle9i/orabase/product/ 9.2.0.7/lib32:/opt/app/oracle9i/orabase/product/9.2.0.7/rdbms/lib32 Using DBD::Oracle 1.22. Using DBD::Oracle 1.22. Using DBI 1.607 (for perl 5.008008 on sun4-solaris) installed in /userhome/tuxopq/perl5/lib/site_perl/5.8.8/sun4-solaris/auto/DBI/ Writing Makefile for DBD::Oracle *** If you have problems... read all the log printed above, and the README and README.help.txt files. (Of course, you have read README by now anyway, haven't you?) *BTW: I installed perl 5.8 & DBI in my home directory , as u can see in the above output.*
Well over two years old now so i will drop it from the list
Too stale to work on


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.