Hello,

I checked my /lib and /lib64 directories, and they both have a libc.so.6
file, but in fact, on both directories, this file is a link to the same
file, libc-2.4.so.
The x68_64 glibc is probably not installed, but I am not sure of that : I am
new in the company, and the person before me has installed everything on the
computer, and there is no SA, I am my own SA (small company... :-)  )
That is why I am a bit lost in all that. About the x86_64 glibc, I have read
that it is not without risks to modify it, and if I f modify it on my
computer I will also have to modify it on the production server.

At the moment I just succeeded  in installing DBI using a RPM : I had an old
bad DBI rpm which was blocking the installation of the good RPM, I deleted
it when found, then I installed the good one... and it works !

I know that this does not solve my compilation problem, but it allows me to
carry on my work.

Thanks a lot for your answers, I think I now know the source of the problem,
which is half of the solution.

Sincerely,

Raphael MORLEC

2008/11/4 Mike Nhan <[EMAIL PROTECTED]>

> Hi,
>
> Since you are on an x86_64 linux machine, do you have both the glibc i386
> and the glibc x86_64 libraries installed?  There should be a libc.so in both
> /lib and /lib64.  If not one of the 2 is missing and you need to have that
> installed.  Since the /lib/libc.so is not compatible with the compiler, I
> hazzard a guess that the x86_64 glibc is not installed and that the
> /lib/libc.so is the i386 version.  Have your SA install both the
> glibc-x86_64 and glibc-devel-x86_64 packages.  You'll want the x86_64
> version that matches your i386 version if you don't want to upgrade both. I
> think that should fix the compilation issue with the incompatible libc.
>
> Michael
>
>
>
> On Tue, 4 Nov 2008, Raphael Morlec wrote:
>
>  Date: Tue, 4 Nov 2008 11:37:45 +0100
>> From: Raphael Morlec <[EMAIL PROTECTED]>
>> To: Jonathan Leffler <[EMAIL PROTECTED]>, dbi-users@perl.org
>> Subject: Re: Problem with DBI installation on x86_64-linux
>>
>>
>> Thank you for your answer.
>> You must be right when you say that my "crash" is a C compilation failure.
>> The problem is that I am not experienced in C language, and I don't really
>> know how to resolve the compilation error.
>>
>> I looked on the web to find information about the GCC compiler, I
>> downloaded
>> the latest version and read the installation guide, but
>> I would prefer avoiding to reinstall a new version of the compiler if
>> possible, since it would suppose that I also reinstall the compiler on the
>> production server :-/
>>
>> I attached the shell output with the glibc and gcc versions.
>>
>> I also tried to test another module (HTML-Tidy) using C, and I have a
>> compilation failure similar to the DBI compilation failure (the shell
>> output
>> is attached). So you also may be right when you say that I am probably not
>> able to build any module with C.
>>
>> I don't think my libraries are too old, since they came with the linux
>> distribution, which is from 2007.
>> Maybe the problem comes from a wrong path or something ?
>> So I don't know which way I should search now... if you have any clue it
>> would be great !
>>
>> Thanks again for the time you spend on my problem.
>>
>> Raphael
>>
>> 2008/11/4 Jonathan Leffler <[EMAIL PROTECTED]>
>>
>>
>>> 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."
>>>
>>>
>>
> --
>                ---//---
> Time flies like the wind. Fruit flies like bananas.
>        --- Groucho Marx
>
> Either write something worth reading or do something worth writing.
>        --- Benjamin Franklin
>
> A meeting is an event at which the minutes are kept and the hours are lost

Reply via email to