Problems building DBI-1.35 on SunOS 5.6 with Perl 5.6.1...

Problems building DBI-1.35 on SunOS 5.6 with Perl 5.6.1...

Post by Tscheres » Fri, 25 Apr 2003 00:57:49



I have built DBI many times successfully in the past.  But for some reason this time around I'm having problems building DBI-1.35 on SunOS 5.6, with gcc 2.95.1 and Perl 5.6.1.  I have 175 Perl Modules installed on this Perl Distribution, including Sybperl, but for some reason DBI won't build.

I'm including a complete log of the build below and the output from perl -V.  If you have any suggestions for me, please directly CC me on your reply because I'm not a member of the DBI mailing list.

Thanks... Todd

unixhost> 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

Creating extra DBI::PurePerl test: t/zz_01basics_pp.t
Creating extra DBI::PurePerl test: t/zz_02dbidrv_pp.t
Creating extra DBI::PurePerl test: t/zz_03hleak_pp.t
Creating extra DBI::PurePerl test: t/zz_04mods_pp.t
Creating extra DBI::PurePerl test: t/zz_05thrclone_pp.t
Creating extra DBI::PurePerl test: t/zz_06attrs_pp.t
Creating extra DBI::PurePerl test: t/zz_07kids_pp.t
Creating extra DBI::PurePerl test: t/zz_08keeperr_pp.t
Creating extra DBI::PurePerl test: t/zz_10examp_pp.t
Creating extra DBI::PurePerl test: t/zz_15array_pp.t
Creating extra DBI::PurePerl test: t/zz_20meta_pp.t
Creating extra DBI::PurePerl test: t/zz_30subclass_pp.t
Creating extra DBI::PurePerl test: t/zz_40profile_pp.t
Creating extra DBI::PurePerl test: t/zz_41prof_dump_pp.t
Creating extra DBI::PurePerl test: t/zz_42prof_data_pp.t
Creating extra DBI::PurePerl test: t/zz_60preparse_pp.t
Creating extra DBI::PurePerl test: t/zz_80proxy_pp.t
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.

