in reply to Re^2: dbd::oracle compile problem
in thread dbd::oracle compile problem

Ok, what compiler was your perl built under? (This can be found out with perl -V).

I see "cc" as the compiler you're trying to use for dbd::oracle - what compiler is that?

Exactly *what* is the "it" that doesn't recognize -fPIC? Where'd you put that flag?

Did you check your Makefile? Did you google around for the problem with the hints I've given you?



--chargrill
$,=42;for(34,0,-3,9,-11,11,-17,7,-5){$*.=pack'c'=>$,+=$_}for(reverse s +plit//=>$* ){$%++?$ %%2?push@C,$_,$":push@c,$_,$":(push@C,$_,$")&&push@c,$"}$C[$# +C]=$/;($#C >$#c)?($ c=\@C)&&($ C=\@c):($ c=\@c)&&($C=\@C);$%=$|;for(@$c){print$_^ +$$C[$%++]}

Replies are listed 'Best First'.
Re^4: dbd::oracle compile problem
by yelekeri (Novice) on Jul 26, 2006 at 19:42 UTC
    When I tried to do make with -fPIC option this is the error I get, the rest of the errors remains the same
    cc: Warning: illegal option -fPIC
    <> 144: perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=solaris, osvers=2.6, archname=sun4-solaris-thread-multi uname='sunos axe 5.6 generic_105181-33 sun4u sparc sunw,ultra-60 ' config_args='-ders -Dcc=cc -Dusethreads -Duseithreads -Ud_sigsetjm +p -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Accflags=-DUSE_SITEC +USTOMIZE -Duselargefiles -Accflags=-DNO_HASH_SEED -Dinc_version_list= +5.8.7/$archname 5.8.7 5.8.6/$archname 5.8.6 5.8.4/$archname 5.8.4 5.8 +.3/$archname 5.8.3 5.8.2/$archname 5.8.2 5.8.1/$archname 5.8.1 5.8.0/ +$archname 5.8.0 -Dconfig_heavy=Config_static.pl -Dprefix=/var/tmp/Per +l -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemulti +plicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DUSE_S +ITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=6 +4', optimize='-O', cppflags='-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DUSE_SITECUSTOM +IZE -DNO_HASH_SEED' ccversion='Sun WorkShop 6 update 2 C 5.3 2001/05/15', gccversion=' +', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/WS6U +2/lib ' libpth=/usr/lib /usr/ccs/lib /opt/SUNWspro/WS6U2/lib /usr/local/li +b libs=-lsocket -lnsl -ldl -lm -lpthread -lc perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc libc=, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-KPIC', lddlflags='-G -L/usr/lib -L/usr/ccs/lib -L/opt +/SUNWspro/WS6U2/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API USE_SITECUSTOMIZE Locally applied patches: ActivePerl Build 817 [257965] Iin_load_module moved for compatibility with build 806 PerlEx support in CGI::Carp Less verbose ExtUtils::Install and Pod::Find Patch for CAN-2005-0448 from Debian with modifications Partly reverted 24733 to preserve binary compatibilty 27528 win32_pclose() error exit doesn't unlock mutex 27527 win32_async_check() can loop indefinitely 27515 ignore directories when searching @INC 27359 Fix -d:Foo=bar syntax 27210 Fix quote typo in c2ph 27203 Allow compiling swigged C++ code 27200 Make stat() on Windows handle trailing slashes correctly 27194 Get perl_fini() running on HP-UX again 27133 Initialise lastparen in the regexp structure 27034 Avoid "Prototype mismatch" warnings with autouse 26970 Make Passive mode the default for Net::FTP 26921 Avoid getprotobyname/number calls in IO::Socket::INET 26897,26903 Make common IPPROTO_* constants always available 26670 Make '-s' on the shebang line parse -foo=bar switches 26379 Fix alarm() for Windows 2003 26087 Storable 0.1 compatibility 25861 IO::File performace issue 25084 long groups entry could cause memory exhaustion 24699 ICMP_UNREACHABLE handling in Net::Ping Built under solaris Compiled at Mar 20 2006 20:36:33 %ENV: PERL5LIB="/var/tmp/Perl/lib/site_perl/5.8.8" @INC: /var/tmp/Perl/lib/site_perl/5.8.8/sun4-solaris-thread-multi /var/tmp/Perl/lib/site_perl/5.8.8 /var/tmp/Perl/lib/5.8.8/sun4-solaris-thread-multi /var/tmp/Perl/lib/5.8.8 /var/tmp/Perl/lib/site_perl/5.8.8/sun4-solaris-thread-multi /var/tmp/Perl/lib/site_perl/5.8.8 /var/tmp/Perl/lib/site_perl .

      Ok, so you're appparently using ActiveState Perl on Solaris. I'm sure you've checked here: PPM Repository Page and saw that DBD::Oracle isn't distributed via PPM. Rats.

      I also see that perl was compiled using the -KPIC CC flag. (BTW, that's not a flag you pass to make - it's a flag to cc, whichever cc you're using, and it's defined in the Makefile on a line that begins CCFLAGS=).

      I no longer have Solaris available to me, nor on any platform do I use ActiveState, so I believe you've run to the end of my help.

      ActiveState more than likely has support forums for people using the free ActiveState. If you've purchased it, though - you're in luck, because you also bought some commercial support.

      If all else fails, I wholeheartedly recommend entering a few of these terms in google, hit "search", and click around on a few of the links returned.

      And if you haven't already, please read the readme that came included with DBD::Oracle - I'm sure they have some tips there as well.

      . . .

      Oh, looky, there IS a README there, with a big section on "IF YOU HAVE PROBLEMS:".



      --chargrill
      $,=42;for(34,0,-3,9,-11,11,-17,7,-5){$*.=pack'c'=>$,+=$_}for(reverse s +plit//=>$* ){$%++?$ %%2?push@C,$_,$":push@c,$_,$":(push@C,$_,$")&&push@c,$"}$C[$# +C]=$/;($#C >$#c)?($ c=\@C)&&($ C=\@c):($ c=\@c)&&($C=\@C);$%=$|;for(@$c){print$_^ +$$C[$%++]}
        HAHA, you know the problem was, the hidden Control M characters in some of the c files. I am not sure how it got in the first place, well that did the trick, I am able to compile now.