Perl 5.6, Berkeley DB 3.1.17, BerkeleyDB 0.12 and HP-UX 11.0 
Author Message
 Perl 5.6, Berkeley DB 3.1.17, BerkeleyDB 0.12 and HP-UX 11.0

Hello,

I've been trying to get the above combination to work without success.  If
anybody has succeeded, I'd be interested in hearing how you did it.  I've
been in contact with Paul Marquess, the author of BerkeleyDB, and he has
tried to help, but he doesn't know much about HP-UX, and suggested I ask you
folks.

I downloaded the Berkeley DB software from sleepycat.com, and built it
without problems, and I followed the instructions for building a sharable
library under HP-UX:

    CFLAGS='+z' ../dist/configure ...

Then edit Makefile and change:

    libdb=          libdb.a

to:

    libdb=          libdb.sl

Then, "make" and "make install".  No problems.

I downloaded the latest BerkeleyDB from CPAN, and edited "config.in" to
point to my Berkely DB installation.  The module built without problems.
However, a "make test" produced:

Running Mkbootstrap for BerkeleyDB ()
        chmod 644 BerkeleyDB.bs
        LD_RUN_PATH="/usr/local/lib" ld -o
blib/arch/auto/BerkeleyDB/BerkeleyDB.sl  -b
+vnocompatwarnings -L/usr/local/lib BerkeleyDB.o    -L/usr/local/lib -ldb
        chmod 755 blib/arch/auto/BerkeleyDB/BerkeleyDB.sl
        cp BerkeleyDB.bs blib/arch/auto/BerkeleyDB/BerkeleyDB.bs
        chmod 644 blib/arch/auto/BerkeleyDB/BerkeleyDB.bs
        PERL_DL_NONLAZY=1
/usr/bin/perl -Iblib/arch -Iblib/lib -I/opt/perl5/lib/5.6.0/PA-RISC1.1 -I/op
t/perl5/lib/5.6.0 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0;

