On Mon, Nov 3, 2008 at 8:06 AM, Raphael Morlec <[EMAIL PROTECTED]>wrote:

> Hello everybody,
>
> I'm trying without success to install DBI for nearly two days now.
>
> I use a x86_64-linux Mandriva 2007 distribution, with perl 5.8.8 (the shell
> 'perl -V' output is attached).
>
> I tried several ways to install DBI :
>
> 1. With the CPAN :
> I tried 'perl -MCPAN -e shell', then 'install DBI'
> CPAN gets the DBI module, writes the makefile, then... crashes !
> I attached the output of the CPAN on the shell (auto_CPAN_crash.txt).
> It crashes when gcc compiling is beginning (near line 376), so I guess
> the problem comes from... gcc compilation.
> I check the C libraries, and I think I have the right libraries :
> gcc-4.1.1-3mdk.x86_64
> libstdc++5-3.3.6-3mdk.x86_64
> libstdc++6-devel-4.1.1-3mdk.x86_64
>

I'm not sure how you define 'crash', but to me, a 'crash' is different from
a compilation failure.

The first sign I see of trouble is:

gcc  -shared -L/usr/local/lib64 DBI.o  -o blib/arch/auto/DBI/DBI.so     \
                \

/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status


You probably need to resolve that before going any further.





>
> 2. By downloading sources from CPAN :
> Error is almost the same : I get the DBI-1.607.tar.gz file.
> ( http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.607.tar.gz )
> Then I build the makefile with 'perl Makefile.PL'
> Then I do 'make'.
> Then... crash.
> It seems to crash at the same moment than with CPAN automatic installation
> (shell output attached => manual_CPAN_crash.txt)


Same failure.



> RPM information deleted

DBI::Shell is not DBI.
And DBI 1.54 is quite a bit older than the current releases.


Thanks for including the information about versions, etc.  It helps.

I note that Perl was built with a pre-release of the C compiler:

 Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions',
    cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='4.1.1 20060724 (prerelease)
(4.1.1-3mdk)', gccosandvers=''


I doubt that has anything to do with the issue. though.  You need to ensure
that you can find an appropriate C library.
Have you managed to build any other C modules in Perl?  Somehow, I doubt it.


-- 
Jonathan Leffler <[EMAIL PROTECTED]>  #include <disclaimer.h>
Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."

Reply via email to