Ahh yes.  You have gotten to exactly the point that I reached... when I
threw my hands into the air, gave up, and used the HP compiler.

For better or worse, I decided my time was better spent solving business
problems, isstead of figuring out why gcc and HP do not get along well.  The
problem is (I think), that you a linking with ORACLE objects, and ORACLE
used the HP compiler.  I would LOVE IT if someone from HP could tell us how
to make this work.  Unfortunately, I think it is going to take someone with
intimate knowledge of HP-UX internals, PARISC architecture, and GCC.  That
person is probably a pretty rare bird.

So... I'd buy the HP softbench compiler, unless that someone comes along and
saves the world for us.

Lincoln


-----Original Message-----
From: Stacey Conrad [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 28, 2002 3:40 PM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: Problems compiling DBD-Oracle-1.12 on hp-ux 11.0 with gcc

When I remove the -Wl,+s, I get the same error, only complaining about
-Wl,+n.  When I remove that,
I get the following, over and over, with different .o files...

ld: Data Linkage Table (+z) overflow in file oci8.o - use +Z option to
recompile
   Reference from:  oci8.o(0xb38)
ld: Data Linkage Table (+z) overflow in file oci8.o - use +Z option to
recompile
   Reference from:  oci8.o(0xb5c)
ld: Invalid fixups exist
*** Error exit code 1

Obviously, it wants the +Z somewhere, so I attempt to replace the -Wl,+s and
-Wl,+n with the +Z.

ld: Unrecognized argument: +Z
ld: Usage:  ld [options] [flags] files
*** Error exit code 1

Stop.

Any other suggestions?

/stacey/


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 11:38 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Problems compiling DBD-Oracle-1.12 on hp-ux 11.0 with gcc


The "Wl,+s" string will appear in MULTIPLE places in the makefile.  Make
sure you find them all.  If you get this to work, please help save the world
by sending me exact information on how you deviated from my README.hpux, and
I will incorporate.

Lincoln


-----Original Message-----
From: Stacey Conrad [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 27, 2002 5:28 PM
To: '[EMAIL PROTECTED]'
Subject: Problems compiling DBD-Oracle-1.12 on hp-ux 11.0 with gcc

Hello,

I've been trying to install DBD-Oracle-1.12 on an HP-UX machine using gcc.
I have followed the instructions in the README.hpux file included in the
source, recompiled perl 5.6.1, and successfully installed DBI-1.21.  I've
searched through the archives of this list and found that a lot of people
seem to be having this same problem, however they are not using gcc to
compile DBD.  We do not have HP's ANSI C compiler, and use gcc on all of our
machines.

It chokes on the -Wl,+s ld flags.  I've tried hacking them out of the
makefile, and even Makefile.PL, yet ld is still given those flags.  I must
be missing something somewhere.  I usually do more harm than good when it
comes to makefile hacking, so I try to avoid it unless I have specific
instructions.  :)

Does anyone know how to get around this using gcc?

Thanks in advance,
Stacey Conrad

------------------------- make results -----------------------
# make
cp oraperl.ph blib/lib/oraperl.ph
cp Oracle.pm blib/lib/DBD/Oracle.pm
cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm
cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h
cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h
cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h
cp Oraperl.pm blib/lib/Oraperl.pm
        /opt/perl5/bin/perl -p -e "s/~DRIVER~/Oracle/g" <
/opt/perl5/lib/site_perl/5.6.1/9000/800-hpux/auto/DBI/Driver.xst >
Oracle.xsi
        /opt/perl5/bin/perl -I/opt/perl5/lib/5.6.1/9000/800-hpux
-I/opt/perl5/lib/5.6.1 /opt/perl5/lib/5.6.1/ExtUtils/xsubpp  -typemap
/opt/perl5/lib/5.6.1/ExtUtils/typemap Oracle.xs > Oracle.xsc && mv
Oracle.xsc Oracle.c
        gcc -c -I/oracle/app/oracle/oas4082/rdbms/demo
-I/oracle/app/oracle/oas4082/rdbms/public
-I/oracle/app/oracle/oas4082/plsql/public
-I/oracle/app/oracle/oas4082/network/public
-I/oracle/app/oracle/oas4082/rdbms/demo
-I/oracle/app/oracle/oas4082/rdbms/demo
-I/opt/perl5/lib/site_perl/5.6.1/9000/800-hpux/auto/DBI -fno-strict-aliasing
-I/usr/local/include -O    -DVERSION=\"1.12\"  -DXS_VERSION=\"1.12\" -fpic
-I/opt/perl5/lib/5.6.1/9000/800-hpux/CORE  Oracle.c
        gcc -c -I/oracle/app/oracle/oas4082/rdbms/demo
-I/oracle/app/oracle/oas4082/rdbms/public
-I/oracle/app/oracle/oas4082/plsql/public
-I/oracle/app/oracle/oas4082/network/public
-I/oracle/app/oracle/oas4082/rdbms/demo
-I/oracle/app/oracle/oas4082/rdbms/demo
-I/opt/perl5/lib/site_perl/5.6.1/9000/800-hpux/auto/DBI -fno-strict-aliasing
-I/usr/local/include -O    -DVERSION=\"1.12\"  -DXS_VERSION=\"1.12\" -fpic
-I/opt/perl5/lib/5.6.1/9000/800-hpux/CORE  dbdimp.c
        gcc -c -I/oracle/app/oracle/oas4082/rdbms/demo
-I/oracle/app/oracle/oas4082/rdbms/public
-I/oracle/app/oracle/oas4082/plsql/public
-I/oracle/app/oracle/oas4082/network/public
-I/oracle/app/oracle/oas4082/rdbms/demo
-I/oracle/app/oracle/oas4082/rdbms/demo
-I/opt/perl5/lib/site_perl/5.6.1/9000/800-hpux/auto/DBI -fno-strict-aliasing
-I/usr/local/include -O    -DVERSION=\"1.12\"  -DXS_VERSION=\"1.12\" -fpic
-I/opt/perl5/lib/5.6.1/9000/800-hpux/CORE  oci7.c
        gcc -c -I/oracle/app/oracle/oas4082/rdbms/demo
-I/oracle/app/oracle/oas4082/rdbms/public
-I/oracle/app/oracle/oas4082/plsql/public
-I/oracle/app/oracle/oas4082/network/public
-I/oracle/app/oracle/oas4082/rdbms/demo
-I/oracle/app/oracle/oas4082/rdbms/demo
-I/opt/perl5/lib/site_perl/5.6.1/9000/800-hpux/auto/DBI -fno-strict-aliasing
-I/usr/local/include -O    -DVERSION=\"1.12\"  -DXS_VERSION=\"1.12\" -fpic
-I/opt/perl5/lib/5.6.1/9000/800-hpux/CORE  oci8.c
Running Mkbootstrap for DBD::Oracle ()
        chmod 644 Oracle.bs
        rm -f blib/arch/auto/DBD/Oracle/Oracle.sl
 
LD_RUN_PATH="/oracle/app/oracle/oas4082/lib:/oracle/app/oracle/oas4082/rdbms
/lib" ld  -b -L/usr/local/lib Oracle.o  dbdimp.o  oci7.o  oci8.o
-L/oracle/app/oracle/oas4082/lib/ -L/oracle/app/oracle/oas4082/rdbms/lib
-Wl,+s -Wl,+n       /oracle/app/oracle/oas4082/lib/nautab.o
/oracle/app/oracle/oas4082/lib/naeet.o
/oracle/app/oracle/oas4082/lib/naect.o
/oracle/app/oracle/oas4082/lib/naedhs.o  `cat
/oracle/app/oracle/oas4082/lib/ldflags`     -lnsgr8 -lnzjs8 -ln8 -lnl8
-lnro8 `cat /oracle/app/oracle/oas4082/lib/ldflags`     -lnsgr8 -lnzjs8 -ln8
-lnl8 -lclient8  -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lmm -lnls8  -lcore8
-lnls8 -lcore8  -lnls8   `cat /oracle/app/oracle/oas4082/lib/ldflags`
-lnsgr8 -lnzjs8 -ln8 -lnl8 -lnro8 `cat
/oracle/app/oracle/oas4082/lib/ldflags`     -lnsgr8 -lnzjs8 -ln8 -lnl8
-lclient8  -lvsn8 -lwtc8 -lcommon8 -lgeneric8   -ltrace8 -lnls8  -lcore8
-lnls8 -lcore8  -lnls8  -lclient8  -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lnls8
-lcore8 -lnls8 -lcore8  -lnls8      -lm
/oracle/app/oracle/oas4082/rdbms/lib/kpudfo.o `cat
/oracle/app/oracle/oas4082/lib/sysliblist` -o
blib/arch/auto/DBD/Oracle/Oracle.sl     
ld: Unrecognized argument: -Wl,+s
ld: Usage:  ld [options] [flags] files
*** Error exit code 1

Stop.

Reply via email to