Hi Tim,
Using the -l flag of perl Makefile.PL, I don't think that we pass thru the buid rule 
discovery phase.
I send you the log of
   - perl Makefile.PL -l
   - perl Makefile.PL
Regards,
Joël


[EMAIL PROTECTED] DBD-Oracle-1.15 ]#  perl Makefile.PL -l
Using DBI 1.38 installed in /opt/perl5/lib/site_perl/5.8.2/PA-RISC2.0/auto/DBI

 Configuring DBD::Oracle ...

>>>     Remember to actually *READ* the README file!
        Especially if you have any problems.

Using Oracle in /u01/app/oracle/product/9.2.0
Oracle version 9.2.0 (9.200)

Found direct-link candidates: libclntsh.sl
Use of uninitialized value in pattern match (m//) at Makefile.PL line 849.
Oracle sysliblist:  -lrt -lpthread -l:libnss_dns.1 -ldld
Found header files in rdbms/public rdbms/demo.
***
*** Warning: If you have trouble, see README.hpux...
    you may have to build your own perl, or go hunting for libraries
***

System: perl5.008002 hp-ux panic b.11.00 u 9000800 145069681 unlimited-user license
Compiler:   cc +O2 +Onolimit  +z +DAportable +DSPA7300 -Ae -D_HPUX_SOURCE 
-Wl,+vnocompatwarnings -I/usr/local/
include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
Linker:     /usr/bin/ld
Use of uninitialized value in pattern match (m//) at Makefile.PL line 849.
Sysliblist:  -lrt -lpthread -l:libnss_dns.1 -ldld

Linking with -lclntsh.


Warning: If you have problems you may need to rebuild perl with threading enabled.

Note (probably harmless): No library found for -l:libnss_dns.1
LD_RUN_PATH=/u01/app/oracle/product/9.2.0/lib32
Using DBD::Oracle 1.15.
Using DBD::Oracle 1.15.
Using DBI 1.38 installed in /opt/perl5/lib/site_perl/5.8.2/PA-RISC2.0/auto/DBI
Writing Makefile for DBD::Oracle

***  If you have problems...
     read all the log printed above, and the README and README.help files.
     (Of course, you have read README by now anyway, haven't you?)

[EMAIL PROTECTED] DBD-Oracle-1.15 ]#
[EMAIL PROTECTED] DBD-Oracle-1.15 ]#
[EMAIL PROTECTED] DBD-Oracle-1.15 ]#
[EMAIL PROTECTED] DBD-Oracle-1.15 ]#
[EMAIL PROTECTED] DBD-Oracle-1.15 ]#
[EMAIL PROTECTED] DBD-Oracle-1.15 ]#
[EMAIL PROTECTED] DBD-Oracle-1.15 ]#  perl Makefile.PL
Using DBI 1.38 installed in /opt/perl5/lib/site_perl/5.8.2/PA-RISC2.0/auto/DBI

 Configuring DBD::Oracle ...

>>>     Remember to actually *READ* the README file!
        Especially if you have any problems.

Using Oracle in /u01/app/oracle/product/9.2.0
Oracle version 9.2.0 (9.200)

Found /u01/app/oracle/product/9.2.0/rdbms/demo/demo_rdbms.mk
Using /u01/app/oracle/product/9.2.0/rdbms/demo/demo_rdbms.mk
Reading /u01/app/oracle/product/9.2.0/rdbms/demo/demo_rdbms.mk
Reading /u01/app/oracle/product/9.2.0/rdbms/lib/env_rdbms.mk

Attempting to discover Oracle OCI build rules
        cc -c  -I/u01/app/oracle/product/9.2.0/rdbms/public 
