This looks like your GCC can not parse /usr/include/socket.h

Can you test that?

cat > t.c <<EOF
#include <socket>
int main() { exit(0); }
EOF
gcc -o t.o -c t.c


Lincoln
 
215-444-7973 (office)
267-716-1370 (cellular)


-----Original Message-----
From: mkb [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 04, 2003 12:15 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: make DBI-1.35 Fails on HP-UX 11i and Perl 5.8.0

I'm trying to install DBI-1.35 on HP-UX 11.11 and Perl
5.8.0.  During the make stage I get the following
errors:

Steps I took...
uname -a 
B.11.11 U 9000/800 691359336 unlimited-user license

I did a make realclean
then perl Makefile.PL 
<snip>
Checking if your kit is complete...
Looks good
Writing Makefile for DBI

Then make (here's the output):
        cp Changes blib/lib/DBI/Changes.pm
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp DBI.pm blib/lib/DBI.pm
cp lib/DBI/Const/GetInfoReturn.pm
blib/lib/DBI/Const/GetInfoReturn.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp lib/DBI/Const/GetInfo/ANSI.pm
blib/lib/DBI/Const/GetInfo/ANSI.pm
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBI/Const/GetInfoType.pm
blib/lib/DBI/Const/GetInfoType.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/DBI/DBD/Metadata.pm
blib/lib/DBI/DBD/Metadata.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp lib/DBI/Const/GetInfo/ODBC.pm
blib/lib/DBI/Const/GetInfo/ODBC.pm
cp lib/DBI/ProfileDumper/Apache.pm
blib/lib/DBI/ProfileDumper/Apache.pm
cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBI/ProfileDumper.pm
blib/lib/DBI/ProfileDumper.pm
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
        /usr/local/bin/perl -p -e "s/~DRIVER~/Perl/g"
< blib/arch/auto/DBI/Driver.xst > Perl.xsi
        /usr/local/bin/perl
/usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap
/usr/local/lib/perl5/5.8.0/ExtUtils/typemap  Perl.xs >
Perl.xsc && mv Perl.xsc Perl.c
        gcc -c    -D_HPUX_SOURCE -fno-strict-aliasing
-D_LARGEFILE_SOURCE     -DVERSION=\"1.35\" 
-DXS_VERSION=\"1.35\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/PA-RISC2.0/CORE"  -Wall
-Wno-comment -DDBI_NO_THREADS Perl.c
In file included from
/usr/local/lib/perl5/5.8.0/PA-RISC2.0/CORE/perl.h:681,
                 from DBIXS.h:19,
                 from Perl.xs:1:
/usr/include/sys/socket.h:484: parse error before
"sendfile"
/usr/include/sys/socket.h:485: parse error before
"bsize_t"
/usr/include/sys/socket.h:486: parse error before
"sendpath"
/usr/include/sys/socket.h:487: parse error before
"bsize_t"
*** Error exit code 1

Stop.

Output of perl -V is:

Summary of my perl5 (revision 5.0 version 8 subversion
0) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC2.0
    uname='hp-ux quioch b.11.00 a 9000780 2012209406
two-user license '
    config_args='-d -e -Dcc=gcc -Dprefix=/usr/local
useposix=true'
    hint=recommended, useposix=true,
d_sigaction=define
    usethreads=undef use5005threads=undef
useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define
usesocks=undef
    use64bitint=undef use64bitall=undef
uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_HPUX_SOURCE
-fno-strict-aliasing -D_LARGEFILE_SOURCE',
    optimize='',
    cppflags='-D_HPUX_SOURCE -D_HPUX_SOURCE
-fno-strict-aliasing'
    ccversion='', gccversion='3.2',
gccosandvers='hpux11.00'
    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=4
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='/usr/bin/ld', ldflags =' -L/usr/local/lib
-L/opt/local/lib'
    libpth=/usr/local/lib /opt/local/lib /lib /usr/lib
/usr/ccs/lib
    libs=-lcl -lpthread -lnsl -lnm -lndbm -lgdbm -ldb
-lmalloc -ldld -lm -lc -lndir -lcrypt -lsec
    perllibs=-lcl -lpthread -lnsl -lnm -lmalloc -ldld
-lm -lc -lndir -lcrypt -lsec
    libc=/lib/libc.sl, so=sl, useshrplib=false,
libperl=libperl.a
    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
-L/opt/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under hpux
  Compiled at Aug 29 2002 16:13:57
  @INC:
    /usr/local/lib/perl5/5.8.0/PA-RISC2.0
    /usr/local/lib/perl5/5.8.0
    /usr/local/lib/perl5/site_perl/5.8.0/PA-RISC2.0
    /usr/local/lib/perl5/site_perl/5.8.0
    /usr/local/lib/perl5/site_perl
  .

According to my googling, the socket.h header files on
HP-UX 11i are 'screwed up' but I was unable to locate
any fixes or work arounds to get make to work.

Any ideas?

thanks

mohammed


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

Reply via email to