[mythtv-users] mythplugin /usr/bin/ld

Fedor Pikus fpikus at gmail.com
Mon Dec 7 16:01:01 UTC 2009


On Mon, Dec 7, 2009 at 5:50 AM, Romont Sylvain <psgman24 at yahoo.fr> wrote:
> Thank for your answer!
> I have already the  64-bit C libraries... and I have /usr/lib64/libm.so
> What do you mean by "the library path on the link line is wrong, should be -L/usr/lib64 not -L/usr/lib."
> Where and how I have to change it?

It's on the link command. Unless you are building manually, link
command comes from the makefile. Makefile may be provided or created
by some tool like configure or xmkmf (I've never built myth from
original sources, only from SRPM, and you didn't say what distribution
are you on). My recommendation is to find the myth packages for your
distribution and the corresponding source packages, verify that the
source package rebuilds correctly, then, if you need to build from
newer source, either replace the source tarball in the build area
(thus creating new source package) or look at how they configured it
to build for your distribution (may be special arguments to configure
or they patched the makefile) and do the same.

>
> Thank you very much for your help!!!
>
> --- En date de : Lun 7.12.09, Fedor Pikus <fpikus at gmail.com> a écrit :
>
>> De: Fedor Pikus <fpikus at gmail.com>
>> Objet: Re: [mythtv-users] mythplugin /usr/bin/ld
>> À: "Discussion about mythtv" <mythtv-users at mythtv.org>
>> Date: Lundi 7 Décembre 2009, 7h18
>> On Sun, Dec 6, 2009 at 7:55 PM,
>> Romont Sylvain <psgman24 at yahoo.fr>
>> wrote:
>> > Hello,
>> > I'm during to compile mythplugin but I have always the
>> same error:
>> >
>> > /usr/bin/ld: skipping incompatible /usr/lib/libm.so
>> when searching for -lm
>> > /usr/bin/ld: skipping incompatible
>> /usr/lib/libgcc_s.so when searching for -lgcc_s
>> > /usr/bin/ld: skipping incompatible /usr/lib/libc.so
>> when searching for -lc
>> > /usr/bin/ld: skipping incompatible
>> /usr/lib/libgcc_s.so when searching for -lgcc_s
>> >
>> >
>> > If I do plugin by plugin I have always the same
>> error...
>> >
>> > How can I fix it?
>> >
>> > Thank you for your answer!
>>
>> It looks like you are building a 64-bit executable but you
>> have 32-bit
>> libraries installed. You need to either install 64-bit C
>> libraries or
>> compile and link with -m32 switch to make gcc produce
>> 32-bit
>> executable. The 64-bit libraries should go to /usr/lib64.
>> If you
>> already have /usr/lib64/libm.so then the library path on
>> the link line
>> is wrong, should be -L/usr/lib64 not -L/usr/lib.
>>
>>
>> --
>> Fedor G Pikus (fpikus at gmail.com)
>> http://www.pikus.net
>> http://wild-light.com
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>
>
>
>



-- 
Fedor G Pikus (fpikus at gmail.com)
http://www.pikus.net
http://wild-light.com


More information about the mythtv-users mailing list