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',
| [reply] [d/l] [select] |
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?
| [reply] |
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 | [reply] [d/l] |
This one: Compiler: cc='gcc'
| [reply] [d/l] |