I do not think it is really a broken vender file... (unless you consider the
sloppuness of unused variables broken. The problem is that they compiled
using the -Wall switch with gcc, which aborts the compile when it finds
unused
variables. -Wall is like running lint built into the compiler.
I have not had a chance to try this... am VERY busy right now, and probably
will not try it until, you have the new DBD-Oracle out to go with this... At
which time I will try, 5.6.1 AND DBI 1.16 AND DBD-Oracle 1.07...
Lincoln
-----Original Message-----
From: Tim Bunce [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 8:19 AM
To: Llewellyn Jim
Cc: '[EMAIL PROTECTED]'
Subject: Re: make failure on HP-UX 11
Sigh. Probably broken vendor header files.
Just comment out that line.
Tim.
On Thu, May 31, 2001 at 12:25:32PM +0100, Llewellyn Jim wrote:
> I'm failing to get past the 'make' stage of the DBI installation. The
> following is the resulting output.
> Full screen capture information attached.
> Help gratefully received as this doesn't give me alot to go on.
> Many thanks,
> Jim
>
>
----------------------------------------------------------------------------
> -----
> DBI.xs: In function `dbih_make_com':
> DBI.xs:696: parse error before `l'
> DBI.xs: In function `dbih_clearcom':
> DBI.xs:851: warning: unused variable `Perl___notused'
> DBI.xs: In function `dbih_get_fbav':
> DBI.xs:988: warning: unused variable `Perl___notused'
> DBI.xs: In function `dbih_set_attr_k':
> DBI.xs:1080: warning: unused variable `Perl___notused'
> DBI.xs: In function `log_where':
> DBI.xs:1498: warning: unused variable `Perl___notused'
> DBI.xs: In function `XS_DBI_dispatch':
> DBI.xs:1928: warning: unused variable `Perl___notused'
> *** Error exit code 1
>
> Stop.
>
----------------------------------------------------------------------------
> -----
>
>
> <<dbi_install.txt>>
>
>
>
> **********************************************************************
> This email and any attachments may be confidential and the subject of
> legal professional privilege. Any disclosure, use, storage or copying
> of this email without the consent of the sender is strictly prohibited.
> Please notify the sender immediately if you are not the intended
> recipient and then delete the email from your inbox and do not
> disclose the contents to another person, use, copy or store the
> information in any medium.
> **********************************************************************
> $ perl -V
> Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
> Platform:
> osname=hpux, osvers=11.00, archname=PA-RISC2.0
> uname='hp-ux bmhp39 b.11.00 u 9000800 503706517 unlimited-user license
'
> config_args='-Dcc=gcc'
> hint=recommended, useposix=true, d_sigaction=define
> usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
> useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
> use64bitint=undef use64bitall=undef uselongdouble=undef
> Compiler:
> cc='gcc', ccflags ='-D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN
-fno-strict-aliasing',
> optimize='-O',
> cppflags='-D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN
-fno-strict-aliasing'
> ccversion='', gccversion='2.95.3 20010315 (release)',
gccosandvers='hpux11.00'
> intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
> ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
> 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
> perllibs=-lnsl -lnm -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='-fpic', lddlflags='-b -L/usr/local/lib'
>
>
> Characteristics of this binary (from libperl):
> Compile-time options:
> Built under hpux
> Compiled at May 31 2001 12:14:04
> @INC:
> /opt/perl5/lib/5.6.1/PA-RISC2.0
> /opt/perl5/lib/5.6.1
> /opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0
> /opt/perl5/lib/site_perl/5.6.1
> /opt/perl5/lib/site_perl
> .
> $
> $
> $
> $ perl Makefile.PL
> *** 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://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
>
> Checking if your kit is complete...
> Looks good
> Writing Makefile for DBI
>
> 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.
>
> bvadmin on bmhp39 $ make
> cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
> cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
> cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
> cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
> cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
> cp dbipport.h blib/arch/auto/DBI/dbipport.h
> cp lib/DBI/Format.pm blib/lib/DBI/Format.pm
> cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
> cp lib/DBI/Shell.pm blib/lib/DBI/Shell.pm
> cp lib/DBD/ADO.pm blib/lib/DBD/ADO.pm
> cp DBI.pm blib/lib/DBI.pm
> cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
> cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
> cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
> cp Driver.xst blib/arch/auto/DBI/Driver.xst
> cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
> cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
> cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
> cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
> cp lib/DBD/Multiplex.pm blib/lib/DBD/Multiplex.pm
> /usr/bin/perl -p -e "s/~DRIVER~/Perl/g" <
blib/arch/auto/DBI/Driver.xst > Perl.xsi
> /usr/bin/perl -I/opt/perl5/lib/5.6.1/PA-RISC2.0
-I/opt/perl5/lib/5.6.1 /opt/perl5/lib/5.6.1/ExtUtils/xsubpp
> -typemap /opt/perl5/lib/5.6.1/ExtUtils/typemap Perl.xs > Perl.xsc && mv
Perl.xsc Perl.c
> gcc -c -D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN
-fno-strict-aliasing -O -DVERSION=\"1.15\" -DXS_V
> ERSION=\"1.15\" -fpic -I/opt/perl5/lib/5.6.1/PA-RISC2.0/CORE -Wall
-Wno-comment -DDBI_NO_THREADS Perl.c
> In file included from /opt/perl5/lib/5.6.1/PA-RISC2.0/CORE/perl.h:493,
> from DBIXS.h:19,
> from Perl.xs:1:
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:28:
warning: `__va__list' redefined
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30:
warning: this is the location of the previous d
> efinition
> /usr/bin/perl -I/opt/perl5/lib/5.6.1/PA-RISC2.0
-I/opt/perl5/lib/5.6.1 /opt/perl5/lib/5.6.1/ExtUtils/xsubpp
> -typemap /opt/perl5/lib/5.6.1/ExtUtils/typemap DBI.xs > DBI.xsc && mv
DBI.xsc DBI.c
> gcc -c -D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN
-fno-strict-aliasing -O -DVERSION=\"1.15\" -DXS_V
> ERSION=\"1.15\" -fpic -I/opt/perl5/lib/5.6.1/PA-RISC2.0/CORE -Wall
-Wno-comment -DDBI_NO_THREADS DBI.c
> In file included from /opt/perl5/lib/5.6.1/PA-RISC2.0/CORE/perl.h:493,
> from DBIXS.h:19,
> from DBI.xs:10:
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:28:
warning: `__va__list' redefined
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30:
warning: this is the location of the previous d
> efinition
> DBI.xs: In function `dbih_make_com':
> DBI.xs:696: parse error before `l'
> DBI.xs: In function `dbih_clearcom':
> DBI.xs:851: warning: unused variable `Perl___notused'
> DBI.xs: In function `dbih_get_fbav':
> DBI.xs:988: warning: unused variable `Perl___notused'
> DBI.xs: In function `dbih_set_attr_k':
> DBI.xs:1080: warning: unused variable `Perl___notused'
> DBI.xs: In function `log_where':
> DBI.xs:1498: warning: unused variable `Perl___notused'
> DBI.xs: In function `XS_DBI_dispatch':
> DBI.xs:1928: warning: unused variable `Perl___notused'
> *** Error exit code 1
>
> Stop.
> $
> $
> $
> $
> $