-I/u01/app/oracle/product/9.2.0/rdbms/demo -I/opt/
perl5/lib/site_perl/5.8.2/PA-RISC2.0/auto/DBI  +z +DAportable +DSPA7300 -Ae 
-D_HPUX_SOURCE -Wl,+vnocompatwarni
ngs -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +O2 +Onolimit    
-DVERSION=\"1.15\"  -DXS_
VERSION=\"1.15\" +Z "-I/opt/perl5/lib/5.8.2/PA-RISC2.0/CORE"  -DUTF8_SUPPORT 
DBD_ORA_OBJ.c
by executing: (make -f /u01/app/oracle/product/9.2.0/rdbms/demo/demo_rdbms.mk build 
ECHODO=echo ECHO=echo GENC
LNTSH='echo genclntsh' CC=echo OPTIMIZE= CCFLAGS= EXE=DBD_ORA_EXE OBJS=DBD_ORA_OBJ.o)
Oracle oci build command:
        + -Wl,+s -Wl,+n +DA2.0W +DS2.0 -o build 
-L/u01/app/oracle/product/9.2.0/rdbms/lib/ -L/u01/app/oracle/p
roduct/9.2.0/lib/ -o DBD_ORA_EXE DBD_ORA_OBJ.o -lclntsh -l:libcl.sl -l:librt.sl 
-lpthread -l:libnss_dns.1 -l:l
ibdld.sl -lm


Warning: perl was not built with +z or +Z in compiler flags.
         You may need to rebuild perl from sources.
         See instructions in README.hpux
Found header files in rdbms/public rdbms/demo.
***
*** Warning: If you have trouble, see README.hpux...
    you may have to build your own perl, or go hunting for libraries
*** Warning: If you have trouble, try perl Makefile.PL -l
***

System: perl5.008002 hp-ux panic b.11.00 u 9000800 145069681 unlimited-user license
Compiler:   cc +O2 +Onolimit  +z +DAportable +DSPA7300 -Ae -D_HPUX_SOURCE 
-Wl,+vnocompatwarnings -I/usr/local/
include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
Linker:     /usr/bin/ld
Sysliblist:  -lrt -lpthread -l:libnss_dns.1 -ldld
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) +DA2.0W +DS2.0 -DSS_64BIT_SERVER 
-I/u01/app/oracle/product/9.2.0/rd
bms/demo -I/u01/app/oracle/product/9.2.0/rdbms/public 
-I/u01/app/oracle/product/9.2.0/plsql/public -I/u01/app/
oracle/product/9.2.0/network/public $(SPFLAGS) $(LPFLAGS) $(SHARED_CFLAG) $(USRFLAGS)]

  LDFLAGS:  -Wl,+s -Wl,+n +DA2.0W +DS2.0 -o $@ -L$(PRODLIBHOME) -L$(LIBHOME)
           [-Wl,+s -Wl,+n +DA2.0W +DS2.0 -o $@ 
-L/u01/app/oracle/product/9.2.0/rdbms/lib/ -L$(LIBHOME)]


Linking with OTHERLDFLAGS =      -L/u01/app/oracle/product/9.2.0/rdbms/lib32/ 
-L/u01/app/oracle/product/9.2.0/
lib32/   -lclntsh -l:libcl.sl -l:librt.sl -lpthread -l:libnss_dns.1 -l:libdld.sl -lm
 [from 'build' rule]


Warning: If you have problems you may need to rebuild perl with threading enabled.

LD_RUN_PATH=/u01/app/oracle/product/9.2.0/lib32:/u01/app/oracle/product/9.2.0/rdbms/lib32
Using DBD::Oracle 1.15.
Using DBD::Oracle 1.15.
Using DBI 1.38 installed in /opt/perl5/lib/site_perl/5.8.2/PA-RISC2.0/auto/DBI
Writing Makefile for DBD::Oracle

