Quantcast

libc.so.6: ELF file OS ABI invalid

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

libc.so.6: ELF file OS ABI invalid

David Banning-119
I get this error when I attempt to run acroread8;

/compat/linux/bin/sh: error while loading shared libraries: /usr/local/lib/libc.so.6: ELF file OS ABI invalid

I get the impression maybe acroread is attempting run a linux binary
using a freebsd library - but I am not sure if this is so, or how to fix
it. Any pointers would be appreciated.
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: libc.so.6: ELF file OS ABI invalid

Tim Judd-3
On Tue, Apr 7, 2009 at 10:18 AM, David Banning <
[hidden email]<david%2Bdated%[hidden email]>
> wrote:

> I get this error when I attempt to run acroread8;
>
> /compat/linux/bin/sh: error while loading shared libraries:
> /usr/local/lib/libc.so.6: ELF file OS ABI invalid
>
> I get the impression maybe acroread is attempting run a linux binary
> using a freebsd library - but I am not sure if this is so, or how to fix
> it. Any pointers would be appreciated.
>

This looks like a Linux ELF file branding problem.

google://linux+elf+branding


That's what I'd start with.

--TJ
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: libc.so.6: ELF file OS ABI invalid

Boris Samorodov
In reply to this post by David Banning-119
On Tue, 7 Apr 2009 12:18:30 -0400 David Banning wrote:

> I get this error when I attempt to run acroread8;

> /compat/linux/bin/sh: error while loading shared libraries: /usr/local/lib/libc.so.6: ELF file OS ABI invalid

> I get the impression maybe acroread is attempting run a linux binary
> using a freebsd library - but I am not sure if this is so, or how to fix
> it. Any pointers would be appreciated.

If you install it from ports/packages that definitely shouldn't happen.
Do you have some non-default environment like LD_LIBRARY_PATH?
You may use ktrace/kdump to diagnose the problem.


WBR
--
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: libc.so.6: ELF file OS ABI invalid

David Banning-121
In reply to this post by Tim Judd-3
Tim Judd wrote:

> On Tue, Apr 7, 2009 at 10:18 AM, David Banning
> <[hidden email]
> <mailto:david%2Bdated%[hidden email]>> wrote:
>
>     I get this error when I attempt to run acroread8;
>
>     /compat/linux/bin/sh: error while loading shared libraries:
>     /usr/local/lib/libc.so.6: ELF file OS ABI invalid
>
>     I get the impression maybe acroread is attempting run a linux binary
>     using a freebsd library - but I am not sure if this is so, or how
>     to fix
>     it. Any pointers would be appreciated.
>
>
> This looks like a Linux ELF file branding problem.
>
> google://linux+elf+branding
>
but /usr/local/lib/libc.so.6 is the freebsd library, which it -is- branded;

# /usr/local/lib
# brandelf libc.so.6
File 'libc.so.6' is of brand 'FreeBSD' (9)

Acroread probably needs   /usr/compat/linux/lib/libc.so.6
if it is running as linux  - acroread itself is a shell script. My
thought is now to locate the binary that is executed and see
what it is brandelf'd as, but when I study the acroread script
I cannot appear to find a binary referenced.


_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: libc.so.6: ELF file OS ABI invalid

David Banning-120
In reply to this post by Boris Samorodov
Boris Samorodov wrote:

> On Tue, 7 Apr 2009 12:18:30 -0400 David Banning wrote:
>
>  
>> I get this error when I attempt to run acroread8;
>>    
>
>  
>> /compat/linux/bin/sh: error while loading shared libraries: /usr/local/lib/libc.so.6: ELF file OS ABI invalid
>>    
>
>  
>> I get the impression maybe acroread is attempting run a linux binary
>> using a freebsd library - but I am not sure if this is so, or how to fix
>> it. Any pointers would be appreciated.
>>    
>
> If you install it from ports/packages that definitely shouldn't happen.
> Do you have some non-default environment like LD_LIBRARY_PATH?
> You may use ktrace/kdump to diagnose the problem.
>  
ktrace/kdump appear to show an attempted access of libc.so.6 first from
/usr/lib and then from /usr/lib/compat as well as some other lib
directories.

There is not such a file in any of those directories. I have attempted
to run ldconfig -R to rescan the directory and rebuild the hints file,
but I am going astray here...

the linux version of libc.so.6 -is- located in /usr/compat/linux/lib
where is does not appear to look.
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: libc.so.6: ELF file OS ABI invalid

Boris Samorodov
On Tue, 07 Apr 2009 13:28:22 -0400 David Banning wrote:

> Boris Samorodov wrote:
> > On Tue, 7 Apr 2009 12:18:30 -0400 David Banning wrote:
> >  
> >> I get this error when I attempt to run acroread8;
> >  
> >> /compat/linux/bin/sh: error while loading shared libraries: /usr/local/lib/libc.so.6: ELF file OS ABI invalid
> >>    
> >> I get the impression maybe acroread is attempting run a linux binary
> >> using a freebsd library - but I am not sure if this is so, or how to fix
> >> it. Any pointers would be appreciated.
> >
> > If you install it from ports/packages that definitely shouldn't happen.
> > Do you have some non-default environment like LD_LIBRARY_PATH?
> > You may use ktrace/kdump to diagnose the problem.
> >  
> ktrace/kdump appear to show an attempted access of libc.so.6 first
> from /usr/lib and then from /usr/lib/compat as well as some other lib
> directories.

That's bad. If you use native FreeBSD ktrace, then you should see
only using native libc. And if native ktrace tries to use /compat...
that's too bad. It shouldn't.

For tracing linux libs one sjould use linux_kdump. But that's another
story.

> There is not such a file in any of those directories. I have attempted
> to run ldconfig -R to rescan the directory and rebuild the hints file,
> but I am going astray here...

Well, that may be the curprit. Yur should never use ldconfig until
you *know* what you do. For linux libs only linux ldconfig is used
and with chroot (-r /compat/linux).

> the linux version of libc.so.6 -is- located in /usr/compat/linux/lib
> where is does not appear to look.

You shoudn't see it with native ktrace.

Seems that you rewrote your linux(?) ldconfig database. It's not so hard
to restore. Remove /compat/linux/etc/ld.so.cache and rebuild it by
"sudo /compat/linux/sbin/ldconfig -r /compat/linux".


HTH & WBR
--
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: libc.so.6: ELF file OS ABI invalid

David Banning-122

> You shoudn't see it with native ktrace.
>
> Seems that you rewrote your linux(?) ldconfig database. It's not so hard
> to restore. Remove /compat/linux/etc/ld.so.cache and rebuild it by
> "sudo /compat/linux/sbin/ldconfig -r /compat/linux".
>
>
>  
That worked. Thanks Boris.
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Loading...