Problems With DBI make

Problems With DBI make

am 19.09.2005 15:44:27 von mike.lembo

------_=_NextPart_001_01C5BD20.4105F9A7
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm getting errors when I do a make for DBI. Details below.

# 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::PlClien
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 DBI::PurePerl test variant: t/zvpp_01basics.t
Creating DBI::PurePerl test variant: t/zvpp_02dbidrv.t
Creating DBI::PurePerl test variant: t/zvpp_03handle.t
Creating DBI::PurePerl test variant: t/zvpp_04mods.t
Creating DBI::PurePerl test variant: t/zvpp_05thrclone.t
Creating DBI::PurePerl test variant: t/zvpp_06attrs.t
Creating DBI::PurePerl test variant: t/zvpp_07kids.t
Creating DBI::PurePerl test variant: t/zvpp_08keeperr.t
Creating DBI::PurePerl test variant: t/zvpp_09trace.t
Creating DBI::PurePerl test variant: t/zvpp_10examp.t
Creating DBI::PurePerl test variant: t/zvpp_11fetch.t
Creating DBI::PurePerl test variant: t/zvpp_14utf8.t
Creating DBI::PurePerl test variant: t/zvpp_15array.t
Creating DBI::PurePerl test variant: t/zvpp_20meta.t
Creating DBI::PurePerl test variant: t/zvpp_30subclass.t
Creating DBI::PurePerl test variant: t/zvpp_40profile.t
Creating DBI::PurePerl test variant: t/zvpp_41prof_dump.t
Creating DBI::PurePerl test variant: t/zvpp_42prof_data.t
Creating DBI::PurePerl test variant: t/zvpp_50dbm.t
Creating DBI::PurePerl test variant: t/zvpp_60preparse.t
Creating DBI::PurePerl test variant: t/zvpp_80proxy.t

I see you're using perl 5.008005 on sun4-solaris, 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
gcc -B/usr/ccs/bin/ -c -fno-strict-aliasing -pipe -I/usr/local/include =
-I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -O =
-DVERSION=3D\"1.48\" -DXS_VERSION=3D\"1.48\" -fPIC =
"-I/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE" -Wall -Wno-comment =
-DDBI_NO_THREADS Perl.c
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from =
/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE/unixish.h:106,
from =
/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE/perl.h:1970,
from DBIXS.h:19,
from Perl.xs:5:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
from =
/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE/unixish.h:106,
from =
/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE/perl.h:1970,
from DBIXS.h:19,
from Perl.xs:5:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from =
/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE/unixish.h:106,
from =
/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE/perl.h:1970,
from DBIXS.h:19,
from Perl.xs:5:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
make: *** [Perl.o] Error 1

# which make
/usr/local/bin/make
# make -v
GNU Make 3.80
Copyright (C) 2002 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.
# perl -v

This is perl, v5.8.5 built for sun4-solaris

Copyright 1987-2004, 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 -v
Reading specs from =
/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/specs
Configured with: ../configure --with-as=3D/usr/ccs/bin/as =
--with-ld=3D/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2



Mike Lembo
EDS - New Hampshire DHHS
7 Eagle Square
Concord, NH 03301
=20
Phone:(603)225-4899 x3039
Cell: (603)481-2485



------_=_NextPart_001_01C5BD20.4105F9A7--

Re: Problems With DBI make

am 19.09.2005 17:41:12 von csarnows

This may have already been answered, since I seem to be getting some
lag time on list posts, but just in case ...

On Sep 19, 2005, at 9:44 AM, Lembo, Mike wrote:

> I'm getting errors when I do a make for DBI. Details below.
>

> # perl -v
>
> This is perl, v5.8.5 built for sun4-solaris
>
> Copyright 1987-2004, 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 -v
> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-
> solaris2.10/3.3.2/specs
> Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/
> usr/ccs/bin/ld --disable-nls
> Thread model: posix
> gcc version 3.3.2
>

What do you get from perl -V ? Is this /bin/perl, as shipped with
Solaris?
My guess is that the perl you are using was not compiled with gcc. If
this is the case, you need to either buy the Solaris C compiler, or
(recommended) build a new perl with gcc, put it in your path before /
bin/perl, and compile DBI/DBD with that perl.