DBI compilation errors

DBI compilation errors

am 10.05.2007 06:53:39 von shanen

------=_Part_122887_14802351.1178772819489
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

While trying to compile DBI-1.55 and getting the following results
I am on Solaris 9 (SPARC) and I have tried using gcc 3.4.6 and also 3.3.2


# perl Makefile.PL

************************************************************ **************
Perl versions below 5.6.1 are no longer supported by the DBI.
Perl versions 5.6.x may fail during installation with a complaint
about the use of =head3 in the pod documentation.
************************************************************ **************
Press return to continue...
*** 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

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
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
t/zvxgp_86gofer_fail.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
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
t/zvg_86gofer_fail.t
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
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
t/zvp_86gofer_fail.t
Checking if your kit is complete...
Looks good
Warning: prerequisite Scalar::Util failed to load: Can't locate
Scalar/Util.pm in @INC (@INC contains: lib
/usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib
/usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1
/usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int
/usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at (eval 9) line 3.
Warning: prerequisite Storable failed to load: Can't locate Storable.pm in
@INC (@INC contains: lib /usr/perl5/5.6.1/lib/sun4-solaris-64int
/usr/perl5/5.6.1/lib /usr/perl5/site_perl/5.6.1/sun4-solaris-64int
/usr/perl5/site_perl/5.6.1 /usr/perl5/site_perl
/usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int /usr/perl5/vendor_perl/5.6.1
/usr/perl5/vendor_perl .) at (eval 10) line 3.
Warning: prerequisite Test::Simple failed to load: Can't locate
Test/Simple.pm in @INC (@INC contains: lib
/usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib
/usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1
/usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int
/usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at (eval 11) line 3.

I see you're using perl 5.006001 on sun4-solaris-64int, 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
/usr/bin/perl -I/usr/perl5/5.6.1/lib/sun4-solaris-64int
-I/usr/perl5/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
/usr/bin/perl -I/usr/perl5/5.6.1/lib/sun4-solaris-64int
-I/usr/perl5/5.6.1/lib -MExtUtils::Command -e mkpath blib/lib/DBI
rm -f blib/lib/DBI/Roadmap.pm
cp Roadmap.pod blib/lib/DBI/Roadmap.pm
/bin/sh -c true
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp Roadmap.pod blib/lib/Roadmap.pod
cp lib/DBI/ProfileSubs.pm blib/lib/DBI/ProfileSubs.pm
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBI/Gofer/Transport/pipeone.pm
blib/lib/DBI/Gofer/Transport/pipeone.pm
cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
cp lib/DBD/Gofer/Policy/rush.pm blib/lib/DBD/Gofer/Policy/rush.pm
cp lib/DBI/SQL/Nano.pm blib/lib/DBI/SQL/Nano.pm
cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/DBI/Util/_accessor.pm blib/lib/DBI/Util/_accessor.pm
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm
cp lib/DBI/Gofer/Request.pm blib/lib/DBI/Gofer/Request.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 lib/DBI/Gofer/Transport/stream.pm blib/lib/DBI/Gofer/Transport/stream.pm
cp lib/DBD/Gofer/Transport/null.pm blib/lib/DBD/Gofer/Transport/null.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp lib/DBD/Gofer.pm blib/lib/DBD/Gofer.pm
cp TASKS.pod blib/lib/TASKS.pod
cp lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
cp lib/DBI/Gofer/Response.pm blib/lib/DBI/Gofer/Response.pm
cp lib/DBI/Gofer/Execute.pm blib/lib/DBI/Gofer/Execute.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
cp lib/DBD/File.pm blib/lib/DBD/File.pm
cp DBI.pm blib/lib/DBI.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp goferperf.pl blib/lib/goferperf.pl
cp dbivport.h blib/arch/auto/DBI/dbivport.h
cp lib/DBD/Gofer/Transport/stream.pm blib/lib/DBD/Gofer/Transport/stream.pm
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBD/Gofer/Policy/Base.pm blib/lib/DBD/Gofer/Policy/Base.pm
cp lib/DBI/Gofer/Transport/Base.pm blib/lib/DBI/Gofer/Transport/Base.pm
cp lib/DBD/Gofer/Transport/Base.pm blib/lib/DBD/Gofer/Transport/Base.pm
cp lib/DBD/Gofer/Policy/classic.pm blib/lib/DBD/Gofer/Policy/classic.pm
cp lib/DBD/Gofer/Transport/pipeone.pm
blib/lib/DBD/Gofer/Transport/pipeone.pm
cp lib/DBD/Gofer/Policy/pedantic.pm blib/lib/DBD/Gofer/Policy/pedantic.pm
cp lib/DBI/Const/GetInfo/ODBC.pm blib/lib/DBI/Const/GetInfo/ODBC.pm
/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
/usr/bin/perl -I/usr/perl5/5.6.1/lib/sun4-solaris-64int
-I/usr/perl5/5.6.1/lib /usr/perl5/5.6.1/lib/ExtUtils/xsubpp -typemap
/usr/perl5/5.6.1/lib/ExtUtils/typemap -typemap typemap Perl.xs > Perl.xsc &&
mv Perl.xsc Perl.c
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend
-DVERSION=\"1.55\" -DXS_VERSION=\"1.55\" -KPIC
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DDBI_NO_THREADS Perl.c
cc: unrecognized option `-KPIC'
cc: language depend not recognized
cc: Perl.c: linker input file unused because linking not done
/usr/bin/perl -I/usr/perl5/5.6.1/lib/sun4-solaris-64int
-I/usr/perl5/5.6.1/lib /usr/perl5/5.6.1/lib/ExtUtils/xsubpp -typemap
/usr/perl5/5.6.1/lib/ExtUtils/typemap -typemap typemap DBI.xs > DBI.xsc &&
mv DBI.xsc DBI.c
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend
-DVERSION=\"1.55\" -DXS_VERSION=\"1.55\" -KPIC
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DDBI_NO_THREADS DBI.c
cc: unrecognized option `-KPIC'
cc: language depend not recognized
cc: DBI.c: linker input file unused because linking not done
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
rm -f blib/arch/auto/DBI/DBI.so
LD_RUN_PATH="" cc -G DBI.o -o blib/arch/auto/DBI/DBI.so
cc: DBI.o: No such file or directory
cc: no input files
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.so'





# perl -v

This is perl, v5.6.1 built for sun4-solaris-64int
(with 48 registered patches, see perl -V for more detail)

Copyright 1987-2001, Larry Wall

Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.



# gcc --version
gcc (GCC) 3.3.2
Copyright (C) 2003 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.

------=_Part_122887_14802351.1178772819489--

Re: DBI compilation errors

am 10.05.2007 14:01:52 von Tim.Bunce

On Thu, May 10, 2007 at 02:53:39PM +1000, Shane Neubauer wrote:
> Hi,
>
> While trying to compile DBI-1.55 and getting the following results
> I am on Solaris 9 (SPARC) and I have tried using gcc 3.4.6 and also 3.3.2

> # perl Makefile.PL
>
> ************************************************************ **************
> Perl versions below 5.6.1 are no longer supported by the DBI.
> Perl versions 5.6.x may fail during installation with a complaint
> about the use of =head3 in the pod documentation.
> ************************************************************ **************

Perl 5.6.1 is very old.

> Checking if your kit is complete...
> Looks good
> Warning: prerequisite Scalar::Util failed to load: Can't locate Scalar/Util.pm
> Warning: prerequisite Storable failed to load: Can't locate Storable.pm
> Warning: prerequisite Test::Simple failed to load: Can't locate Test/Simple.pm
> in @INC (@INC contains: lib
> /usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib
> /usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1
> /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int
> /usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at (eval 11) line 3.

Odd. And not a good start.

> cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend
> -DVERSION=\"1.55\" -DXS_VERSION=\"1.55\" -KPIC
> -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DDBI_NO_THREADS Perl.c
> cc: unrecognized option `-KPIC'
> cc: language depend not recognized

It's important to use the same compiler that was used to build the perl executable.

> # perl -v
> This is perl, v5.6.1 built for sun4-solaris-64int
> (with 48 registered patches, see perl -V for more detail)
> Copyright 1987-2001, Larry Wall
>
> # gcc --version
> gcc (GCC) 3.3.2
> Copyright (C) 2003 Free Software Foundation, Inc.

Using a four year old compiler and a six year old perl isn't a good
place to start from.

I suggest you download the latest perl 5.8.x, configure, build and
install it yourself into your own location, separate from the existing perl.

(Might be wise to fetch, build, and install gcc 4.x first.)

Modify your PATH to find that new perl ahead of the existing one.

Then use "perl -MCPAN -e install DBI" to fetch, build and install the
DBI and any prerequisites.

Tim.

Re: DBI compilation errors

am 11.05.2007 09:58:37 von shanen

------=_Part_141698_29200956.1178870317814
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I Installed a later version of gcc, and then compiled Perl 5.8.8 from
source. DBI then compiled and installed flawlessly. Thank you for your help!
:)

On 5/10/07, Tim Bunce wrote:
>
> On Thu, May 10, 2007 at 02:53:39PM +1000, Shane Neubauer wrote:
> > Hi,
> >
> > While trying to compile DBI-1.55 and getting the following results
> > I am on Solaris 9 (SPARC) and I have tried using gcc 3.4.6 and also
> 3.3.2
>
> > # perl Makefile.PL
> >
> >
> ************************************************************ **************
> > Perl versions below 5.6.1 are no longer supported by the DBI.
> > Perl versions 5.6.x may fail during installation with a complaint
> > about the use of =head3 in the pod documentation.
> >
> ************************************************************ **************
>
> Perl 5.6.1 is very old.
>
> > Checking if your kit is complete...
> > Looks good
> > Warning: prerequisite Scalar::Util failed to load: Can't locate
> Scalar/Util.pm
> > Warning: prerequisite Storable failed to load: Can't locate Storable.pm
> > Warning: prerequisite Test::Simple failed to load: Can't locate
> Test/Simple.pm
> > in @INC (@INC contains: lib
> > /usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib
> > /usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1
> > /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int
> > /usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at (eval 11) line
> 3.
>
> Odd. And not a good start.
>
> > cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend
> > -DVERSION=\"1.55\" -DXS_VERSION=\"1.55\" -KPIC
> > -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DDBI_NO_THREADS Perl.c
> > cc: unrecognized option `-KPIC'
> > cc: language depend not recognized
>
> It's important to use the same compiler that was used to build the perl
> executable.
>
> > # perl -v
> > This is perl, v5.6.1 built for sun4-solaris-64int
> > (with 48 registered patches, see perl -V for more detail)
> > Copyright 1987-2001, Larry Wall
> >
> > # gcc --version
> > gcc (GCC) 3.3.2
> > Copyright (C) 2003 Free Software Foundation, Inc.
>
> Using a four year old compiler and a six year old perl isn't a good
> place to start from.
>
> I suggest you download the latest perl 5.8.x, configure, build and
> install it yourself into your own location, separate from the existing
> perl.
>
> (Might be wise to fetch, build, and install gcc 4.x first.)
>
> Modify your PATH to find that new perl ahead of the existing one.
>
> Then use "perl -MCPAN -e install DBI" to fetch, build and install the
> DBI and any prerequisites.
>
> Tim.
>

------=_Part_141698_29200956.1178870317814--