Mounavar Beck wrote: >I cannot install DBI-1.20 on Sun solaris 8 >I get the following error when i run the make command > > >/usr/perl5/5.00503/ExtUtils/typemap Perl.xs >xstmp.c && mv xstmp.c Perl.c >gcc -c -xO3 -xdepend -DVERSION=\"1.20\" -DXS_VERSION=\"1.20\" -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 >
Perl was built with Sun C compiler which takes -KPIC where GCC takes -fPIC. You should either obtain the Sun C compiler (expensive) or rebuild Perl with GCC (cheap). > >root@credit# perl -V >Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: > Platform: > osname=solaris, osvers=2.8, archname=sun4-solaris > uname='sunos localhost 5.8 sun4u sparc sunw,ultra-1 ' > hint=previous, useposix=true, d_sigaction=define > usethreads=undef useperlio=undef d_sfio=undef > Compiler: > cc='cc', optimize='-xO3 -xdepend', gccversion= > cppflags='' > ccflags ='' > stdchar='char', d_stdstdio=define, usevfork=false > intsize=4, longsize=4, ptrsize=4, doublesize=8 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 > alignbytes=8, usemymalloc=n, prototype=define > Linker and Libraries: > ld='cc', ldflags ='' > libpth=/lib /usr/lib /usr/ccs/lib > libs=-lsocket -lnsl -ldl -lm -lc -lcrypt > libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R >/usr/perl5/5.00503/sun4-solaris/CORE' > cccdlflags='-KPIC', lddlflags='-G' > > >Characteristics of this binary (from libperl): > Built under solaris > Compiled at Dec 22 1999 00:00:57 > @INC: > /usr/perl5/5.00503/sun4-solaris > /usr/perl5/5.00503 > /usr/perl5/site_perl/5.005/sun4-solaris > /usr/perl5/site_perl/5.005 > This is getting to be a boringly frequently asked question - is there anything we can do to circumvent it, do you think? Or are we doomed to continue with this as more and more people migrate to Solaris 8 and use the pre-built, pre-installed version of Perl? This isn't a moan at Mounavar per se; just a comentary on a trend I've noticed -- I think I've answered this half-a-dozen time in the last six months; in fact, this is about the only general dbi-users question I've answered... -- Jonathan Leffler ([EMAIL PROTECTED], [EMAIL PROTECTED]) Guardian of DBD::Informix 1.00.PC1 -- see http://www.cpan.org/ #include <disclaimer.h>
