On Wed, Oct 29, 2008 at 6:12 AM, Jason Barna <[EMAIL PROTECTED]> wrote:
> the Makefile.PL script seems to run fine (no errors) when I do the make > command it errors out > > [/home/oracle/DBI/DBI-1.607] $ make > Skip blib/arch/auto/DBI/Driver_xst.h (unchanged) > [...snip...] Skip blib/lib/DBI/ProfileData.pm (unchanged) > /usr/local/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi > /usr/local/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap > /usr/local/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Perl.xs > > Perl.xsc && mv Perl.xsc Perl.c > gcc -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O > -DVERSION=\"1.607\" -DXS_VERSION=\"1.607\" -fPIC > "-I/usr/local/lib/perl5/5.8.8/sun4-solaris/CORE" -W -Wall -Wpointer-arith > -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual > -Wmissing-noreturn -Wno-unused-parameter -DDBI_NO_THREADS Perl.c > cc1: Invalid option `-Wdeclaration-after-statement' > cc1: Invalid option `-Wno-unused-parameter' > In file included from > /usr/local/lib/perl5/5.8.8/sun4-solaris/CORE/perl.h:3950, > from DBIXS.h:19, > from Perl.xs:6: > /usr/local/lib/perl5/5.8.8/sun4-solaris/CORE/proto.h:31: warning: > `warn_unused_result' attribute directive ignored > /usr/local/lib/perl5/5.8.8/sun4-solaris/CORE/proto.h:42: warning: > `__malloc__' attribute directive ignored > > [...massive snippage...] > Clearly, you are not using GCC, or your GCC is so impossibly ancient that it doesn't understand -Wno-unused-parameter or, perhaps, you got creative and did 'ln -s $(which cc) gcc' or something similar. You cannot build Perl extensions unless you have the same compiler as was used to build Perl. It must, at least, be a version of the same compiler (so, I have Perl built with GCC 3.x, but I can use GCC 4.x to add extensions, etc). -- Jonathan Leffler <[EMAIL PROTECTED]> #include <disclaimer.h> Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org "Blessed are we who can laugh at ourselves, for we shall never cease to be amused."
