You need to compile DBI with the same compiler that compiled your version of Perl. In your case - Sun's cc.
Alternatively you could install the package of Perl 5.6 from www.sunfreeware.com (compiled using gcc) and then compile DBI using gcc. (AFAIKR Solaris 8 perl is in /usr/bin, sunfreeware's in /usr/local/bin so they don't clash. Solaris 8 needs /usr/bin/perl for it's own use so don't remove it :-) ) BTW - I'm not sure that DBI compiles under GCC 3.0.3 - 2.95.3 is certainly OK tho' HTH -- MarkT tied wrote: > Dear all > I am getting a problem on compilation DBI on solaris 8 on SPARC > and my gcc version is 3.0.3 > > Here is my error message : > # perl Makefile.PL > # make > mkdir blib > mkdir blib/lib > mkdir blib/arch > mkdir blib/arch/auto > mkdir blib/arch/auto/DBI > mkdir blib/lib/auto > mkdir blib/lib/auto/DBI > mkdir blib/man1 > mkdir blib/man3 > cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm > cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm > cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm > cp lib/DBI/Shell.pm blib/lib/DBI/Shell.pm > cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm > cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm > cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm > cp lib/DBD/Multiplex.pm blib/lib/DBD/Multiplex.pm > cp DBIXS.h blib/arch/auto/DBI/DBIXS.h > cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h > cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h > cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm > cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm > cp lib/DBI/Format.pm blib/lib/DBI/Format.pm > cp Driver.xst blib/arch/auto/DBI/Driver.xst > cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm > cp dbipport.h blib/arch/auto/DBI/dbipport.h > cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm > cp DBI.pm blib/lib/DBI.pm > cp lib/DBD/ADO.pm blib/lib/DBD/ADO.pm > /usr/bin/perl -p -e "s/~DRIVER~/Perl/g" < blib/arch/auto/DBI/Driver.xst > > Perl.xsi > /usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503 > /usr/perl5/5.00503/ExtUtils/xsubpp -typemap > /usr/perl5/5.00503/ExtUtils/typemap Perl.xs >xstmp.c && mv xstmp.c Perl.c > cc -c -xO3 -xdepend -DVERSION=\"1.18\" -DXS_VERSION=\"1.18\" -KPIC -I/u > sr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS Perl.c > cc: unrecognized option `-KPIC' > cc: language depend not recognized > cc: Perl.c: linker input file unused since linking not done > /usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503 > /usr/perl5/5.00503/ExtUtils/xsubpp -typemap > /usr/perl5/5.00503/ExtUtils/typemap DBI.xs >xstmp.c && mv xstmp.c DBI.c > cc -c -xO3 -xdepend -DVERSION=\"1.18\" -DXS_VERSION=\"1.18\" -KPIC -I/u > sr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS DBI.c > cc: unrecognized option `-KPIC' > cc: language depend not recognized > cc: DBI.c: linker input file unused since linking not done > Running Mkbootstrap for DBI () > chmod 644 DBI.bs > LD_RUN_PATH="" cc -o blib/arch/auto/DBI/DBI.so -G DBI.o > cc: DBI.o: No such file or directory > cc: No input files > make: *** [blib/arch/auto/DBI/DBI.so] Error 1 > # > > Please tell me how i solve this. > > Have a nice day !! > > Tied from Taipei > >