unixhost> make
/usr/local/micron/perl32/5.6.1/bin/perl -I/usr/local/micron/perl32/5.6.1/lib -I/usr/local/micron/perl32/5.6.1/lib -MExtUtils::Command -e mkpath blib/lib/DBI
rm -f blib/lib/DBI/Changes.pm
cp Changes blib/lib/DBI/Changes.pm
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
cp DBI.pm blib/lib/DBI.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp lib/DBI/ProfileDumper/Apache.pm blib/lib/DBI/ProfileDumper/Apache.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBI/Const/GetInfo/ODBC.pm blib/lib/DBI/Const/GetInfo/ODBC.pm
/usr/local/micron/perl32/5.6.1/bin/perl -p -e "s/~DRIVER~/Perl/g" < blib/arch/auto/DBI/Driver.xst > Perl.xsi
/usr/local/micron/perl32/5.6.1/bin/perl -I/usr/local/micron/perl32/5.6.1/lib -I/usr/local/micron/perl32/5.6.1/lib /usr/local/micron/perl32/5.6.1/lib/ExtUtils/xsubpp  -typemap /usr/local/micron/perl32/5.6.1/lib/ExtUtils/typemap Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
gcc -c  -DDEBUGGING -fno-strict-aliasing -I/usr/local/micron/sdk/stlport/451-gcc2951/include/stlport -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2    -DVERSION=\"1.35\"  -DXS_VERSION=\"1.35\" -fPIC -I/usr/local/micron/perl32/5.6.1/lib/CORE -Wall -Wno-comment -DDBI_NO_THREADS Perl.c
In file included from Perl.xs:1:
DBIXS.h:117: warning: useless keyword or type name in empty declaration
DBIXS.h:117: warning: empty declaration
DBIXS.h:129: warning: useless keyword or type name in empty declaration
DBIXS.h:129: warning: empty declaration
DBIXS.h:135: warning: useless keyword or type name in empty declaration
DBIXS.h:135: warning: empty declaration
DBIXS.h:141: warning: useless keyword or type name in empty declaration
DBIXS.h:141: warning: empty declaration
DBIXS.h:158: warning: useless keyword or type name in empty declaration
DBIXS.h:158: warning: empty declaration
In file included from Perl.c:30:
Driver_xst.h: In function `dbdxst_fetchall_arrayref':
Driver_xst.h:88: parse error before `.'
Perl.xsi: In function `XS_DBD__Perl__db_commit':
Perl.xsi:220: parse error before `.'
Perl.xsi:220: parse error before `.'
Perl.xsi: In function `XS_DBD__Perl__db_rollback':
Perl.xsi:230: parse error before `.'
Perl.xsi:230: parse error before `.'
Perl.xsi: In function `XS_DBD__Perl__db_disconnect':
Perl.xsi:240: parse error before `.'
Perl.xsi:250: parse error before `.'
Perl.xsi:250: parse error before `.'
Perl.xsi:252: parse error before `.'
Perl.xsi:254: parse error before `.'
Perl.xsi:258: parse error before `.'
Perl.xsi:258: parse error before `.'
Perl.xsi:258: parse error before `.'
Perl.xsi:258: parse error before `.'
Perl.xsi:258: parse error before `.'
Perl.xsi:258: parse error before `.'
Perl.xsi:258: parse error before `.'
Perl.xsi:258: parse error before `.'
Perl.xsi: In function `XS_DBD__Perl__db_STORE':
Perl.xsi:272: parse error before `.'
Perl.xsi: In function `XS_DBD__Perl__db_FETCH':
Perl.xsi:284: parse error before `.'
Perl.xsi: In function `XS_DBD__Perl__db_DESTROY':
Perl.xsi:294: parse error before `.'
Perl.xsi:296: parse error before `.'
Perl.xsi:296: parse error before `.'
Perl.xsi:307: parse error before `.'
Perl.xsi:308: parse error before `.'
Perl.xsi:308: parse error before `.'
Perl.xsi:308: parse error before `.'
Perl.xsi:308: parse error before `.'
Perl.xsi:308: parse error before `.'
Perl.xsi:308: parse error before `.'
Perl.xsi:308: parse error before `.'
Perl.xsi:308: parse error before `.'
Perl.xsi:310: parse error before `.'
Perl.xsi:318: parse error before `.'
Perl.xsi:319: parse error before `.'
Perl.xsi:319: parse error before `.'
Perl.xsi:324: parse error before `.'
Perl.xsi:324: parse error before `.'
Perl.xsi:324: parse error before `.'
Perl.xsi:324: parse error before `.'
Perl.xsi:324: parse error before `.'
Perl.xsi:324: parse error before `.'
Perl.xsi:324: parse error before `.'
Perl.xsi:324: parse error before `.'
Perl.xsi: In function `XS_DBD__Perl__st_finish':
Perl.xsi:503: parse error before `.'
Perl.xsi:504: parse error before `.'
Perl.xsi:508: parse error before `.'
Perl.xsi:511: parse error before `.'
Perl.xsi:511: parse error before `.'
Perl.xsi:511: parse error before `.'
Perl.xsi:511: parse error before `.'
Perl.xsi:511: parse error before `.'
Perl.xsi:511: parse error before `.'
Perl.xsi:511: parse error before `.'
Perl.xsi:511: parse error before `.'
Perl.xsi: In function `XS_DBD__Perl__st_STORE':
Perl.xsi:551: parse error before `.'
Perl.xsi: In function `XS_DBD__Perl__st_FETCH_attrib':
Perl.xsi:568: parse error before `.'
Perl.xsi: In function `XS_DBD__Perl__st_DESTROY':
Perl.xsi:578: parse error before `.'
Perl.xsi:580: parse error before `.'
Perl.xsi:580: parse error before `.'
Perl.xsi:586: parse error before `.'
Perl.xsi:587: parse error before `.'
Perl.xsi:587: parse error before `.'
Perl.xsi:587: parse error before `.'
Perl.xsi:587: parse error before `.'
Perl.xsi:587: parse error before `.'
Perl.xsi:587: parse error before `.'
Perl.xsi:587: parse error before `.'
Perl.xsi:587: parse error before `.'
Perl.xsi:589: parse error before `.'
Perl.xsi:590: parse error before `.'
Perl.xsi:591: parse error before `.'
Perl.xsi:599: parse error before `.'
Perl.xsi:599: parse error before `.'
Perl.xsi:599: parse error before `.'
Perl.xsi:599: parse error before `.'
Perl.xsi:599: parse error before `.'
Perl.xsi:599: parse error before `.'
Perl.xsi:599: parse error before `.'
Perl.xsi:599: parse error before `.'
Perl.c: At top level:
dbipport.h:529: warning: `my_sv_2pvbyte' defined but not used
*** Error code 1
make: Fatal error: Command failed for target `Perl.o'

----------

unixhost> perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris
    uname='sunos unixhost 5.6 generic_105181-33 sun4u sparc sunw,ultra-5_10 '
    config_args='-der'
    hint=previous, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='gcc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/micron/sdk/stlport/451-gcc2951/include/stlport -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/micron/sdk/stlport/451-gcc2951/include/stlport -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    ccversion='', gccversion='2.95.1 19990816 (release)', gccosandvers='solaris2.6'
    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, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags ='-L/usr/local/micron/perl32/5.6.1/lib/CORE -L/usr/local/lib -L/opt/gnu/lib -R/usr/local/micron/perl32/5.6.1/lib/CORE '
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lstlport_gcc -lsocket -lnsl -ldb -ldl -lm -lc
    perllibs=-lstlport_gcc -lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R/usr/local/micron/perl32/5.6.1/lib/CORE'
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/micron/perl32/5.6.1/lib/CORE -L/usr/local/lib -L/opt/gnu/lib -R/usr/local/micron/perl32/5.6.1/lib/CORE'

Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING USE_LARGE_FILES
  Built under solaris
  Compiled at Apr 20 2003 17:12:27
  @INC:
    /usr/local/micron/perl32/5.6.1/lib
    /usr/local/micron/sdk/perl/5.6.1/prod/lib
    /usr/local/micron/sdk/perl/5.6.1/prod/lib
    /usr/local/micron/sdk/perl/5.6.1/prod/lib
    /usr/local/micron/prod/perl/5.6.1/lib
    /usr/local/micron/prod/perl/5.6.1/lib
    /usr/local/micron/prod/perl/5.6.1/lib