wukkks has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install DBI module on Solaris. The Perl version is 5.8. +8 compiled with gcc. I have the gcc installed already. While doing "make test" for DBI modu +le, I am getting the following error: ---------------------------------------------------- bash-3.00$ make test gcc -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/ +usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFS +ET_BITS=64 -O -DVERSION=\"1.601\" -DXS_VERSION=\"1.601\" -fPIC "- +I/usr/local/lib/perl5/5.8.8/sun4-solaris/CORE" -W -Wall -Wpointer-ar +ith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual + -Wmissing-noreturn -Wno-unused-parameter -DDBI_NO_THREADS Perl.c In file included from /export/home/were/local/bin/../lib/gcc/sparc-sun +-solaris2.8/3.4.6/include/sys/signal.h:44, from /usr/include/signal.h:26, from /usr/local/lib/perl5/5.8.8/sun4-solaris/CORE/uni +xish.h:106, from /usr/local/lib/perl5/5.8.8/sun4-solaris/CORE/per +l.h:2284, from DBIXS.h:19, from Perl.xs:6: /usr/include/sys/siginfo.h:259: error: syntax error before "ctid_t" /usr/include/sys/siginfo.h:292: error: syntax error before '}' token /usr/include/sys/siginfo.h:294: error: syntax error before '}' token /usr/include/sys/siginfo.h:390: error: syntax error before "ctid_t" /usr/include/sys/siginfo.h:398: error: conflicting types for '__fault' /usr/include/sys/siginfo.h:267: error: previous declaration of '__faul +t' was here /usr/include/sys/siginfo.h:404: error: conflicting types for '__file' /usr/include/sys/siginfo.h:273: error: previous declaration of '__file +' was here /usr/include/sys/siginfo.h:420: error: conflicting types for '__prof' /usr/include/sys/siginfo.h:287: error: previous declaration of '__prof +' was here /usr/include/sys/siginfo.h:424: error: conflicting types for '__rctl' /usr/include/sys/siginfo.h:291: error: previous declaration of '__rctl +' was here /usr/include/sys/siginfo.h:426: error: syntax error before '}' token /usr/include/sys/siginfo.h:428: error: syntax error before '}' token /usr/include/sys/siginfo.h:432: error: syntax error before "k_siginfo_ +t" /usr/include/sys/siginfo.h:437: error: syntax error before '}' token In file included from /usr/include/signal.h:26, from /usr/local/lib/perl5/5.8.8/sun4-solaris/CORE/uni +xish.h:106, from /usr/local/lib/perl5/5.8.8/sun4-solaris/CORE/per +l.h:2284, from DBIXS.h:19, from Perl.xs:6: /export/home/were/local/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.6/incl +ude/sys/signal.h:96: error: syntax error before "siginfo_t" In file included from /usr/local/lib/perl5/5.8.8/sun4-solaris/CORE/uni +xish.h:106, from /usr/local/lib/perl5/5.8.8/sun4-solaris/CORE/per +l.h:2284, from DBIXS.h:19, from Perl.xs:6: /usr/include/signal.h:111: error: syntax error before "siginfo_t" /usr/include/signal.h:113: error: syntax error before "siginfo_t" *** Error code 1 make: Fatal error: Command failed for target `Perl.o' bash-3.00$ ------------------------------------------------------ Thanks in advance. Please help. -Wukkks

Replies are listed 'Best First'.
Re: Trying to install DBI module on SOLARIS. Error Occurred.
by almut (Canon) on Mar 13, 2008 at 13:40 UTC

    Maybe this thread helps.

    In short, the compiler needs to have been built for your actual OS version (which seems to be Solaris 8), and the compiler version you're using now to build DBI should also match the version that was used to build perl.

    (P.S.  and please edit your post to use <c>...</c> tags around the code section (instead of <pre>...</pre>), and <p>...</p> tags around the regular text paragraphs. Using <pre> doesn't auto-wrap long lines, so the layout of the entire page gets messed up...)