t/btree............./usr/lib/dld.sl: Unresolved symbol: pthread_cond_wait
(code)  from /usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutex_trylock (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_condattr_destroy (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutexattr_destroy (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_cond_init (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutex_init (code)  from
/usr/local/lib/libdb-3.1.sl
    ...
/usr/lib/dld.sl: Unresolved symbol: pthread_condattr_init (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutex_unlock (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_cond_signal (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_condattr_setpshared (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutexattr_init (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutexattr_setpshared (code)
from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutex_lock (code)  from
/usr/local/lib/libdb-3.1.sl
Can't load 'blib/arch/auto/BerkeleyDB/BerkeleyDB.sl' for module BerkeleyDB:
Unresolved external at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line
200.
 at t/unknown.t line 14
Compilation failed in require at t/unknown.t line 14.
BEGIN failed--compilation aborted at t/unknown.t line 14.
t/unknown...........dubious
        Test returned status 255 (wstat 65280, 0xff00)
FAILED--15 test scripts could be run, alas--no output ever seen
*** Error exit code 2

I tried about all the options to ../dist/configure that I thought might make
a difference; --enable-shared, --enable-dynamic, none of the above, etc.
The results were the same.

Paul Marquess then suggested that I add a line to Makefile.PL:

$OS2 = "-DOS2" if $^O eq 'os2' ;
$LIBS .= " -lpthread" ; # <<< Add this line

Making this change got me a different set of error messages:

t/btree............./usr/lib/dld.sl: Can't shl_load() a library containing
Thread Local Storage: /usr/lib/libpthread.1
/usr/lib/dld.sl: Exec format error
Can't load 'blib/arch/auto/BerkeleyDB/BerkeleyDB.sl' for module BerkeleyDB:
Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line 200.
 at t/btree.t line 25
Compilation failed in require at t/btree.t line 25.
BEGIN failed--compilation aborted at t/btree.t line 25.
t/btree.............dubious
        Test returned status 255 (wstat 65280, 0xff00)
t/destroy.........../usr/lib/dld.sl: Can't shl_load() a library containing
Thread Local Storage: /usr/lib/libpthread.1
/usr/lib/dld.sl: Exec format error
Can't load 'blib/arch/auto/BerkeleyDB/BerkeleyDB.sl' for module BerkeleyDB:
Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line 200.
 at t/destroy.t line 12
Compilation failed in require at t/destroy.t line 12.
BEGIN failed--compilation aborted at t/destroy.t line 12.
t/destroy...........dubious

My Perl is:

# perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC1.1
    uname='hp-ux ahqh03 b.11.00 a 9000831 2016163157 two-user license '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_HPUX_SOURCE -Aa -I/usr/local/include'
    ccflags
=' -D_HPUX_SOURCE -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI
TS=64  -Ae'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lnsl -lnm -lndbm -ldld -lm -lc -lndir -lcrypt -lsec
    libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef,
ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='+z', lddlflags='-b +vnocompatwarnings -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under hpux
  Compiled at Apr  3 2000 14:33:45

    /opt/perl5/lib/5.6.0/PA-RISC1.1
    /opt/perl5/lib/5.6.0
    /opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1
    /opt/perl5/lib/site_perl/5.6.0
    /opt/perl5/lib/site_perl
    .

I'd appreciate any suggestions.  Please respond by E-mail, if possible,
because my Usenet access isn't reliable.

Thanks,

Rodney



Sat, 15 Feb 2003 03:00:00 GMT  
 Perl 5.6, Berkeley DB 3.1.17, BerkeleyDB 0.12 and HP-UX 11.0
Hello,

I've been trying to get the above combination to work without success.  If
anybody has succeeded, I'd be interested in hearing how you did it.  I've
been in contact with Paul Marquess, the author of BerkeleyDB, and he has
tried to help, but he doesn't know much about HP-UX, and suggested I ask you
folks.

I downloaded the Berkeley DB software from sleepycat.com, and built it
without problems, and I followed the instructions for building a sharable
library under HP-UX:

    CFLAGS='+z' ../dist/configure ...

Then edit Makefile and change:

    libdb=          libdb.a

to:

    libdb=          libdb.sl

Then, "make" and "make install".  No problems.

I downloaded the latest BerkeleyDB from CPAN, and edited "config.in" to
point to my Berkely DB installation.  The module built without problems.
However, a "make test" produced:

Running Mkbootstrap for BerkeleyDB ()
        chmod 644 BerkeleyDB.bs
        LD_RUN_PATH="/usr/local/lib" ld -o
blib/arch/auto/BerkeleyDB/BerkeleyDB.sl  -b
+vnocompatwarnings -L/usr/local/lib BerkeleyDB.o    -L/usr/local/lib -ldb
        chmod 755 blib/arch/auto/BerkeleyDB/BerkeleyDB.sl
        cp BerkeleyDB.bs blib/arch/auto/BerkeleyDB/BerkeleyDB.bs
        chmod 644 blib/arch/auto/BerkeleyDB/BerkeleyDB.bs
        PERL_DL_NONLAZY=1
/usr/bin/perl -Iblib/arch -Iblib/lib -I/opt/perl5/lib/5.6.0/PA-RISC1.1 -I/op
t/perl5/lib/5.6.0 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0;

t/btree............./usr/lib/dld.sl: Unresolved symbol: pthread_cond_wait
(code)  from /usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutex_trylock (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_condattr_destroy (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutexattr_destroy (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_cond_init (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutex_init (code)  from
/usr/local/lib/libdb-3.1.sl
    ...
/usr/lib/dld.sl: Unresolved symbol: pthread_condattr_init (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutex_unlock (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_cond_signal (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_condattr_setpshared (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutexattr_init (code)  from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutexattr_setpshared (code)
from
/usr/local/lib/libdb-3.1.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_mutex_lock (code)  from
/usr/local/lib/libdb-3.1.sl
Can't load 'blib/arch/auto/BerkeleyDB/BerkeleyDB.sl' for module BerkeleyDB:
Unresolved external at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line
200.
 at t/unknown.t line 14
Compilation failed in require at t/unknown.t line 14.
BEGIN failed--compilation aborted at t/unknown.t line 14.
t/unknown...........dubious
        Test returned status 255 (wstat 65280, 0xff00)
FAILED--15 test scripts could be run, alas--no output ever seen
*** Error exit code 2

I tried about all the options to ../dist/configure that I thought might make
a difference; --enable-shared, --enable-dynamic, none of the above, etc.
The results were the same.

Paul Marquess then suggested that I add a line to Makefile.PL:

$OS2 = "-DOS2" if $^O eq 'os2' ;
$LIBS .= " -lpthread" ; # <<< Add this line

Making this change got me a different set of error messages:

t/btree............./usr/lib/dld.sl: Can't shl_load() a library containing
Thread Local Storage: /usr/lib/libpthread.1
/usr/lib/dld.sl: Exec format error
Can't load 'blib/arch/auto/BerkeleyDB/BerkeleyDB.sl' for module BerkeleyDB:
Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line 200.
 at t/btree.t line 25
Compilation failed in require at t/btree.t line 25.
BEGIN failed--compilation aborted at t/btree.t line 25.
t/btree.............dubious
        Test returned status 255 (wstat 65280, 0xff00)
t/destroy.........../usr/lib/dld.sl: Can't shl_load() a library containing
Thread Local Storage: /usr/lib/libpthread.1
/usr/lib/dld.sl: Exec format error
Can't load 'blib/arch/auto/BerkeleyDB/BerkeleyDB.sl' for module BerkeleyDB:
Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line 200.
 at t/destroy.t line 12
Compilation failed in require at t/destroy.t line 12.
BEGIN failed--compilation aborted at t/destroy.t line 12.
t/destroy...........dubious

My Perl is:

# perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC1.1
    uname='hp-ux ahqh03 b.11.00 a 9000831 2016163157 two-user license '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_HPUX_SOURCE -Aa -I/usr/local/include'
    ccflags
=' -D_HPUX_SOURCE -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI
TS=64  -Ae'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lnsl -lnm -lndbm -ldld -lm -lc -lndir -lcrypt -lsec
    libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef,
ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='+z', lddlflags='-b +vnocompatwarnings -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under hpux
  Compiled at Apr  3 2000 14:33:45

    /opt/perl5/lib/5.6.0/PA-RISC1.1
    /opt/perl5/lib/5.6.0
    /opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1
    /opt/perl5/lib/site_perl/5.6.0
    /opt/perl5/lib/site_perl
    .

I'd appreciate any suggestions.  Please respond by E-mail, if possible,
because my Usenet access isn't reliable.

Thanks,

Rodney



Sat, 15 Feb 2003 03:00:00 GMT  
 Perl 5.6, Berkeley DB 3.1.17, BerkeleyDB 0.12 and HP-UX 11.0
[posted and mailed]



Quote:
>Hello,

>I've been trying to get the above combination to work without success.
>If anybody has succeeded, I'd be interested in hearing how you did it.
>I've been in contact with Paul Marquess, the author of BerkeleyDB, and
>he has tried to help, but he doesn't know much about HP-UX, and
>suggested I ask you folks.

>I downloaded the Berkeley DB software from sleepycat.com, and built it
>without problems, and I followed the instructions for building a
>sharable library under HP-UX:

>    CFLAGS='+z' ../dist/configure ...

>Then edit Makefile and change:

>    libdb=          libdb.a

>to:

>    libdb=          libdb.sl

>Then, "make" and "make install".  No problems.

>I downloaded the latest BerkeleyDB from CPAN, and edited "config.in" to
>point to my Berkely DB installation.  The module built without problems.
>However, a "make test" produced:

>Running Mkbootstrap for BerkeleyDB ()
>        chmod 644 BerkeleyDB.bs
>        LD_RUN_PATH="/usr/local/lib" ld -o
>blib/arch/auto/BerkeleyDB/BerkeleyDB.sl  -b
>+vnocompatwarnings -L/usr/local/lib BerkeleyDB.o    -L/usr/local/lib
>-ldb
>        chmod 755 blib/arch/auto/BerkeleyDB/BerkeleyDB.sl
>        cp BerkeleyDB.bs blib/arch/auto/BerkeleyDB/BerkeleyDB.bs
>        chmod 644 blib/arch/auto/BerkeleyDB/BerkeleyDB.bs
>        PERL_DL_NONLAZY=1
>/usr/bin/perl -Iblib/arch -Iblib/lib -I/opt/perl5/lib/5.6.0/PA-RISC1.1
>-I/op t/perl5/lib/5.6.0 -e 'use Test::Harness qw(&runtests $verbose);

>t/btree............./usr/lib/dld.sl: Unresolved symbol:
>pthread_cond_wait (code)  from /usr/local/lib/libdb-3.1.sl
>/usr/lib/dld.sl: Unresolved symbol: pthread_mutex_trylock (code)  from
>/usr/local/lib/libdb-3.1.sl
>/usr/lib/dld.sl: Unresolved symbol: pthread_condattr_destroy (code)
>from /usr/local/lib/libdb-3.1.sl
>/usr/lib/dld.sl: Unresolved symbol: pthread_mutexattr_destroy (code)
>from /usr/local/lib/libdb-3.1.sl
>/usr/lib/dld.sl: Unresolved symbol: pthread_cond_init (code)  from
>/usr/local/lib/libdb-3.1.sl
>/usr/lib/dld.sl: Unresolved symbol: pthread_mutex_init (code)  from
>/usr/local/lib/libdb-3.1.sl
>    ...
>/usr/lib/dld.sl: Unresolved symbol: pthread_condattr_init (code)  from
>/usr/local/lib/libdb-3.1.sl
>/usr/lib/dld.sl: Unresolved symbol: pthread_mutex_unlock (code)  from
>/usr/local/lib/libdb-3.1.sl
>/usr/lib/dld.sl: Unresolved symbol: pthread_cond_signal (code)  from
>/usr/local/lib/libdb-3.1.sl
>/usr/lib/dld.sl: Unresolved symbol: pthread_condattr_setpshared (code)
>from /usr/local/lib/libdb-3.1.sl
>/usr/lib/dld.sl: Unresolved symbol: pthread_mutexattr_init (code)  from
>/usr/local/lib/libdb-3.1.sl
>/usr/lib/dld.sl: Unresolved symbol: pthread_mutexattr_setpshared (code)
>from
>/usr/local/lib/libdb-3.1.sl
>/usr/lib/dld.sl: Unresolved symbol: pthread_mutex_lock (code)  from
>/usr/local/lib/libdb-3.1.sl
>Can't load 'blib/arch/auto/BerkeleyDB/BerkeleyDB.sl' for module
>BerkeleyDB: Unresolved external at
>/opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line 200.
> at t/unknown.t line 14
>Compilation failed in require at t/unknown.t line 14.
>BEGIN failed--compilation aborted at t/unknown.t line 14.
>t/unknown...........dubious
>        Test returned status 255 (wstat 65280, 0xff00)
>FAILED--15 test scripts could be run, alas--no output ever seen
>*** Error exit code 2

>I tried about all the options to ../dist/configure that I thought might
>make a difference; --enable-shared, --enable-dynamic, none of the above,
>etc. The results were the same.

>Paul Marquess then suggested that I add a line to Makefile.PL:

>$OS2 = "-DOS2" if $^O eq 'os2' ;
>$LIBS .= " -lpthread" ; # <<< Add this line

>Making this change got me a different set of error messages:

>t/btree............./usr/lib/dld.sl: Can't shl_load() a library
>containing Thread Local Storage: /usr/lib/libpthread.1
>/usr/lib/dld.sl: Exec format error
>Can't load 'blib/arch/auto/BerkeleyDB/BerkeleyDB.sl' for module
>BerkeleyDB: Exec format error at
>/opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line 200.
> at t/btree.t line 25
>Compilation failed in require at t/btree.t line 25.
>BEGIN failed--compilation aborted at t/btree.t line 25.
>t/btree.............dubious
>        Test returned status 255 (wstat 65280, 0xff00)
>t/destroy.........../usr/lib/dld.sl: Can't shl_load() a library
>containing Thread Local Storage: /usr/lib/libpthread.1
>/usr/lib/dld.sl: Exec format error
>Can't load 'blib/arch/auto/BerkeleyDB/BerkeleyDB.sl' for module
>BerkeleyDB: Exec format error at
>/opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line 200.
> at t/destroy.t line 12
>Compilation failed in require at t/destroy.t line 12.
>BEGIN failed--compilation aborted at t/destroy.t line 12.
>t/destroy...........dubious

>My Perl is:

># perl -V
>Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
>  Platform:
>    osname=hpux, osvers=11.00, archname=PA-RISC1.1
>    uname='hp-ux ahqh03 b.11.00 a 9000831 2016163157 two-user license '
>    config_args=''
>    hint=recommended, useposix=true, d_sigaction=define
>    usethreads=undef use5005threads=undef useithreads=undef
>usemultiplicity=undef
>    useperlio=undef d_sfio=undef uselargefiles=define
>    use64bitint=undef use64bitall=undef uselongdouble=undef
>    usesocks=undef
>  Compiler:
>    cc='cc', optimize='-O', gccversion=
>    cppflags='-D_HPUX_SOURCE -Aa -I/usr/local/include'
>    ccflags
>=' -D_HPUX_SOURCE -I/usr/local/include -D_LARGEFILE_SOURCE
>-D_FILE_OFFSET_BI TS=64  -Ae'
>    stdchar='unsigned char', d_stdstdio=define, usevfork=false
>    intsize=4, longsize=4, ptrsize=4, doublesize=8
>    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
>    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
>lseeksize=8
>    alignbytes=8, usemymalloc=y, prototype=define
>  Linker and Libraries:
>    ld='ld', ldflags =' -L/usr/local/lib'
>    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
>    libs=-lnsl -lnm -lndbm -ldld -lm -lc -lndir -lcrypt -lsec
>    libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
>  Dynamic Linking:
>    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef,
>ccdlflags='-Wl,-E -Wl,-B,deferred '
>    cccdlflags='+z', lddlflags='-b +vnocompatwarnings -L/usr/local/lib'

>Characteristics of this binary (from libperl):
>  Compile-time options: USE_LARGE_FILES
>  Built under hpux
>  Compiled at Apr  3 2000 14:33:45

>    /opt/perl5/lib/5.6.0/PA-RISC1.1
>    /opt/perl5/lib/5.6.0
>    /opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1
>    /opt/perl5/lib/site_perl/5.6.0
>    /opt/perl5/lib/site_perl
>    .

>I'd appreciate any suggestions.  Please respond by E-mail, if possible,
>because my Usenet access isn't reliable.

Does my previous help to someone else help:

1: Does anyone know if DB_File is standard in both the UNIX and win32

Quote:
>versions of Perl?
>2: Can I upload/download/move, etc. DB_File files? And how should I
>upload/download? ASCII/Binary...

>Maarten

The perl interface DB_File is standard, its target DB is not, but can be
downloaded at ftp://ftp.sleepycat.com/pub

DB_File module docs state it will build on both version 2 (latest is 2.7.7)
and 3 (latest is 3.0.55) of BerkelyDB, but on my HP-UX 11.00 it will not
run on version 3 due to a missing db_open call (which indeed is missing
in version 3). It builds fine on version 2.

Notes for HP-UX:
DB_File needs a shared version of libdb (for my current configuration
of perl5.00503). Default building version 2 makes a static library that
cannot be used by DB_File. On db-2.7.7:
        # env CFLAGS="-Ae +O2 +Onolimit +Z" ../dist/configure
        # make libdb.a
        # ld -b -o libdb.sl *.o
        # make install
        # mv libdb.sl /usr/local/lib
        # rm /usr/local/lib/libdb.a
Change locations where needed

# perl5.7.0 -V
Summary of my perl5 (revision 5.0 version 7 subversion 0) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC2.0
    uname='hp-ux l1 b.11.00 u 9000800 527706567 unlimited-user license '
    config_args='-ds'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=unde
f
    useperlio=undef d_sfio=undef uselargefiles=define
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cc', optimize='+O2 +Onolimit', gccversion=, gccosandvers=
    cppflags='-DDEBUGGING -Ae -D_HPUX_SOURCE -I/pro/local/include'
    ccflags =' -DDEBUGGING -Ae -D_HPUX_SOURCE -I/pro/local/include -
D_LARGEFILE_
SOURCE -D_FILE_OFFSET_BITS=64 '
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize
=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='ld', ldflags ='-L/pro/local/lib -Wl,+vnocompatwarnings'
    libpth=/pro/local/lib /lib /usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lnsl -lnm -lndbm -lgdbm -ldb -ldld -lm -lc -lndir -lcrypt -lsec
    libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-
B,deferr
ed '
    cccdlflags='+z', lddlflags='-b +vnocompatwarnings -L/pro/local/lib'

Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING USE_LARGE_FILES
  Locally applied patches:
        DEVEL6918
  Built under hpux
  Compiled at Aug 30 2000 18:14:52

    /pro/lib/perl5/5.7.0/PA-RISC2.0
    /pro/lib/perl5/5.7.0
    /pro/lib/perl5/site_perl/5.7.0/PA-RISC2.0
    /pro/lib/perl5/site_perl/5.7.0
    /pro/lib/perl5/site_perl/5.005/PA-RISC2.0
    /pro/lib/perl5/site_perl/5.005
    /pro/lib/perl5/site_perl
    .

Note: we use /pro instead of /usr, replace all where appropriate.

--
H.Merijn Brand ...

read more »



Sun, 16 Feb 2003 03:00:00 GMT  
 Perl 5.6, Berkeley DB 3.1.17, BerkeleyDB 0.12 and HP-UX 11.0


Quote:
> The perl interface DB_File is standard, its target DB is not, but can be
> downloaded at ftp://ftp.sleepycat.com/pub

Thank you very much for your response.  I wanted to use BerkeleyDB instead
of DB_File because BerkeleyDB supports the latest DB.  However, an older
version that works is preferable to a newer one which doesn't, I guess.

Quote:
> # env CFLAGS="-Ae +O2 +Onolimit +Z" ../dist/configure
> # make libdb.a
> # ld -b -o libdb.sl *.o
> # make install
> # mv libdb.sl /usr/local/lib
> # rm /usr/local/lib/libdb.a

I tried building the DB software your way, in the hope that it'd work better
than my way.  However, when I tried installing BerkelyDB, I got the same
results as before.  So, I guess I'll have to drop back to DB_File unless
anyone has any other suggestions.

Thanks,

Rodney



Mon, 17 Feb 2003 23:50:35 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. BerkeleyDB, DB 3.1.14, HP-UX 11.00

2. DBD::Oracle 1.06, HP-UX 11.0, perl 5.00503 compile time errors

3. Problems installing Authen::TacacsPlus on HP-UX 11.0

4. Strange behavior of perl5 on HP-UX 11.0

5. Problems compiling DBI and HP-UX 11.0

6. Success: DBD-Oracle-1.03 on HP-UX 11.0 (64Bit Version) and Oracle 8.1.6

7. Q: Crypt::Blowfish at HP-UX 11.0

8. Net::Telnet problem on HP-UX 11.0

9. How to build DBD::Oracle under HP-UX 11.0

10. Problems compiling DBI and HP-UX 11.0

11. Problems attempting to install HTML::Parser on HP-UX 11.0

12. CPAN 1.50 on HP-UX 11.0 problem

 

 
Powered by phpBB® Forum Software