***  If you have problems...
     read all the log printed above, and the README and README.help files.
     (Of course, you have read README by now anyway, haven't you?)

-----Message d'origine-----
De : Tim Bunce [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 22 janvier 2004 13:19
À : [EMAIL PROTECTED]
Cc : [EMAIL PROTECTED]; Sean Kelly
Objet : Re: Can't make DBD: a solution on HP-UX 11.00 with Oracle 9i


Thanks for the info.

I'll ask this again... did "build rule discovery" work for you?

Can you send (just) me a log of "perl Makefile.PL" (use the script command).

Tim.

On Thu, Jan 22, 2004 at 12:05:01PM +0100, Joel Van Boeckel wrote:
> Hi Tim,
>
> HP reccomendations
> ------------------
> Concerning HP requirements, I followed most of reccomendations from Garry Ferguson
> available at http://www.mail-archive.com/[EMAIL PROTECTED]/msg18687.html
> The most important difference concerns the LINKTYPE of dbi and dbd. I didn't force 
> it to static.
>
> Libraries specified at link time
> --------------------------------
> I had to find the two libraries (-lnjni9 -ljip9) after some errors in the "make 
> test" of DBD. t/cursor.....
> /usr/lib/dld.sl: Unresolved symbol:
>   nnftboot (plabel)  from /u01/app/oracle/product/9.2.0/lib32/libclntsh.sl.9.0
>   ....
> I simply followed the findSymbol script specified in README.hpux.
>
> I'm not confident in fixing it in Makefile.PL
>
> SHLIB_PATH and LD_LIBRARY_PATH
> ------------------------------
> SHLIB_PATH is necessary at compile/link time
> the two lib dirs in LD_LIBRARY_PATH are needed at runtime. lib is needed for 64 bits 
> tools like sqlplus, lib32 is
needed
> by perl, compiled in 32 bits, right.
>
> But it works.
> Joël.
>
> -----Message d'origine-----
> De : Tim Bunce [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 21 janvier 2004 20:07
> À : [EMAIL PROTECTED]
> Cc : Sean Kelly; [EMAIL PROTECTED]
> Objet : Re: Can't make DBD: a solution on HP-UX 11.00 with Oracle 9i
>
>
> On Wed, Jan 21, 2004 at 06:02:29PM +0100, Joel Van Boeckel wrote:
> > Hi Sean,
> > I had a lot of problems in order to build Oracle:DBD on HP-UX.
> > I finally  ended to a very simple solution.
> > - recompile perl conforming to HP requirements
>
> What do you mean by "HP requirements"?
>
> > - patch DBD::Oracle Makefile.PL
> >
> > Perhaps may this information help you in fixing the solution.
>
> > --------------------------------------------------------
> > Environment (important to specify the lib32 libraries)
>
> In SHLIB_PATH?
>
> > export 
> > LD_LIBRARY_PATH=$ORACLE_HOME/lib32:/$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
> > export SHLIB_PATH=$ORACLE_HOME/lib32
>
> Aren't the two lib dirs in LD_LIBRARY_PATH needed for sqlplus (for example)
> to work correctly?
>
> > --------------------------------------------------------
> > Building perl with nothread
> > --------------------------------------------------------
> >
> >     rm -f config.sh Policy.sh
> >     ./Configure -Ubincompat5005 -Duselargefiles
> > When asked:
> >     1/ Build it "Not threaded" --> Build a threading Perl? [n]
> >     2/ "What libraries to use?" then prepend with -lcl -lpthread
> >         --> What libraries to use?
> >             [-lnsl -lnm -lndbm -lmalloc -ldld -lm -lcrypt -lsec -lc]
> >             -lcl -lpthread -lnsl -lnm -lndbm -lmalloc -ldld -lm -lcrypt -lsec -lc
> >     3/ "Any additional cc flags?" then prepend with   +z +DAportable +DSPA7300
> >         --> Any additional cc flags?
> >             [-Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -I/usr/local/include]
> >             +z +DAportable +DSPA7300 -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings
> >                     -I/usr/local/include
>
> How and why did you determine each of those values?
>
> > Patch Makefile.PL
> >
> > diff  Makefile.PL.org Makefile.PL
> > 295c295
> > <     $opts{LIBS} = [ "-L$OH/$libdir -l$lib $syslibs" ];
> > ---
> > >     $opts{LIBS} = [ "-L$OH/$libdir -lnjni9 -ljip9 -l$lib $syslibs" ];
>
> How did you determine each of those libraries?
> Did "build rule discovery" work for you?
> If not, can you fix it?
>
> Tim.
>
> p.s. I don't know anything about HPUX so hopefully others can help out here.
>
>

Reply via email to