But more fundametally, you probably won't get very far trying to build DBI (or any other extension) using a different compiler than the one your perl was built with.
In the case of Solaris 8's own supplied perl that probably means you building and installing a new perl in a different location. Tim. On Sun, Feb 10, 2002 at 08:39:06PM -0700, Will Spencer wrote: > Ian: > > -KPIC is the setting for Position Independent Code (PIC). > > "-KPIC" is for Sun cc. > > For gcc it's "-fPIC". > > Will > > > -----Original Message----- > From: Ian Harris [mailto:[EMAIL PROTECTED]] > Sent: Sunday, February 10, 2002 8:20 PM > To: [EMAIL PROTECTED] > Subject: trouble with install on Sol8 > > > Hi All > > I'd appreciate any help with my install of DBI-1.21 on a Solaris 8 box. > > perl Makefile.PL ... went fine > > > Checking if your kit is complete... > Looks good > Writing Makefile for DBI > > 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. > > Then the make command didn't do so well > > > [harrisi@saul:Mon 12:59pm DBI-1.21]make > > ..... > gcc -c -xO3 -xdepend -DVERSION=\"1.21\" -DXS_VERSION=\"1.21\" -KPIC > - -I/usr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS Perl.c > gcc: unrecognized option `-KPIC' > gcc: language depend not recognized > gcc: Perl.c: linker input file unused since linking not done > /usr/local/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/typema > p DBI.xs >xstmp.c && mv xstmp.c DBI.c > gcc -c -xO3 -xdepend -DVERSION=\"1.21\" -DXS_VERSION=\"1.21\" -KPIC > - -I/usr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS DBI.c > gcc: unrecognized option `-KPIC' > gcc: language depend not recognized > gcc: DBI.c: linker input file unused since linking not done > Running Mkbootstrap for DBI () > chmod 644 DBI.bs > LD_RUN_PATH="" gcc -o blib/arch/auto/DBI/DBI.so -G DBI.o > gcc: DBI.o: No such file or directory > gcc: No input files > make: *** [blib/arch/auto/DBI/DBI.so] Error 1 > > > We're running gcc version 2.95.3 20010315 (release). > Any clues as to what to do next would be appreciated > > cheers > > Ian > > > > > >
