develooper Front page | perl.perl5.porters | Postings from April 2008

Re: [perl #53330] Error on Configure PERL 5.8.6 on HP platform "pthread: not found."

Thread Previous
From:
H.Merijn Brand
Date:
April 26, 2008 08:36
Subject:
Re: [perl #53330] Error on Configure PERL 5.8.6 on HP platform "pthread: not found."
Message ID:
20080426173621.7179e62c@pc09.procura.nl
On Fri, 25 Apr 2008 06:44:48 -0700, "alexandra.bacher@mpsa.com (via
RT)" <perlbug-followup@perl.org> wrote:

> Hello,
> I've got a problem to compile PERL-5.8.6 only on HP platform  (with gcc)

Is there a specific reason to compile it yourself?
There's three perfectly good precompiled bundles available from
different sources, all compiled with the libs DBD::Oracle needs

> when we configure with 'cl pthread' option for Oracle.
> We already have the same message  "pthread:  not found."

Is pthread installed? Is it installed as 32bit?

For 32bit:
$ swlist -l file | grep lib/libpthread
  OS-Core.C-MIN-32ALIB: /usr/lib/libpthread.a
  OS-Core.C-MIN-32ALIB: /usr/lib/libpthread_tr.a
  OS-Core.CORE-SHLIBS: /usr/lib/libpthread.1
  OS-Core.CORE-SHLIBS: /usr/lib/libpthread.sl
  OS-Core.CORE-SHLIBS: /usr/lib/libpthread_tr.1
  OS-Core.CORE-SHLIBS: /usr/lib/libpthread_tr.sl
  PHCO_30544.C-MIN-32ALIB: /usr/lib/libpthread.a
  PHCO_30544.C-MIN-32ALIB: /usr/lib/libpthread_tr.a
  PHCO_30544.CORE-SHLIBS: /usr/lib/libpthread.1
  PHCO_30544.CORE-SHLIBS: /usr/lib/libpthread_tr.1
  WDB.WDB: /opt/langtools/wdb/lib/libpthread.1
  WDB.WDB: /opt/langtools/wdb/lib/libpthread.sl

For 64bit:
$ swlist -l file | grep 64/libpthread
  OS-Core.C-MIN-64ALIB: /usr/lib/pa20_64/libpthread.a
  OS-Core.C-MIN-64ALIB: /usr/lib/pa20_64/libpthread_tr.a
  OS-Core.CORE-64SLIB: /usr/lib/pa20_64/libpthread.1
  OS-Core.CORE-64SLIB: /usr/lib/pa20_64/libpthread.sl
  OS-Core.CORE-64SLIB: /usr/lib/pa20_64/libpthread_tr.1
  OS-Core.CORE-64SLIB: /usr/lib/pa20_64/libpthread_tr.sl
  PHCO_30544.C-MIN-64ALIB: /usr/lib/pa20_64/libpthread.a
  PHCO_30544.C-MIN-64ALIB: /usr/lib/pa20_64/libpthread_tr.a
  PHCO_30544.CORE-64SLIB: /usr/lib/pa20_64/libpthread.1
  PHCO_30544.CORE-64SLIB: /usr/lib/pa20_64/libpthread_tr.1
  WDB.WDB: /opt/langtools/wdb/lib/pa20_64/libpthread.1
  WDB.WDB: /opt/langtools/wdb/lib/pa20_64/libpthread.sl

> I send you  the results of ./myconfig  and the uname commands.
> 
> Site configuration information for perl v5.8.6:
> 
> Configured by root at Fri Apr 25 14:24:01 METDST 2008.
> 
> Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
>   Platform:
>     osname=hpux, osvers=11.11, archname=PA-RISC2.0-thread-multi
>     uname='hp-ux beaha2 b.11.11 u 9000800 1511700518 unlimited-user license
> '
>     config_args='-Dcc=gcc -Duselargefiles -Dprefix=/soft/perl-5.8.6
> -Dusethreads -Duseshrplib -A prepend:libswanted='cl pthre
> ad ''

Are you sure you want a threaded perl? It's not needed for DBD::Oracle.

-Duselargefiles isn't needed, it's default
Why do you want -Duseshrplib ? (Nothing wrong with it, but just
wondering. I never do)

>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=define use5005threads=undef useithreads=define
> usemultiplicity=define
>     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>   Compiler:
>     cc='gcc', ccflags ='-D_POSIX_C_SOURCE=199506L -D_REENTRANT
> -D_HPUX_SOURCE -mpa-risc-2-0 -DDEBUGGING -fno-strict-aliasing
> -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
>     optimize='-g -O',
>     cppflags='-D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_REENTRANT
> -D_HPUX_SOURCE -mpa-risc-2-0 -DDEBUGGING -fno-strict-alia
> sing -pipe -I/usr/local/include'
>     ccversion='', gccversion='3.3.3', gccosandvers='hpux11.11'
>     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, prototype=define
>   Linker and Libraries:
>     ld='/usr/bin/ld', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib /soft/perl-5.8.6/lib
>     libs=-lcl -lpthread -lnsl -lnm -lndbm -lmalloc -ldld -lm -lcrypt -lsec
> -lc
>     perllibs=-lcl -lpthread -lnsl -lnm -lmalloc -ldld -lm -lcrypt -lsec -lc
>     libc=/lib/libc.sl, so=sl, useshrplib=true, libperl=libperl.sl
>     gnulibc_version=''
>   Dynamic Linking:
>     dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
> -Wl,-B,deferred '
>     cccdlflags='-fPIC', lddlflags='-b -L/usr/local/lib'

> {op}@beaha2 # uname -a
> HP-UX beaha2 B.11.11 U 9000/800 1511700518 unlimited-user license

-- 
H.Merijn Brand         Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.10.x  on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin.       http://qa.perl.org
http://mirrors.develooper.com/hpux/            http://www.test-smoke.org
                        http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About