Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: CPAN install DBI-1.53

by Anonymous Monk
on Nov 28, 2006 at 16:32 UTC ( #586507=note: print w/replies, xml ) Need Help??


in reply to Re: CPAN install DBI-1.53
in thread CPAN install DBI-1.53

Thanks, here is the full error message:

root@razorhead # make
gcc -c -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.53\" -DXS_VERSION=\"1.53\" -fPIC "-I/usr/local/ActivePerl-5.8/lib/5.8.0/sun4-solaris-thread-multi/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual Perl.c cc1: Invalid option `-fno-strict-aliasing' Perl.c: In function `XS_DBD__Perl__dr_data_sources': Perl.c:89: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__db__login': Perl.c:125: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__db_selectall_arrayref': Perl.c:160: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__db_do': Perl.c:283: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__db_last_insert_id': Perl.c:321: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__db_commit': Perl.c:351: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__db_rollback': Perl.c:369: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__db_disconnect': Perl.c:387: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__db_STORE': Perl.c:421: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__db_FETCH': Perl.c:444: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__db_DESTROY': Perl.c:464: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__db_take_imp_data': Perl.c:531: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__st__prepare': Perl.c:595: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__st_bind_col': Perl.c:649: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__st_bind_param': Perl.c:701: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__st_bind_param_inout': Perl.c:744: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__st_execute': Perl.c:793: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__st_execute_for_fetch': Perl.c:828: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__st_fetchall_arrayref': Perl.c:904: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__st_finish': Perl.c:938: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__st_blob_read': Perl.c:969: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__st_STORE': Perl.c:1008: warning: unused parameter `cv' Perl.c: In function `XS_DBD__Perl__st_DESTROY': Perl.c:1054: warning: unused parameter `cv' Perl.c: In function `boot_DBD__Perl': Perl.c:1106: warning: unused parameter `cv' *** Error code 1
make: Fatal error: Command failed for target `Perl.o'

The perl -v is: This is perl, v5.8.0 built for sun4-solaris-thread-multi

Thanks

Replies are listed 'Best First'.
Re^3: CPAN install DBI-1.53
by duckyd (Hermit) on Nov 28, 2006 at 16:41 UTC
    You're trying to use gcc to compile DBI, are you sure your perl was compiled with gcc? Note that you need to use perl -V, not  perl -v to see what compiler was used to compile perl. For example,
    $ perl -V | grep -A1 Compiler Compiler: cc='cc', ccflags ='-g -pipe -fno-common -DPERL_DARWIN -no-cpp-prec +omp -fno-strict-aliasing -I/usr/local/include',

      Thanks duckyd

      Compiler: cc='gcc', ccflags ='-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -fno-strict-aliasing' ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers='solaris2.6' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define

      which bit tells me which compiler was used?

        That's a very old version of gcc that was used to build that Perl (24 Oct 1999). What version of gcc are you using ? (Running 'gcc -v' will tell you.)

        I'm not sure what's killing the process - the only thing that's not reported as a "warning" is the "invalid option: -fno-strict-aliasing", so maybe that's the culprit.

        You could get rid of it with the following entry in the WriteMakefile() section of the DBI-1.53 Makefile.PL:
        CCFLAGS => '-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT D_LARGEFILE_SOURCE + -D_FILE_OFFSET_BITS=64',
        Then run 'make clean', 'perl Makefile.PL', 'make test', and 'make install'.
        Perhaps then, the process will continue to completion for you.

        Cheers,
        Rob
        This one:  Compiler: cc='gcc'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://586507]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2021-10-17 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (72 votes). Check out past polls.

    Notices?