RE: DBI compile on HPUX-11.23



Are you using gcc? If so use the native HP-UX compiler. This is a known issue/


P

-----Original Message-----
From: Sigurður E. Guttormsson [mailto:seg@xxxxxxxxxxxxx]
Sent: 20 April 2007 11:07
To: dbi-users@xxxxxxxx
Subject: DBI compile on HPUX-11.23


Hello, I have a problem compiling DBI on HPUX 11.23 Ittanium
platform. There's clearly something not fully compatible in
configure+compiler combination. Enclosed is info according to README.

Additionally I intend to use Oracle driver (DBD::Oracle) and
foresee more problems there!

Best regards,
S. Guttormsson


----

# perl Makefile.PL

*** You are using a perl configured with threading enabled.
*** You should be aware that using multiple threads is
*** not recommended for production environments.

*** Note:
The optional PlRPC-modules (RPC::PlServer etc) are not installed.
If you want to use the DBD::Proxy driver and DBI::ProxyServer
modules, then you'll need to install the RPC::PlServer,
RPC::PlClient,
Storable and Net::Daemon modules. The CPAN Bundle::DBI
may help you.
You can install them any time after installing the DBI.
You do *not* need these modules for typical DBI usage.

Optional modules are available from any CPAN mirror, in particular
http://search.cpan.org/
http://www.perl.com/CPAN/modules/by-module
http://www.perl.org/CPAN/modules/by-module
ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module

Your perl was compiled with gcc (version 3.2 20020329
(experimental)), okay. Creating test wrappers for
DBI::PurePerl: t/zvp_01basics.t
t/zvp_02dbidrv.t
t/zvp_03handle.t
t/zvp_04mods.t
t/zvp_05thrclone.t (use threads)
t/zvp_06attrs.t
t/zvp_07kids.t
t/zvp_08keeperr.t
t/zvp_09trace.t
t/zvp_10examp.t
t/zvp_11fetch.t
t/zvp_12quote.t
t/zvp_13taint.t
t/zvp_14utf8.t
t/zvp_15array.t
t/zvp_19fhtrace.t
t/zvp_20meta.t
t/zvp_30subclass.t
t/zvp_40profile.t
t/zvp_41prof_dump.t
t/zvp_42prof_data.t
t/zvp_43prof_env.t
t/zvp_50dbm.t
t/zvp_60preparse.t
t/zvp_65transact.t
t/zvp_70callbacks.t
t/zvp_72childhandles.t
t/zvp_80proxy.t
t/zvp_85gofer.t
Creating test wrappers for DBD::Gofer:
t/zvg_01basics.t
t/zvg_02dbidrv.t
t/zvg_03handle.t
t/zvg_04mods.t
t/zvg_05thrclone.t (use threads)
t/zvg_06attrs.t
t/zvg_07kids.t
t/zvg_08keeperr.t
t/zvg_09trace.t
t/zvg_10examp.t
t/zvg_11fetch.t
t/zvg_12quote.t
t/zvg_13taint.t
t/zvg_14utf8.t
t/zvg_15array.t
t/zvg_19fhtrace.t
t/zvg_20meta.t
t/zvg_30subclass.t
t/zvg_40profile.t
t/zvg_41prof_dump.t
t/zvg_42prof_data.t
t/zvg_43prof_env.t
t/zvg_50dbm.t
t/zvg_60preparse.t
t/zvg_65transact.t
t/zvg_70callbacks.t
t/zvg_72childhandles.t
t/zvg_80proxy.t
t/zvg_85gofer.t
Creating test wrappers for PurePerl & Gofer:
t/zvxgp_01basics.t
t/zvxgp_02dbidrv.t
t/zvxgp_03handle.t
t/zvxgp_04mods.t
t/zvxgp_05thrclone.t (use threads)
t/zvxgp_06attrs.t
t/zvxgp_07kids.t
t/zvxgp_08keeperr.t
t/zvxgp_09trace.t
t/zvxgp_10examp.t
t/zvxgp_11fetch.t
t/zvxgp_12quote.t
t/zvxgp_13taint.t
t/zvxgp_14utf8.t
t/zvxgp_15array.t
t/zvxgp_19fhtrace.t
t/zvxgp_20meta.t
t/zvxgp_30subclass.t
t/zvxgp_40profile.t
t/zvxgp_41prof_dump.t
t/zvxgp_42prof_data.t
t/zvxgp_43prof_env.t
t/zvxgp_50dbm.t
t/zvxgp_60preparse.t
t/zvxgp_65transact.t
t/zvxgp_70callbacks.t
t/zvxgp_72childhandles.t
t/zvxgp_80proxy.t
t/zvxgp_85gofer.t
Warning: prerequisite File::Spec 1 not found. We have 0.83.

