DBI compile fails in Solaris 10

DBI compile fails in Solaris 10

am 29.03.2007 14:53:55 von NURMIMV

Below is the output I get when I try to do a make on the DBI module in
Solaris 10. This works fine on Solaris I was wondering if I need an
updated module for solaris10? Is there any DBI module that works with
solaris10?

Please let me know what is happening.

Thank You



kenadmn01p:zone# 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://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

Your perl was compiled with gcc (version 2.95.3 20010315 (release)),
okay.
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
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
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

I see you're using perl 5.008007 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

kenadmn01p:zone# make
/usr/bin/perl "-MExtUtils::Command" -e mkpath blib/lib/DBI
rm -f blib/lib/DBI/Changes.pm
cp Changes blib/lib/DBI/Changes.pm
/usr/bin/perl "-MExtUtils::Command" -e mkpath blib/lib/DBI
rm -f blib/lib/DBI/Roadmap.pm
cp Roadmap.pod blib/lib/DBI/Roadmap.pm
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBI/Gofer/Response.pm blib/lib/DBI/Gofer/Response.pm
cp lib/DBI/Gofer/Transport/Base.pm blib/lib/DBI/Gofer/Transport/Base.pm
cp lib/DBI/Util/_accessor.pm blib/lib/DBI/Util/_accessor.pm
cp lib/DBI/Gofer/Transport/mod_perl.pm
blib/lib/DBI/Gofer/Transport/mod_perl.pm
cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp Roadmap.pod blib/lib/Roadmap.pod
cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm
cp lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm
cp lib/DBD/Gofer/Transport/pipeone.pm
blib/lib/DBD/Gofer/Transport/pipeone.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 Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBD/File.pm blib/lib/DBD/File.pm
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp lib/DBI/ProfileSubs.pm blib/lib/DBI/ProfileSubs.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp lib/DBD/Gofer.pm blib/lib/DBD/Gofer.pm
cp lib/DBD/Gofer/Transport/http.pm blib/lib/DBD/Gofer/Transport/http.pm
cp dbivport.h blib/arch/auto/DBI/dbivport.h
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp lib/DBD/Gofer/Transport/Base.pm blib/lib/DBD/Gofer/Transport/Base.pm
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.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/DBI/Gofer/Request.pm blib/lib/DBI/Gofer/Request.pm
cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
cp lib/DBD/Gofer/Transport/stream.pm
blib/lib/DBD/Gofer/Transport/stream.pm
cp lib/DBD/Gofer/Policy/classic.pm blib/lib/DBD/Gofer/Policy/classic.pm
cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
cp lib/DBD/Gofer/Policy/Base.pm blib/lib/DBD/Gofer/Policy/Base.pm
cp DBI.pm blib/lib/DBI.pm
cp lib/DBI/Gofer/Transport/stream.pm
blib/lib/DBI/Gofer/Transport/stream.pm
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBD/Gofer/Policy/pedantic.pm
blib/lib/DBD/Gofer/Policy/pedantic.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/DBI/Gofer/Transport/pipeone.pm
blib/lib/DBI/Gofer/Transport/pipeone.pm
cp lib/DBD/Gofer/Transport/null.pm blib/lib/DBD/Gofer/Transport/null.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp TASKS.pod blib/lib/TASKS.pod
cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
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/DBI/Gofer/Execute.pm blib/lib/DBI/Gofer/Execute.pm
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
/usr/bin/perl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/5.8.7/ExtUtils/typemap -typemap typemap Perl.xs >
Perl.xsc && mv Perl.xsc Perl.c
gcc -B/usr/ccs/bin/ -c -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -O
-DVERSION=3D\"1.54\" -DXS_VERSION=3D\"1.54\" -fPIC
"-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE" -W -Wall
-Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare
-Wno-cast-qual -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.7/sun4-solaris/CORE/unixish.h:106,
from
/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:2220,
from DBIXS.h:19,
from Perl.xs:6:
/usr/include/sys/siginfo.h:259: syntax error before "ctid_t"
/usr/include/sys/siginfo.h:292: syntax error before '}' token
/usr/include/sys/siginfo.h:294: syntax error before '}' token
/usr/include/sys/siginfo.h:390: syntax error before "ctid_t"
/usr/include/sys/siginfo.h:398: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: syntax error before '}' token
/usr/include/sys/siginfo.h:428: syntax error before '}' token
/usr/include/sys/siginfo.h:432: syntax error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: syntax error before '}' token
In file included from /usr/include/signal.h:26,
from
/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/unixish.h:106,
from
/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:2220,
from DBIXS.h:19,
from Perl.xs:6:
/usr/include/sys/signal.h:85: syntax error before "siginfo_t"
In file included from
/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/unixish.h:106,
from
/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:2220,
from DBIXS.h:19,
from Perl.xs:6:
/usr/include/signal.h:111: syntax error before "siginfo_t"
/usr/include/signal.h:113: syntax error before "siginfo_t"
Perl.c: In function `XS_DBD__Perl__dr_data_sources':
Perl.c:89: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db__login':
Perl.c:125: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_selectall_arrayref':
Perl.c:160: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_do':
Perl.c:283: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_last_insert_id':
Perl.c:321: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_commit':
Perl.c:351: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_rollback':
Perl.c:369: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_disconnect':
Perl.c:387: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_STORE':
Perl.c:421: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_FETCH':
Perl.c:444: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_DESTROY':
Perl.c:464: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__db_take_imp_data':
Perl.c:532: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st__prepare':
Perl.c:596: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_bind_col':
Perl.c:650: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_bind_param':
Perl.c:702: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_bind_param_inout':
Perl.c:745: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_execute':
Perl.c:794: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_execute_for_fetch':
Perl.c:829: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_fetchall_arrayref':
Perl.c:905: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_finish':
Perl.c:939: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_blob_read':
Perl.c:970: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_STORE':
Perl.c:1009: warning: unused parameter `cv'
Perl.c: In function `XS_DBD__Perl__st_DESTROY':
Perl.c:1055: warning: unused parameter `cv'
Perl.xsi: In function `boot_DBD__Perl':
Perl.c:1108: warning: unused parameter `cv'
*** Error code 1
make: Fatal error: Command failed for target `Perl.o'

Re: DBI compile fails in Solaris 10

am 30.03.2007 10:17:34 von Tim.Bunce

On Thu, Mar 29, 2007 at 07:53:55AM -0500, Nurmi, Michael V wrote:
> Below is the output I get when I try to do a make on the DBI module in
> Solaris 10. This works fine on Solaris I was wondering if I need an
> updated module for solaris10? Is there any DBI module that works with
> solaris10?
>
> Please let me know what is happening.

> gcc -B/usr/ccs/bin/ -c -fno-strict-aliasing -pipe
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
> -DVERSION=\"1.54\" -DXS_VERSION=\"1.54\" -fPIC
> "-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE" -W -Wall
> -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare
> -Wno-cast-qual -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.7/sun4-solaris/CORE/unixish.h:106,
> from
> /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:2220,
> from DBIXS.h:19,
> from Perl.xs:6:
> /usr/include/sys/siginfo.h:259: syntax error before "ctid_t"

This kind of error indicates that the perl you're using was not
built with the compiler you're using.

You need to use the same compiler that was used to build the perl you're
building DBI for.

Often that means building and installing your own, separate, perl.

Tim.

Re: DBI compile fails in Solaris 10

am 30.03.2007 15:52:22 von jonathan.leffler

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

On 3/30/07, Tim Bunce wrote:
>
> On Thu, Mar 29, 2007 at 07:53:55AM -0500, Nurmi, Michael V wrote:
> > Below is the output I get when I try to do a make on the DBI module in
> > Solaris 10. This works fine on Solaris I was wondering if I need an
> > updated module for solaris10? Is there any DBI module that works with
> > solaris10?
> >
> > Please let me know what is happening.
>
> > gcc -B/usr/ccs/bin/ -c -fno-strict-aliasing -pipe
> > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
> > -DVERSION=\"1.54\" -DXS_VERSION=\"1.54\" -fPIC
> > "-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE" -W -Wall
> > -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare
> > -Wno-cast-qual -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.7/sun4-solaris/CORE/unixish.h:106,
> > from
> > /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:2220,
> > from DBIXS.h:19,
> > from Perl.xs:6:
> > /usr/include/sys/siginfo.h:259: syntax error before "ctid_t"
>
> This kind of error indicates that the perl you're using was not
> built with the compiler you're using.



Or the compiler you are using (GCC) was not built for Solaris 10. I've just
migrated from Solaris 8 and 9 to Solaris 10, and the headers in Solaris 10
are different from, and weirder than, the headers in Solaris 8 and 9.
Actually, they're mostly cleaner, but I had to rebuild GCC on Solaris 10
(using Sun Forte to bootstrap it) because of problems with keywords, etc. I
specifically ran across ctid_t at one point - I'd not gotten around to Perl
at that point - with the older compiler.

You need to use the same compiler that was used to build the perl you're
> building DBI for.
>
> Often that means building and installing your own, separate, perl.
>

Was the gcc you are using built for/on Solaris 10? If not, get one that
was.

(Use gcc --version to find out.)

--
Jonathan Leffler #include
Guardian of DBD::Informix - v2007.0226 - http://dbi.perl.org
"I don't suffer from insanity - I enjoy every minute of it."

------=_Part_101897_22871030.1175262742871--