On Feb 19, 2008 10:04 AM, Capacio, Paula J <[EMAIL PROTECTED]> wrote:
> Hello, > I am getting the following error from make (excerpt only full list > follows) > Running Mkbootstrap for DBD::Oracle () > chmod 644 Oracle.bs > rm -f blib/arch/auto/DBD/Oracle/Oracle.so > /usr/bin/ld > -Wl,+b"/usr/oracle/client/10.2/lib:/usr/oracle/client/10.2/r > dbms/lib" -b +vnocompatwarnings -L/usr/lib/hpux64 Oracle.o dbdimp.o > oci8.o -L > /usr/oracle/client/10.2/rdbms/lib/ -L/usr/oracle/client/10.2/lib/ > -lclntsh `c > at /usr/oracle/client/10.2/lib/ldflags` -lm -lpthread -o > blib/arch/auto/DBD > /Oracle/Oracle.so \ > \ > > ld: Unrecognized argument: > -Wl,+b/usr/oracle/client/10.2/lib:/usr/oracle/client/10.2/rdbms/lib > Fatal error. > *** Error exit code 1 > Nasty - especially since you're not a C programmer. Systems that build Perl using 'ld' directly as the way to build shared objects give me the heebie-jeebies each time - and your Perl appears to have been built that way. The '-Wl,+b...' notation is an instruction to the C compiler to pass the '+b...' to the loader; the loader itself doesn't know how to deal with -Wl options. We can debate whether this is a bug in DBD::Oracle or not - or a bug in the way Perl was built on your machine. Since Perl mainly works OK and DBD::Oracle doesn't, I'd be more inclined to say DBD::Oracle is at fault, but DBD::Informix (which I know a lot better than DBD::Oracle) faces roughly similar issues and my recommendation is to build Perl so it uses the C compiler to build shared objects rather than using 'ld' (or /usr/bin/ld) directly. Were you reporting the problem in relation to DBD::Informix, then I'd be recommending building Perl with cc instead of ld as the 'loader'. OTOH, I think DBD::Informix already copes with 'ld', but it raises a warning when you run 'perl Makefile.PL'. Not a definitive answer - but you can discuss with your C programmers. If you are in dire straights, you can hack Makefile to exclude the '-Wl,' prefix from the arguments. That is not a satisfactory solution - you'd need to repeat the process every time you need to rebuild the Makefile. And it may not be trivial to locate where those definitions come from; it depends on the makefile (it may come from the makefile material provided by Oracle, for example, and intercepting that may be rather tricky). Good luck -- I fear you are going to need it. (Please continue the conversation in dbi-users and do not send to me privately since I don't have anything much more to offer in the way of help. Thanks. And thanks for including the 'perl -V' output and so on - it helps. It's a pity some mailer along the line wrapped the lines horribly, but that's probably not your fault.) > I have tried make clean followed by perl Makefile.PL -l and perl > Makefile.PL -nob; a similar error occurs but in the latter > /usr/lib/hpux64 is specified as the second directory instead of the > rdbms/lib. Any ideas what is wrong and how to resolve it? > > I'm not a 'C' programmer, an Oracle admin, or an HP server admin; I'm > just a perl programmer trying to build DBD-Oracle 1.20 with Oracle 10.2 > on an HP Itanium server running 64-bit perl 5.8.8. I have read the > README, README.hpux.txt, README.64bit.txt and README.help.txt. All help > will be GREATLY appreciated. > > Below follows the full output of perl -V, compiler information, perl > Makefile.PL, and make. (watch out for line wrapping) > ---perl -V--- > Summary of my perl5 (revision 5 version 8 subversion 8) configuration: > Platform: > osname=hpux, osvers=11.22, archname=IA64.ARCHREV_0-thread-multi-LP64 > uname='hp-ux bigsur03 b.11.22 u ia64 1800516905 unlimited-user > license ' > config_args='-ders -Dcc=cc -Dusethreads -Duseithreads -Ud_sigsetjmp > -Uinstal > lusrbinperl -Ulocincpth= -Uloclibpth= -Duse64bitall -Dsh=/usr/bin/sh > -Dd_attribu > t=undef -Dd_attribute_warn_unused_result=undef -Dd_u32align=define > -Aprepend:lib > swanted=cl -Dvendorprefix=/opt/perl_64 -Doptimize=-fast +DSitanium2 > +Ofltacc=st > rict -Accflags=+Z -Accflags=-DUSE_SITECUSTOMIZE -Duselargefiles > -Accflags=-DNO_H > ASH_SEED -Dprefix=/opt/perl_64 -Dinc_version_list=5.8.7/$archname 5.8.7 > 5.8.6/$a > rchname 5.8.6 5.8.4/$archname 5.8.4 5.8.3/$archname 5.8.3 > 5.8.2/$archname 5.8.2 > 5.8.1/$archname 5.8.1 5.8.0/$archname 5.8.0 -Dsed=/usr/bin/sed > -Duseshrplib -Dco > nfig_heavy=Config_dynamic.pl -Dcf_by=ActiveState > [EMAIL PROTECTED] > com' > hint=recommended, useposix=true, d_sigaction=define > usethreads=define use5005threads=undef useithreads=define > usemultiplicity=de > fine > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=define use64bitall=define uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='cc', ccflags =' -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae > -D_HPUX_SOURC > E -Wl,+vnocompatwarnings +DD64 +Z -DUSE_SITECUSTOMIZE -DNO_HASH_SEED > -D_LARGEFIL > E_SOURCE -D_FILE_OFFSET_BITS=64 ', > optimize='-fast +DSitanium2 +Ofltacc=strict', > cppflags='-D__STDC_EXT__ -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L > -D_REENTRA > NT -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DUSE_SITECUSTOMIZE > -DNO_HASH_SEED' > ccversion='B3910B A.05.55', gccversion='', gccosandvers='' > intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=87654321 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 > ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize > =8 > alignbytes=8, prototype=define > Linker and Libraries: > ld='/usr/bin/ld', ldflags =' -L/usr/lib/hpux64' > libpth=/usr/lib/hpux64 /lib /usr/lib /usr/ccs/lib /usr/local/lib > libs=-lcl -lnsl -lnm -ldl -ldld -lm -lsec -lpthread -lc > perllibs=-lcl -lnsl -lnm -ldl -ldld -lm -lsec -lpthread -lc > libc=/usr/lib/hpux64/libc.so, so=so, useshrplib=true, > libperl=libperl.so > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_hpux.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E > -Wl,-B,deferred ' > cccdlflags='+Z', lddlflags='-b +vnocompatwarnings -L/usr/lib/hpux64' > > > Characteristics of this binary (from libperl): > Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT > PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT > USE_ITHREADS USE_LARGE_FILES USE_PERLIO > USE_REENTRANT_API USE_SITECUSTOMIZE > Locally applied patches: > ActivePerl Build 817.1 [268662] > Iin_load_module moved for compatibility with build 806 > POSIX: Support the long hostname version of uname() > Avoid signal flag SA_RESTART for older versions of HP-UX > PerlEx support in CGI::Carp > Less verbose ExtUtils::Install and Pod::Find > Patch for CAN-2005-0448 from Debian with modifications > Partly reverted 24733 to preserve binary compatibility > 28671 Define PERL_NO_DEV_RANDOM on Windows > 28376 Add error checks after execing PL_cshname or PL_sh_path > 28305 Pod::Html should not convert "foo" into ``foo'' > 27736 Make perl_fini() run with Sun WorkShop compiler > 27619 Bug in Term::ReadKey being triggered by a bug in > Term::ReadLine > 27549 Move DynaLoader.o into libperl.so > 27528 win32_pclose() error exit doesn't unlock mutex > 27527 win32_async_check() can loop indefinitely > 27515 ignore directories when searching @INC > 27359 Fix -d:Foo=bar syntax > 27210 Fix quote typo in c2ph > 27203 Allow compiling swigged C++ code > 27200 Make stat() on Windows handle trailing slashes correctly > 27194 Get perl_fini() running on HP-UX again > 27133 Initialise lastparen in the regexp structure > 27034 Avoid "Prototype mismatch" warnings with autouse > 26970 Make Passive mode the default for Net::FTP > 26921 Avoid getprotobyname/number calls in IO::Socket::INET > 26897,26903 Make common IPPROTO_* constants always available > 26670 Make '-s' on the shebang line parse -foo=bar switches > 26379 Fix alarm() for Windows 2003 > 26087 Storable 0.1 compatibility > 25861 IO::File performace issue > 25084 long groups entry could cause memory exhaustion > 24699 ICMP_UNREACHABLE handling in Net::Ping > Built under hpux > Compiled at Sep 19 2006 13:50:51 > @INC: > /opt/perl_64/lib/5.8.8/IA64.ARCHREV_0-thread-multi-LP64 > /opt/perl_64/lib/5.8.8 > /opt/perl_64/lib/site_perl/5.8.8/IA64.ARCHREV_0-thread-multi-LP64 > /opt/perl_64/lib/site_perl/5.8.8 > /opt/perl_64/lib/site_perl > /opt/perl_64/lib/vendor_perl/5.8.8/IA64.ARCHREV_0-thread-multi-LP64 > /opt/perl_64/lib/vendor_perl/5.8.8 > /opt/perl_64/lib/vendor_perl > . > ------------- > ---compiler info---- > [EMAIL PROTECTED] > [/usr/bin] # which cc > /usr/bin/cc > [EMAIL PROTECTED] > [/usr/bin] # what /usr/bin/cc > /usr/bin/cc: > HP C/aC++ for Integrity Servers B3910B A.06.15 [May 16 2007] > ------------- > ---perl Makefile.PL--- > [/tmp/perl_modules/DBD-Oracle-1.20] # perl Makefile.PL > Using DBI 1.51 (for perl 5.008008 on IA64.ARCHREV_0-thread-multi-LP64) > installed > in > /opt/perl_64/lib/site_perl/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/auto/D > BI/ > Configuring DBD::Oracle for perl 5.008008 on hpux > (IA64.ARCHREV_0-thread-multi-LP64) > Remember to actually *READ* the README file! Especially if you have any > problems. > > Using Oracle in /usr/oracle/client/10.2 > DEFINE _SQLPLUS_RELEASE = "1002000300" (CHAR) > Oracle version 10.2.0.3 (10.2) > Found /usr/oracle/client/10.2/rdbms/demo/demo_rdbms.mk > Using /usr/oracle/client/10.2/rdbms/demo/demo_rdbms.mk > Your LD_LIBRARY_PATH env var is set to '/usr/oracle/client/10.2/lib' > Reading /usr/oracle/client/10.2/rdbms/demo/demo_rdbms.mk > Reading /usr/oracle/client/10.2/rdbms/lib/env_rdbms.mk > > Attempting to discover Oracle OCI build rules > cc -O -c DBD_ORA_OBJ.c > by executing: [make -f /usr/oracle/client/10.2/rdbms/demo/demo_rdbms.mk > build EC > HODO=echo ECHO=echo GENCLNTSH='echo genclntsh' CC=true OPTIMIZE= > CCFLAGS= EXE=DB > D_ORA_EXE OBJS=DBD_ORA_OBJ.o] > Oracle oci build command: > [ true -Wl,+s -Wl,+n +DD64 -o build > -L/usr/oracle/client/10.2/rdbm > s/lib/ -L/usr/oracle/client/10.2/lib/ -o DBD_ORA_EXE DBD_ORA_OBJ.o > -lclntsh `ca > t /usr/oracle/client/10.2/lib/ldflags` `cat > /usr/oracle/client/10.2/lib/syslib > list` -lm -lpthread] > > WARNING: Stripped `cat /usr/oracle/client/10.2/lib/sysliblist` > from link command, because it contains libraries not > compiled with +z or +Z (PIC) causing link to fail. > Furthermore, we should have already grabbed these libraries > Found header files in /usr/oracle/client/10.2/rdbms/public. > WARNING: If you have trouble, see README.hpux.txt... > you may have to build your own perl, or go hunting for libraries > WARNING: If you have trouble, try perl Makefile.PL -l > > Checking for functioning wait.ph > > > System: perl5.008008 hp-ux bigsur03 b.11.22 u ia64 1800516905 > unlimited-user license > Compiler: cc -fast +DSitanium2 +Ofltacc=strict > -D_POSIX_C_SOURCE=199506L -D_R > EENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +Z > -DUSE_SITECUSTOMIZE > -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > Linker: /usr/bin/ld > Sysliblist: -l:librt.so -l:libnss_dns.so.1 -l:libdld.so -lm -lpthread > -lunwind - > lnsl > Oracle makefiles would have used these definitions but we override them: > CC: cc > CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)\ > $(SHARED_CFLAG) $(USRFLAGS) > [$(GFLAG) $(OPTIMIZE) $(CDEBUG) -Ae -z +Olibmerrno +Z -DHPUX > -DORAIA6 > 4 -DHPUX_IA64 +DD64 -DSS_64BIT_SERVER -DHPPA64 -DSLS8NATIVE -DSLU8NATIVE > +DD64 - > D_LARGEFILE64_SOURCE -D_REENTRANT -DHPUX_KTHREAD -DSLXMX_ENABLE > -DSLTS_ENABLE -D > _REENTRANT -I/usr/oracle/client/10.2/rdbms/demo > -I/usr/oracle/client/10.2/rdbms/ > public -I/usr/oracle/client/10.2/plsql/public > -I/usr/oracle/client/10.2/network/ > public -DHPUX -D_REENTRANT -DHPUX_KTHREAD -DSLXMX_ENABLE -DSLTS_ENABLE > -DSS_64BI > T_SERVER -DBIT64 -DMACHINE64 -DORAIA64 -DHPUX_IA64 $(LPFLAGS) > $(USRFLAGS)] > LDFLAGS: -Wl,+s -Wl,+n $(LDARCH_FLAGS) -o $@ -L$(PRODLIBHOME) > -L$(LIBHOME) > [-Wl,+s -Wl,+n +DD64 -o $@ > -L/usr/oracle/client/10.2/rdbms/lib/ -L$(L > IBHOME)] > Linking with OTHERLDFLAGS = +DD64 > -L/usr/oracle/client/10.2/rdbms/lib/ -L/usr > /oracle/client/10.2/lib/ -lclntsh `cat > /usr/oracle/client/10.2/lib/ldflags` > -lm -lpthread [from 'build' rule] > > Checking if your kit is complete... > Looks good > LD_RUN_PATH=/usr/oracle/client/10.2/lib:/usr/oracle/client/10.2/rdbms/li > b > Using DBD::Oracle 1.20. > Using DBD::Oracle 1.20. > Using DBI 1.51 (for perl 5.008008 on IA64.ARCHREV_0-thread-multi-LP64) > installed > in > /opt/perl_64/lib/site_perl/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/auto/D > BI/ > 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?) > ------------- > ---make output--- > [/tmp/perl_modules/DBD-Oracle-1.20] # make > cp Oracle.pm blib/lib/DBD/Oracle.pm > cp mkta.pl blib/lib/DBD/mkta.pl > cp oraperl.ph blib/lib/oraperl.ph > cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h > cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h > cp Oraperl.pm blib/lib/Oraperl.pm > cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h > cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm > cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm > /usr/bin/perl -p -e "s/~DRIVER~/Oracle/g" > /opt/perl_64/lib/site_perl/5.8 > .8/IA64.ARCHREV_0-thread-multi-LP64/auto/DBI/Driver.xst > Oracle.xsi > /usr/bin/perl /opt/perl_64/lib/5.8.8/ExtUtils/xsubpp -typemap > /opt/perl > _64/lib/5.8.8/ExtUtils/typemap -typemap typemap Oracle.xs > Oracle.xsc > && mv Or > acle.xsc Oracle.c > cc -c -I/usr/oracle/client/10.2/rdbms/public > -I/usr/oracle/client/10.2/ > rdbms/demo -I/usr/oracle/client/10.2/rdbms/public > -I/usr/oracle/client/10.2/plsq > l/public -I/usr/oracle/client/10.2/network/public > -I/opt/perl_64/lib/site_perl/5 > .8.8/IA64.ARCHREV_0-thread-multi-LP64/auto/DBI > -D_POSIX_C_SOURCE=199506L -D_REE > NTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +Z > -DUSE_SITECUSTOMIZE -D > NO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast > +DSitanium2 +Oflta > cc=strict -DVERSION=\"1.20\" -DXS_VERSION=\"1.20\" +Z > "-I/opt/perl_64/lib/5. > 8.8/IA64.ARCHREV_0-thread-multi-LP64/CORE" -DUTF8_SUPPORT > -DNEW_OCI_INIT -DORA_ > OCI_VERSION=\"10.2.0.3\" Oracle.c > cc -c -I/usr/oracle/client/10.2/rdbms/public > -I/usr/oracle/client/10.2/ > rdbms/demo -I/usr/oracle/client/10.2/rdbms/public > -I/usr/oracle/client/10.2/plsq > l/public -I/usr/oracle/client/10.2/network/public > -I/opt/perl_64/lib/site_perl/5 > .8.8/IA64.ARCHREV_0-thread-multi-LP64/auto/DBI > -D_POSIX_C_SOURCE=199506L -D_REE > NTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +Z > -DUSE_SITECUSTOMIZE -D > NO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast > +DSitanium2 +Oflta > cc=strict -DVERSION=\"1.20\" -DXS_VERSION=\"1.20\" +Z > "-I/opt/perl_64/lib/5. > 8.8/IA64.ARCHREV_0-thread-multi-LP64/CORE" -DUTF8_SUPPORT > -DNEW_OCI_INIT -DORA_ > OCI_VERSION=\"10.2.0.3\" dbdimp.c > "dbdimp.c", line 82: warning #2236-D: controlling expression is constant > && OCIErrorGet_log_stat(errhp, recno, (text*)NULL, &eg_errcode, > errbuf, > ^ > > "dbdimp.c", line 281: warning #4275-D: constant out of range ([0 - > 4294967295] > ) for the operator > Newz(42, fb_ary->aindp, (unsigned)size, sb2); > ^ > > "dbdimp.c", line 282: warning #4275-D: constant out of range ([0 - > 4294967295] > ) for the operator > Newz(42, fb_ary->arlen, (unsigned)size, ub2); > ^ > > "dbdimp.c", line 283: warning #4275-D: constant out of range ([0 - > 4294967295] > ) for the operator > Newz(42, fb_ary->arcode, (unsigned)size, ub2); > ^ > > cc -c -I/usr/oracle/client/10.2/rdbms/public > -I/usr/oracle/client/10.2/ > rdbms/demo -I/usr/oracle/client/10.2/rdbms/public > -I/usr/oracle/client/10.2/plsq > l/public -I/usr/oracle/client/10.2/network/public > -I/opt/perl_64/lib/site_perl/5 > .8.8/IA64.ARCHREV_0-thread-multi-LP64/auto/DBI > -D_POSIX_C_SOURCE=199506L -D_REE > NTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +Z > -DUSE_SITECUSTOMIZE -D > NO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast > +DSitanium2 +Oflta > cc=strict -DVERSION=\"1.20\" -DXS_VERSION=\"1.20\" +Z > "-I/opt/perl_64/lib/5. > 8.8/IA64.ARCHREV_0-thread-multi-LP64/CORE" -DUTF8_SUPPORT > -DNEW_OCI_INIT -DORA_ > OCI_VERSION=\"10.2.0.3\" oci8.c > "oci8.c", line 137: warning #2236-D: controlling expression is constant > && OCIErrorGet_log_stat(errhp, recno, (text*)NULL, &eg_errcode, > errbuf, > ^ > > "oci8.c", line 1330: warning #2167-D: argument of type "ub4 *" is > incompatible > with parameter of type "size_t *" > > &str_len, > ^ > > "oci8.c", line 1359: warning #2181-D: argument is incompatible with > corresponding format string conversion > sprintf(s_tz_hour," %03ld",tz_hour); > ^ > > "oci8.c", line 1361: warning #2181-D: argument is incompatible with > corresponding format string conversion > sprintf(s_tz_hour," %02ld",tz_hour); > ^ > > "oci8.c", line 1364: warning #2181-D: argument is incompatible with > corresponding format string conversion > sprintf(s_tz_min,":%02ld",tz_minute); > ^ > > "oci8.c", line 1365: warning #4212-D: mismatch between character pointer > types > "text *" and "char *" > strcat(str_buf,s_tz_hour); > ^ > > "oci8.c", line 1366: warning #4212-D: mismatch between character pointer > types > "text *" and "char *" > strcat(str_buf, s_tz_min); > ^ > > "oci8.c", line 916: warning #4275-D: constant out of range ([0 - > 4294967295]) > for the operator > New(42, buffer, buflen, ub1); > ^ > > "oci8.c", line 1821: warning #4275-D: constant out of range ([0 - > 4294967295]) > for the operator > Newz(1, obj->fields, (unsigned) obj->field_count, > fbh_obj_t); > ^ > > "oci8.c", line 2021: warning #4275-D: constant out of range ([0 - > 4294967295]) > for the operator > Newz(42, imp_sth->fbh, num_fields, imp_fbh_t); > ^ > > Running Mkbootstrap for DBD::Oracle () > chmod 644 Oracle.bs > rm -f blib/arch/auto/DBD/Oracle/Oracle.so > /usr/bin/ld > -Wl,+b"/usr/oracle/client/10.2/lib:/usr/oracle/client/10.2/r > dbms/lib" -b +vnocompatwarnings -L/usr/lib/hpux64 Oracle.o dbdimp.o > oci8.o -L > /usr/oracle/client/10.2/rdbms/lib/ -L/usr/oracle/client/10.2/lib/ > -lclntsh `c > at /usr/oracle/client/10.2/lib/ldflags` -lm -lpthread -o > blib/arch/auto/DBD > /Oracle/Oracle.so \ > \ > > ld: Unrecognized argument: > -Wl,+b/usr/oracle/client/10.2/lib:/usr/oracle/client/10.2/rdbms/lib > Fatal error. > *** Error exit code 1 > > Stop. > ------------- > -- Jonathan Leffler <[EMAIL PROTECTED]> #include <disclaimer.h> Guardian of DBD::Informix - v2007.0914 - http://dbi.perl.org "Blessed are we who can laugh at ourselves, for we shall never cease to be amused."