I see you're using perl 5.008 on
IA64.ARCHREV_0-thread-multi, okay.
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete
this working
directory before unpacking and building any DBD::* drivers.

Writing Makefile for DBI

----

# make
gcc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT
-D_HPUX_SOURCE -fPIC -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DVERSION=\"1.54\"
-DXS_VERSION=\"1.54\" -fPIC
"-I/opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE" -W
-Wall -Wpointer-arith -Wbad-function-cast -Wno-comment
-Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn
-Wno-unused-parameter Perl.c
In file included from
/opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE/perl.h:3950,
from DBIXS.h:19,
from Perl.xs:6:
/usr/include/sys/ipc.h:51: error: parse error before "cid_t"
/usr/include/sys/ipc.h:56: error: parse error before '}'
token In file included from
/opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi/CORE/perl.h:3951,
from DBIXS.h:19,
from Perl.xs:6:
/usr/include/sys/sem.h:91: error: field `sem_perm' has incomplete type
*** Error exit code 1

Stop.


----

# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0)
configuration:
Platform:
osname=hpux, osvers=11.22, archname=IA64.ARCHREV_0-thread-multi
uname='hp-ux bigsur03 b.11.22 u ia64 1800516905
unlimited-user license '
config_args='-des -Dcc=gcc -Dcf_by=ActiveState
-Dcf_email=ActivePerl@xxxxxxxxxxxxxxx -Uinstallusrbinperl
-Ud_sigsetjmp -Dusethreads -Duseithreads -Ulocincpth=
-Uloclibpth= -Accflags=-fPIC -Dd_attribut=undef
-Dcccdlflags=-fPIC -Uoptimize -Duselargefiles
-Dprefix=/opt/perl -Duselargefiles'
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 -fPIC -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize=' ',
cppflags='-D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L
-D_REENTRANT -D_HPUX_SOURCE -fPIC -fno-strict-aliasing'
ccversion='', gccversion='3.2 20020329 (experimental)',
gccosandvers='hpux11.20'
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='gcc', ldflags =' -L/usr/lib/hpux32'
libpth=/usr/lib/hpux32 /lib /usr/lib /usr/ccs/lib /usr/local/lib
libs=-lnsl -lnm -lndbm -ldl -ldld -lm -lsec -lpthread
perllibs=-lnsl -lnm -ldl -ldld -lm -lsec -lpthread
libc=/usr/lib/hpux32/libc.so, so=so, useshrplib=false,
libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-Wl,-E -Wl,-B,deferred '
cccdlflags='-fPIC', lddlflags='-shared -static-libgcc
-fPIC -L/usr/lib/hpux32'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Locally applied patches:
ActivePerl Build 806
Built under hpux
Compiled at May 2 2003 21:27:40
@INC:
/opt/perl/lib/5.8.0/IA64.ARCHREV_0-thread-multi
/opt/perl/lib/5.8.0
/opt/perl/lib/site_perl/5.8.0/IA64.ARCHREV_0-thread-multi
/opt/perl/lib/site_perl/5.8.0
/opt/perl/lib/site_perl
.

-----
# gcc --version
gcc (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.


----
# uname -a
HP-UX tintin B.11.23 U ia64 1620026100 unlimited-user license


.



Relevant Pages

  • Re: [SLE] Problems with kxdocker
    ... I am attempting to install kxdocker in SuSE10.1 under KDE.. ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (SuSE)
  • Re: bacula server
    ... thanks folks but i do not have a leg to stand on here i am coming from freebsd where make install clean is about all i guy needs to install software. ... checking for gcc... ... checking for C compiler default output file name... ... I was trying to recount the steps for compiling the source rpm for the ...
    (Fedora)
  • installing X libraries?? -- need your help!
    ... Then I tried to install a kdm theme called "QtCurve- ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (Debian-User)
  • [SLE] Problems with kxdocker
    ... I am attempting to install kxdocker in SuSE10.1 under KDE.. ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (SuSE)
  • X includes - fc5 x86_64
    ... checking for -p flag to install... ... checking for C++ compiler default output file name... ... checking for gcc... ... checking Carbon/Carbon.h presence... ...
    (Fedora)