Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

DBD Compile error on 11i

Michael Simone
Frequent Advisor

DBD Compile error on 11i

I'm trying to compile DBD-Oracle 1.15 on HP-UX 11.11 (11i). perl Makefile.PL runs fine, but make produces:

In file included from /opt/perl/lib/5.8.1/PA-RISC2.0/CORE/perl.h:709,
from /opt/perl/lib/site_perl/5.8.1/PA-RISC2.0/auto/DBI/DBIXS.h:
from Oracle.h:18,
from Oracle.xs:1:
/usr/include/sys/socket.h:64: error: conflicting types for `sbsize_t'
/web/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.3/include/sys/types.h:196: erro
r: previous declaration of `sbsize_t'
/usr/include/sys/socket.h:65: error: conflicting types for `bsize_t'
/web/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.3/include/sys/types.h:197: erro
r: previous declaration of `bsize_t'
*** Error exit code 1

I've tried several different gccs and Perls, and am currently working with gcc 3.3.3 from the HP DSPP (yes, it's the 11i version) with binutils 2.15, and Perl 5.8.1 from Merijn's site (correct build also).

This server had previously been running Perl 5.6.1 and an older gcc, but I uninstalled all that before starting this adventure. Ultimately I need to get Perl 5.8.x, DBI, DBD-Oracle, Apache 2.0.51, mod_perl 2.0, all running on here.

Am I out of whack on the gcc deal?

Web-01.root# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
osname=hpux, osvers=11.11, archname=PA-RISC2.0
uname='hp-ux h3 b.11.11 u 9000861 2009028909 unlimited-user license '
config_args='-Dusedevel -Dcc=gcc -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=unde
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
cc='gcc', ccflags ='-mpa-risc-2-0 -D_HPUX_SOURCE -DDEBUGGING -fno-strict-ali
asing -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-g -O',
cppflags='-mpa-risc-2-0 -D_HPUX_SOURCE -mpa-risc-2-0 -D_HPUX_SOURCE -DDEBUGG
ING -fno-strict-aliasing -I/pro/local/include'
ccversion='', gccversion='3.3.1', 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
alignbytes=8, prototype=define
Linker and Libraries:
ld='/usr/bin/ld', ldflags ='-L/pro/local/lib'
libpth=/pro/local/lib /lib /usr/lib /usr/ccs/lib /usr/local/lib
libs=-lcl -lpthread -lnsl -lnm -lndbm -lgdbm -ldb -lmalloc -ldld -lm -lcrypt
-lsec -lc
perllibs=-lcl -lpthread -lnsl -lnm -lmalloc -ldld -lm -lcrypt -lsec -lc
libc=/lib/, 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='-fPIC', lddlflags='-b -L/pro/local/lib'

Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING USE_LARGE_FILES
Built under hpux
Compiled at Sep 25 2003 16:49:33