Re: Linux compat library error: ELF file OS ABI invalid
Kris Kennaway <[EMAIL PROTECTED]> writes: >> Sorry Kris, I was in part plain wrong in my first reply to this one. >> >> Linking /compat/linux/usr/X11R6 to /compat/linux/usr/local fixed my >> initial problem >> >> >>> | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: >>> | error while loading shared libraries: >>> | /usr/local/lib/libXext.so.6: ELF file OS ABI invalid >> >> What I still don't get is why ldconfig doesn't find the the X11R6 >> directory, when /compat/linux/etc/ld.so.conf point at it >> >> >> include ld.so.conf.d/*.conf >> /lib >> /usr/lib >> /usr/local/lib >> >> it seems to be ignoring the first line. >> >> Either there is a real problem here or the real problem is my ignorance, >> and I'm not sure which it is! > > You re-ran the ldconfig command that rescans the specified directory > to rebuild its cache, right? :) Well - the problem was my own blindness. There was a LD_LIBRARY variable in .bashrc which seems to have messed up the linux path stuff. Get rid of that, run the ldconfig just to be sure, and all works as it should. I had *completely* forgotten it was there - have just moved to FreeBSD from Linux, after three years of dithering!, and had not removed that line when I brought my .bashrc with me. Sorry for the noise, and *many* thanks for all the help - as always I've learned some useful things. atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Glyn Millington wrote: Kris Kennaway <[EMAIL PROTECTED]> writes: Mel wrote: On Tuesday 13 May 2008 15:48:58 Glyn Millington wrote: Mel <[EMAIL PROTECTED]> writes: On Tuesday 13 May 2008 14:05:43 Glyn Millington wrote: Trying to launch Linux Open Office 2.4 I get the following error message , | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: | error while loading shared libraries: | /usr/local/lib/libXext.so.6: ELF file OS ABI invalid ` that include statement leads to /usr/X11R6 Wow - can I just check that I have this right before I do it?! Best fix: rm /usr/X11R6 get rid of /usr/X11R6, which on a system-wide basis is a link to /usr/local touch /usr/X11R6 Create an empty *file* /usr/X11R6 chflags schg /usr/X11R6 make it system-immutable /sbin/ldconfig -m /usr/local/lib (just to force the linker to re-read the dupes). Merge new stuf in the /usr/local/lib directory into the hints file As a bonus, the old apps you still have pointing to /usr/X11R6 But the app in question needs to get at /usr/compat/linux/usr/X11R6/ The app however looks for /usr/X11R6/lib/libXfoo.so.1. If both exist in base system and linux emulation, then the linker will hand it the first one it finds, which because of the /usr/X11R6 symlink to /usr/local will be the FreeBSD one. The lookup order for linux binaries is /compat/linux/foo first, then /foo if the former does not exist. So if /compat/linux/usr/X11R6 exists, then it is seen by linux binaries (similarly for files below this path). As far as I know, this file should be a directory, not a symlink. Moreover, the desired libXext.so.6 lives in that directory. It is a symlink pointing to another file in the same directory. If neither exist (or exist but are corrupted), then the linux binary will fall back to the bogus FreeBSD one in another search path. Sorry Kris, I was in part plain wrong in my first reply to this one. Linking /compat/linux/usr/X11R6 to /compat/linux/usr/local fixed my initial problem | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: | error while loading shared libraries: | /usr/local/lib/libXext.so.6: ELF file OS ABI invalid What I still don't get is why ldconfig doesn't find the the X11R6 directory, when /compat/linux/etc/ld.so.conf point at it include ld.so.conf.d/*.conf /lib /usr/lib /usr/local/lib it seems to be ignoring the first line. Either there is a real problem here or the real problem is my ignorance, and I'm not sure which it is! with thanks yet again atb Glyn You re-ran the ldconfig command that rescans the specified directory to rebuild its cache, right? :) Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Glyn Millington <[EMAIL PROTECTED]> writes: > > Sorry Kris, I was in part plain wrong in my first reply to this one. > > Linking /compat/linux/usr/X11R6 to /compat/linux/usr/local fixed my > initial problem > > >> | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: >> | error while loading shared libraries: >> | /usr/local/lib/libXext.so.6: ELF file OS ABI invalid > > What I still don't get is why ldconfig doesn't find the the X11R6 > directory, when /compat/linux/etc/ld.so.conf point at it > > > include ld.so.conf.d/*.conf > /lib > /usr/lib > /usr/local/lib > > it seems to be ignoring the first line. > > Either there is a real problem here or the real problem is my ignorance, > and I'm not sure which it is! It was my ignorance plus an entry in ~/.bashrc about which I had totally forgotten. Apologies all round I'm afraid Many thanks - atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Tijl Coosemans <[EMAIL PROTECTED]> writes: >> Ah! (bangs head against wall!) Yes I do:- >> >> in ~/.bashrc >> >> LD_LIBRARY_PATH="/usr/local/lib:/usr/local/share/squeak/3.7-7" >> >> Having removed that realplayer comes up with no problem. >> >> Should have spotted that one :-( >> >> So many thanks for solving both my problems today! > > :) Your welcome. Does OpenOffice actually still need that symlink now? Will check that one later - must finish what I'm working on with OO first! Many thanks again, and sorry to have bothered the list with this! atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
On Tuesday 13 May 2008 19:27:19 Glyn Millington wrote: > Tijl Coosemans <[EMAIL PROTECTED]> writes: >> On Tuesday 13 May 2008 17:49:02 Glyn Millington wrote: >>> [EMAIL PROTECTED]:~$ /usr/compat/linux/bin/sh realplay >>> >>> /usr/local/lib/RealPlayer/realplay.bin: error while loading shared >>> libraries: /usr/local/lib/libgdk-x11-2.0.so.0: ELF file OS ABI invalid >>> >>> >>> I'll bet it wants this one :-) >>> >>> /usr/compat/linux/usr/lib/libgdk-x11-2.0.so.0 >>> >>> >>> and of course I have just linked /usr/compat/linux/usr/local to X11R6 >> >> That's suspicious, realplayer just works for me. Do you have some LD_* >> variable defined in your environment? > > Ah! (bangs head against wall!) Yes I do:- > > in ~/.bashrc > > LD_LIBRARY_PATH="/usr/local/lib:/usr/local/share/squeak/3.7-7" > > Having removed that realplayer comes up with no problem. > > Should have spotted that one :-( > > So many thanks for solving both my problems today! :) Your welcome. Does OpenOffice actually still need that symlink now? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Boris Samorodov <[EMAIL PROTECTED]> writes: > On Tue, 13 May 2008 19:16:51 +0100 Glyn Millington wrote: > >> > % echo ${LD_LIBRARY_PATH} >> /usr/local/lib:/usr/local/share/squeak/3.7-7 > > The culprit is the first path. It results in non-standard linux > path-finding. If you remove it all _linux_ troubles should go away. > I said "linux" since assume that there was a reason why you has > that path at the first place. There was indeed - but thank you very much!I should have spotted this one myself :-( but forgot it was there (an old entry I should have removed.) atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
On Tue, 13 May 2008 19:16:51 +0100 Glyn Millington wrote: > > % echo ${LD_LIBRARY_PATH} > /usr/local/lib:/usr/local/share/squeak/3.7-7 The culprit is the first path. It results in non-standard linux path-finding. If you remove it all _linux_ troubles should go away. I said "linux" since assume that there was a reason why you has that path at the first place. -- WBR, bsam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Boris Samorodov <[EMAIL PROTECTED]> writes: > On Tue, 13 May 2008 09:14:54 +0100 Glyn Millington wrote: > > >> FreeBSD 7.0 release, ports currently up-to-date >> Trying to launch Linux Open Office 2.4 I get the following error message > >> , >> | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while >> | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI >> | invalid >> ` > >> Now I *think* that what it ought to load is >> /usr/compat/linux/usr/X11R6/lib/libXext.so.6 >> but it goes for the FreeBSD X extension lib instead. >> Can anyone help me to fix this? > > Please, show an output for: Hi Boris, thank you for taking an interest in my struggles :-) Ok - here we go . > - > % uname -a FreeBSD glynthebearded.millingtons.org 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Mon Apr 7 21:33:37 BST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GLYN1KERNEL i386 The changes in GLYNKERNEL from GENERIC relate only to acpi and apm. > % pkg_info -xI 'linux' linux-atk-1.9.1 Accessibility Toolkit, Linux/i386 binary linux-cairo-1.0.2 Linux cairo binary linux-expat-1.95.8 Linux/i386 binary port of Expat XML-parsing library linux-flashplugin-9.0r124 Adobe Flash Player NPAPI Plugin linux-fontconfig-2.2.3_7 Linux/i386 binary of Fontconfig linux-glib2-2.6.6 Version 2.X Linux/i386 binary port of GLib linux-gtk2-2.6.10 GTK+ library, version 2.X, Linux binary linux-hicolor-icon-theme-0.5_1 A high-color icon theme shell from the FreeDesktop project linux-jpeg-6b.34RPM of the JPEG lib linux-nvu-1.0 A complete Web Authoring System linux-openssl-0.9.7f SSL and crypto library (Linux Version) linux-pango-1.10.2 Linux pango binary linux-png-1.2.8_2 RPM of the PNG lib linux-realplayer-10.0.9.809.20070726 Linux RealPlayer 10 from RealNetworks linux-scim-libs-1.4.4 Smart Common Input Method platform, library part, Linux bin linux-sun-jdk-1.5.0.15,2 Sun Java Development Kit 1.5 for Linux linux-tiff-3.7.1TIFF library, Linux/i386 binary linux-xorg-libs-6.8.2_5 Xorg libraries, linux binaries linux_base-fc-4_13 Base set of packages needed in Linux mode (for i386/amd64) > % strings /compat/linux/etc/ld.so.cache | grep libXextlibXext.so.6 /usr/X11R6/lib/libXext.so.6 > % echo ${LD_LIBRARY_PATH} /usr/local/lib:/usr/local/share/squeak/3.7-7 > % sysctl -a | grep linux hw.snd.compat_linux_mmap: 0 compat.linux.oss_version: 198144 compat.linux.osrelease: 2.4.2 compat.linux.osname: Linux > - > > As well as 'cat ' if it's not very long. If it > is long then please give an URL to that file. #!/bin/sh /usr/compat/linux/bin/sh /usr/compat/linux/opt/openoffice.org2.4/program/soffice thanks again Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Kris Kennaway <[EMAIL PROTECTED]> writes: > Mel wrote: >> On Tuesday 13 May 2008 15:48:58 Glyn Millington wrote: >>> Mel <[EMAIL PROTECTED]> writes: On Tuesday 13 May 2008 14:05:43 Glyn Millington wrote: > Trying to launch Linux Open Office 2.4 I get the following error > message , > > | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: > | error while loading shared libraries: > | /usr/local/lib/libXext.so.6: ELF file OS ABI invalid > > ` > that include statement leads to /usr/X11R6 >>> Wow - can I just check that I have this right before I do it?! >>> Best fix: rm /usr/X11R6 >>> get rid of /usr/X11R6, which on a system-wide basis is a link to /usr/local >>> touch /usr/X11R6 >>> Create an empty *file* /usr/X11R6 >>> chflags schg /usr/X11R6 >>> make it system-immutable >>> /sbin/ldconfig -m /usr/local/lib (just to force the linker to re-read the dupes). >>> Merge new stuf in the /usr/local/lib directory into the hints file >>> As a bonus, the old apps you still have pointing to /usr/X11R6 >>> But the app in question needs to get at >>> >>> /usr/compat/linux/usr/X11R6/ >> >> The app however looks for /usr/X11R6/lib/libXfoo.so.1. If both exist >> in base system and linux emulation, then the linker will hand it the >> first one it finds, which because of the /usr/X11R6 symlink to >> /usr/local will be the FreeBSD one. > > The lookup order for linux binaries is /compat/linux/foo first, then > /foo if the former does not exist. So if /compat/linux/usr/X11R6 > exists, then it is seen by linux binaries (similarly for files below > this path). As far as I know, this file should be a directory, not a > symlink. Moreover, the desired libXext.so.6 lives in that > directory. It is a symlink pointing to another file in the same > directory. If neither exist (or exist but are corrupted), then the > linux binary will fall back to the bogus FreeBSD one in another search > path. Sorry Kris, I was in part plain wrong in my first reply to this one. Linking /compat/linux/usr/X11R6 to /compat/linux/usr/local fixed my initial problem > | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: > | error while loading shared libraries: > | /usr/local/lib/libXext.so.6: ELF file OS ABI invalid What I still don't get is why ldconfig doesn't find the the X11R6 directory, when /compat/linux/etc/ld.so.conf point at it include ld.so.conf.d/*.conf /lib /usr/lib /usr/local/lib it seems to be ignoring the first line. Either there is a real problem here or the real problem is my ignorance, and I'm not sure which it is! with thanks yet again atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Tijl Coosemans <[EMAIL PROTECTED]> writes: > On Tuesday 13 May 2008 17:49:02 Glyn Millington wrote: >> Tijl Coosemans <[EMAIL PROTECTED]> writes: >>> On Tuesday 13 May 2008 16:50:51 Glyn Millington wrote: Linking /compat/linux/usr/X11R6 to /compat/linux/usr/local got Openoffice running but reaplay is giving the same kind of error :-( >>> >>> Which error exactly? >> >> This baby (sorry - should have included it) >> >> [EMAIL PROTECTED]:~$ /usr/compat/linux/bin/sh realplay >> >> /usr/local/lib/RealPlayer/realplay.bin: error while loading shared >> libraries: /usr/local/lib/libgdk-x11-2.0.so.0: ELF file OS ABI invalid >> >> >> I'll bet it wants this one :-) >> >> /usr/compat/linux/usr/lib/libgdk-x11-2.0.so.0 >> >> >> and of course I have just linked /usr/compat/linux/usr/local to X11R6 >> lol >> >> >> Can I win on this one :-) > > That's suspicious, realplayer just works for me. Do you have some LD_* > variable defined in your environment? Ah! (bangs head against wall!) Yes I do:- in ~/.bashrc LD_LIBRARY_PATH="/usr/local/lib:/usr/local/share/squeak/3.7-7" Having removed that realplayer comes up with no problem. Should have spotted that one :-( So many thanks for solving both my problems today! atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Kris Kennaway <[EMAIL PROTECTED]> writes: > Mel wrote: >> On Tuesday 13 May 2008 15:48:58 Glyn Millington wrote: >>> Mel <[EMAIL PROTECTED]> writes: On Tuesday 13 May 2008 14:05:43 Glyn Millington wrote: > Trying to launch Linux Open Office 2.4 I get the following error > message , > > | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: > | error while loading shared libraries: > | /usr/local/lib/libXext.so.6: ELF file OS ABI invalid > > ` > that include statement leads to /usr/X11R6 >>> Wow - can I just check that I have this right before I do it?! >>> Best fix: rm /usr/X11R6 >>> get rid of /usr/X11R6, which on a system-wide basis is a link to /usr/local >>> touch /usr/X11R6 >>> Create an empty *file* /usr/X11R6 >>> chflags schg /usr/X11R6 >>> make it system-immutable >>> /sbin/ldconfig -m /usr/local/lib (just to force the linker to re-read the dupes). >>> Merge new stuf in the /usr/local/lib directory into the hints file >>> As a bonus, the old apps you still have pointing to /usr/X11R6 >>> But the app in question needs to get at >>> >>> /usr/compat/linux/usr/X11R6/ >> >> The app however looks for /usr/X11R6/lib/libXfoo.so.1. If both exist >> in base system and linux emulation, then the linker will hand it the >> first one it finds, which because of the /usr/X11R6 symlink to >> /usr/local will be the FreeBSD one. > > The lookup order for linux binaries is /compat/linux/foo first, then > /foo if the former does not exist. So if /compat/linux/usr/X11R6 > exists, then it is seen by linux binaries (similarly for files below > this path). As far as I know, this file should be a directory, not a > symlink. Moreover, the desired libXext.so.6 lives in that > directory. It is a symlink pointing to another file in the same > directory. Just to summarise :-) So far this description above fits my situation exactly - everything is where you say it should be, and everything worked until a couple of days ago. Having done a portupgrade -akOP recently things appear tio have gone wrong with the results as described originally. For some reason /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin can't find the linux library which is where you describe it, until I make a symlink, linking /compat/linux/usr/local to X11R6 - then soffice works but other things break > If neither exist (or exist but are corrupted), then the linux binary > will fall back to the bogus FreeBSD one in another search path. But doesn't the above suggest that A. It exists and B. It works when soffice.bin can find it. ? atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Tijl Coosemans <[EMAIL PROTECTED]> writes: > On Tuesday 13 May 2008 16:34:11 Glyn Millington wrote: >> Tijl Coosemans <[EMAIL PROTECTED]> writes: >>> On Tuesday 13 May 2008 10:14:54 Glyn Millington wrote: FreeBSD 7.0 release, ports currently up-to-date Trying to launch Linux Open Office 2.4 I get the following error message , | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI | invalid ` Now I *think* that what it ought to load is /usr/compat/linux/usr/X11R6/lib/libXext.so.6 but it goes for the FreeBSD X extension lib instead. Can anyone help me to fix this? >>> >>> If /compat/linux/usr/local doesn't exist, perhaps making it a >>> symlink to X11R6 does the trick. >> >> Spot on!!Many thanks :-) >> >> What I don't understand is why that works, when >> /compat/linux/etc/ld.so.conf points at the right place in the very >> first line! > > I suspect some OO executable or lib has some search paths hardcoded > which the linker checks before using the ldconfig cache. If you want > you could check this with: objdump -p | grep RPATH That gets me a objdump: soffice: File format not recognized > Also, when a Linux program opens a file (i.e. libXext.so.6), FreeBSD > first tries to find it under /compat/linux, then under /. So linker > tries to open /usr/local/lib/libXext.so, but it didn't exist under > /compat/linux so it got the FreeBSD libXext.so. OK - tghatnk you, that bit I *do* understand. many thanks Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
On Tue, 13 May 2008 09:14:54 +0100 Glyn Millington wrote: > FreeBSD 7.0 release, ports currently up-to-date > Trying to launch Linux Open Office 2.4 I get the following error message > , > | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while > | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI > | invalid > ` > Now I *think* that what it ought to load is > /usr/compat/linux/usr/X11R6/lib/libXext.so.6 > but it goes for the FreeBSD X extension lib instead. > Can anyone help me to fix this? Please, show an output for: - % uname -a % pkg_info -xI 'linux' % strings /compat/linux/etc/ld.so.cache | grep libXext % echo ${LD_LIBRARY_PATH} % sysctl -a | grep linux - As well as 'cat ' if it's not very long. If it is long then please give an URL to that file. -- WBR, bsam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
On Tuesday 13 May 2008 17:49:02 Glyn Millington wrote: > Tijl Coosemans <[EMAIL PROTECTED]> writes: >> On Tuesday 13 May 2008 16:50:51 Glyn Millington wrote: >>> Linking /compat/linux/usr/X11R6 to /compat/linux/usr/local got >>> Openoffice running but reaplay is giving the same kind of error :-( >> >> Which error exactly? > > This baby (sorry - should have included it) > > [EMAIL PROTECTED]:~$ /usr/compat/linux/bin/sh realplay > > /usr/local/lib/RealPlayer/realplay.bin: error while loading shared > libraries: /usr/local/lib/libgdk-x11-2.0.so.0: ELF file OS ABI invalid > > > I'll bet it wants this one :-) > > /usr/compat/linux/usr/lib/libgdk-x11-2.0.so.0 > > > and of course I have just linked /usr/compat/linux/usr/local to X11R6 > lol > > > Can I win on this one :-) That's suspicious, realplayer just works for me. Do you have some LD_* variable defined in your environment? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Mel wrote: On Tuesday 13 May 2008 15:48:58 Glyn Millington wrote: Mel <[EMAIL PROTECTED]> writes: On Tuesday 13 May 2008 14:05:43 Glyn Millington wrote: Trying to launch Linux Open Office 2.4 I get the following error message , | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: | error while loading shared libraries: | /usr/local/lib/libXext.so.6: ELF file OS ABI invalid ` that include statement leads to /usr/X11R6 Wow - can I just check that I have this right before I do it?! Best fix: rm /usr/X11R6 get rid of /usr/X11R6, which on a system-wide basis is a link to /usr/local touch /usr/X11R6 Create an empty *file* /usr/X11R6 chflags schg /usr/X11R6 make it system-immutable /sbin/ldconfig -m /usr/local/lib (just to force the linker to re-read the dupes). Merge new stuf in the /usr/local/lib directory into the hints file As a bonus, the old apps you still have pointing to /usr/X11R6 But the app in question needs to get at /usr/compat/linux/usr/X11R6/ The app however looks for /usr/X11R6/lib/libXfoo.so.1. If both exist in base system and linux emulation, then the linker will hand it the first one it finds, which because of the /usr/X11R6 symlink to /usr/local will be the FreeBSD one. The lookup order for linux binaries is /compat/linux/foo first, then /foo if the former does not exist. So if /compat/linux/usr/X11R6 exists, then it is seen by linux binaries (similarly for files below this path). As far as I know, this file should be a directory, not a symlink. Moreover, the desired libXext.so.6 lives in that directory. It is a symlink pointing to another file in the same directory. If neither exist (or exist but are corrupted), then the linux binary will fall back to the bogus FreeBSD one in another search path. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
On Tuesday 13 May 2008 16:34:11 Glyn Millington wrote: > Tijl Coosemans <[EMAIL PROTECTED]> writes: >> On Tuesday 13 May 2008 10:14:54 Glyn Millington wrote: >>> FreeBSD 7.0 release, ports currently up-to-date >>> >>> >>> Trying to launch Linux Open Office 2.4 I get the following error >>> message >>> >>> >>> , >>> | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while >>> | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI >>> | invalid >>> ` >>> >>> Now I *think* that what it ought to load is >>> >>> /usr/compat/linux/usr/X11R6/lib/libXext.so.6 >>> >>> but it goes for the FreeBSD X extension lib instead. >>> >>> Can anyone help me to fix this? >> >> If /compat/linux/usr/local doesn't exist, perhaps making it a >> symlink to X11R6 does the trick. > > Spot on!!Many thanks :-) > > What I don't understand is why that works, when > /compat/linux/etc/ld.so.conf points at the right place in the very > first line! I suspect some OO executable or lib has some search paths hardcoded which the linker checks before using the ldconfig cache. If you want you could check this with: objdump -p | grep RPATH RPATH could be /usr/lib:/usr/local/lib:/usr/X11R6/lib for instance. Also, when a Linux program opens a file (i.e. libXext.so.6), FreeBSD first tries to find it under /compat/linux, then under /. So linker tries to open /usr/local/lib/libXext.so, but it didn't exist under /compat/linux so it got the FreeBSD libXext.so. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Tijl Coosemans <[EMAIL PROTECTED]> writes: > On Tuesday 13 May 2008 16:50:51 Glyn Millington wrote: >> Linking /compat/linux/usr/X11R6 to /compat/linux/usr/local got >> Openoffice running but reaplay is giving the same kind of error :-( > > Which error exactly? This baby (sorry - should have included it) [EMAIL PROTECTED]:~$ /usr/compat/linux/bin/sh realplay /usr/local/lib/RealPlayer/realplay.bin: error while loading shared libraries: /usr/local/lib/libgdk-x11-2.0.so.0: ELF file OS ABI invalid I'll bet it wants this one :-) /usr/compat/linux/usr/lib/libgdk-x11-2.0.so.0 and of course I have just linked /usr/compat/linux/usr/local to X11R6 lol Can I win on this one :-) atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
On Tuesday 13 May 2008 16:50:51 Glyn Millington wrote: > Linking /compat/linux/usr/X11R6 to /compat/linux/usr/local got > Openoffice running but reaplay is giving the same kind of error :-( Which error exactly? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Mel <[EMAIL PROTECTED]> writes: > On Tuesday 13 May 2008 15:48:58 Glyn Millington wrote: >> Mel <[EMAIL PROTECTED]> writes: >> > On Tuesday 13 May 2008 14:05:43 Glyn Millington wrote: >> >> Trying to launch Linux Open Office 2.4 I get the following error >> >> message , >> >> >> >> | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: >> >> | error while loading shared libraries: >> >> | /usr/local/lib/libXext.so.6: ELF file OS ABI invalid >> >> >> >> ` >> >> >> >> that include statement leads to /usr/X11R6 >> >> Wow - can I just check that I have this right before I do it?! >> >> > Best fix: >> > rm /usr/X11R6 >> >> get rid of /usr/X11R6, which on a system-wide basis is a link to /usr/local >> >> > touch /usr/X11R6 >> >> Create an empty *file* /usr/X11R6 >> >> > chflags schg /usr/X11R6 >> >> make it system-immutable >> >> > /sbin/ldconfig -m /usr/local/lib (just to force the linker to re-read the >> > dupes). >> >> Merge new stuf in the /usr/local/lib directory into the hints file >> >> > As a bonus, the old apps you still have pointing to /usr/X11R6 >> >> But the app in question needs to get at >> >> /usr/compat/linux/usr/X11R6/ > > The app however looks for /usr/X11R6/lib/libXfoo.so.1. If both exist in base > system and linux emulation, then the linker will hand it the first one it > finds, which because of the /usr/X11R6 symlink to /usr/local will be the > FreeBSD one. ok - got it. > And yes, Kris, this isn't the 'proper' way, but it's the way that works. I'd > be happy to know the proper way as all suggestions I found about 'fixing' > linux ldconfig setup generated bogus results (ie. fixed nothing) and this > fixed everything. Me too!! Linking /compat/linux/usr/X11R6 to /compat/linux/usr/local got Openoffice running but reaplay is giving the same kind of error :-( > I always suspected this to be because the linker look up is correct, but the > actual file is handed in the base system not in the /compat/linux chroot, but > I haven't bothered to verify that. OK - will await wisdom on this one :-) atb and thanks again Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Glyn Millington <[EMAIL PROTECTED]> writes: > Tijl Coosemans <[EMAIL PROTECTED]> writes: > >> On Tuesday 13 May 2008 10:14:54 Glyn Millington wrote: >>> FreeBSD 7.0 release, ports currently up-to-date >>> >>> >>> Trying to launch Linux Open Office 2.4 I get the following error message >>> >>> >>> , >>> | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while >>> | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI >>> | invalid >>> ` >>> >>> Now I *think* that what it ought to load is >>> >>> /usr/compat/linux/usr/X11R6/lib/libXext.so.6 >>> >>> but it goes for the FreeBSD X extension lib instead. >>> >>> Can anyone help me to fix this? >> >> If /compat/linux/usr/local doesn't exist, perhaps making it a symlink >> to X11R6 does the trick. > > Spot on!!Many thanks :-) Whoops - spoke to soon :-) Realplayer still doesn't get it! Thanks for OO though. atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Tijl Coosemans <[EMAIL PROTECTED]> writes: > On Tuesday 13 May 2008 10:14:54 Glyn Millington wrote: >> FreeBSD 7.0 release, ports currently up-to-date >> >> >> Trying to launch Linux Open Office 2.4 I get the following error message >> >> >> , >> | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while >> | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI >> | invalid >> ` >> >> Now I *think* that what it ought to load is >> >> /usr/compat/linux/usr/X11R6/lib/libXext.so.6 >> >> but it goes for the FreeBSD X extension lib instead. >> >> Can anyone help me to fix this? > > If /compat/linux/usr/local doesn't exist, perhaps making it a symlink > to X11R6 does the trick. Spot on!!Many thanks :-) What I don't understand is why that works, when /compat/linux/etc/ld.so.conf points at the right place in the very first line! , | include ld.so.conf.d/*.conf | /lib | /usr/lib | /usr/local/lib ` The only .conf file in ld.so.conf.d is xorg-x11-i386.conf which contains the line /usr/X11R6/lib Is ldconfig ignoring the first line? I'm grateful but puzzled - thanks again :-) atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
On Tuesday 13 May 2008 15:48:58 Glyn Millington wrote: > Mel <[EMAIL PROTECTED]> writes: > > On Tuesday 13 May 2008 14:05:43 Glyn Millington wrote: > >> Trying to launch Linux Open Office 2.4 I get the following error > >> message , > >> > >> | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: > >> | error while loading shared libraries: > >> | /usr/local/lib/libXext.so.6: ELF file OS ABI invalid > >> > >> ` > >> > >> that include statement leads to /usr/X11R6 > > Wow - can I just check that I have this right before I do it?! > > > Best fix: > > rm /usr/X11R6 > > get rid of /usr/X11R6, which on a system-wide basis is a link to /usr/local > > > touch /usr/X11R6 > > Create an empty *file* /usr/X11R6 > > > chflags schg /usr/X11R6 > > make it system-immutable > > > /sbin/ldconfig -m /usr/local/lib (just to force the linker to re-read the > > dupes). > > Merge new stuf in the /usr/local/lib directory into the hints file > > > As a bonus, the old apps you still have pointing to /usr/X11R6 > > But the app in question needs to get at > > /usr/compat/linux/usr/X11R6/ The app however looks for /usr/X11R6/lib/libXfoo.so.1. If both exist in base system and linux emulation, then the linker will hand it the first one it finds, which because of the /usr/X11R6 symlink to /usr/local will be the FreeBSD one. And yes, Kris, this isn't the 'proper' way, but it's the way that works. I'd be happy to know the proper way as all suggestions I found about 'fixing' linux ldconfig setup generated bogus results (ie. fixed nothing) and this fixed everything. I always suspected this to be because the linker look up is correct, but the actual file is handed in the base system not in the /compat/linux chroot, but I haven't bothered to verify that. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
On Tuesday 13 May 2008 10:14:54 Glyn Millington wrote: > FreeBSD 7.0 release, ports currently up-to-date > > > Trying to launch Linux Open Office 2.4 I get the following error message > > > , > | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while > | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI > | invalid > ` > > Now I *think* that what it ought to load is > > /usr/compat/linux/usr/X11R6/lib/libXext.so.6 > > but it goes for the FreeBSD X extension lib instead. > > Can anyone help me to fix this? If /compat/linux/usr/local doesn't exist, perhaps making it a symlink to X11R6 does the trick. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Glyn Millington wrote: Mel <[EMAIL PROTECTED]> writes: On Tuesday 13 May 2008 14:05:43 Glyn Millington wrote: Trying to launch Linux Open Office 2.4 I get the following error message , | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error | while loading shared libraries: /usr/local/lib/libXext.so.6: ELF | file OS ABI invalid ` that include statement leads to /usr/X11R6 Wow - can I just check that I have this right before I do it?! Best fix: rm /usr/X11R6 get rid of /usr/X11R6, which on a system-wide basis is a link to /usr/local Any suggestion that involves touching files outside of /compat/linux is wrong ;) Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
system for a couple of days while it builds. The Linux version was Did you try the 7-STABLE package? It will probably work on 7.0-RELEASE, too. ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/editors/openoffice.org-2.4.0_3.tbz ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Mel <[EMAIL PROTECTED]> writes: > On Tuesday 13 May 2008 14:05:43 Glyn Millington wrote: >> Trying to launch Linux Open Office 2.4 I get the following error >> message , >> >> | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error >> | while loading shared libraries: /usr/local/lib/libXext.so.6: ELF >> | file OS ABI invalid >> >> ` >> that include statement leads to /usr/X11R6 Wow - can I just check that I have this right before I do it?! > > Best fix: > rm /usr/X11R6 get rid of /usr/X11R6, which on a system-wide basis is a link to /usr/local > touch /usr/X11R6 Create an empty *file* /usr/X11R6 > chflags schg /usr/X11R6 make it system-immutable > /sbin/ldconfig -m /usr/local/lib (just to force the linker to re-read the > dupes). Merge new stuf in the /usr/local/lib directory into the hints file > As a bonus, the old apps you still have pointing to /usr/X11R6 But the app in question needs to get at /usr/compat/linux/usr/X11R6/ which is a directory contain a lot of libs - are you suggesting I remove it? Sorry if I'm being slow but want to be sure about this one! > will now complain and be exposed and anything that wants to install or > modify something in /usr/X11R6 will be exposed too. I've done this > about a week after I upgraded and it solved all the linux linker > problems and only one app I had compiled from source rather then using > a port, wasn't working anymore. Recompiled and no problemo. Many thanks atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
On Tuesday 13 May 2008 14:05:43 Glyn Millington wrote: > Kris Kennaway <[EMAIL PROTECTED]> writes: > > Glyn Millington wrote: > >> Kris Kennaway <[EMAIL PROTECTED]> writes: > >>> Glyn Millington wrote: > FreeBSD 7.0 release, ports currently up-to-date > Trying to launch Linux Open Office 2.4 I get the following error > message , > > | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error > | while loading shared libraries: /usr/local/lib/libXext.so.6: ELF > | file OS ABI invalid > > ` > Now I *think* that what it ought to load is > > /usr/compat/linux/usr/X11R6/lib/libXext.so.6 > but it goes for the FreeBSD X extension lib instead. > >>> > >>> kldload linux > >>> or build it into your kernel. > >> > >> Thanks Kris - trouble is its already there! > > > > No, that is not necessary. Next thing to check is that /usr/X11R6 is > > before /usr/local in your linux ldconfig search path. > > Yes, it is right where it should be > > $cat /usr/compat/linux/etc/ld.so.conf > > include ld.so.conf.d/*.conf > /lib > /usr/lib > /usr/local/lib > > > that include statement leads to /usr/X11R6 Best fix: rm /usr/X11R6 touch /usr/X11R6 chflags schg /usr/X11R6 /sbin/ldconfig -m /usr/local/lib (just to force the linker to re-read the dupes). As a bonus, the old apps you still have pointing to /usr/X11R6 will now complain and be exposed and anything that wants to install or modify something in /usr/X11R6 will be exposed too. I've done this about a week after I upgraded and it solved all the linux linker problems and only one app I had compiled from source rather then using a port, wasn't working anymore. Recompiled and no problemo. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Wojciech Puchar <[EMAIL PROTECTED]> writes: >> system for a couple of days while it builds. The Linux version was > > less than 16h on 1200Mhz CPU. LOL - maybe I exaggerated :-) But this one has a 900Mhz CPU, and this is the fastest I have available. atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
system for a couple of days while it builds. The Linux version was less than 16h on 1200Mhz CPU. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Wojciech Puchar <[EMAIL PROTECTED]> writes: >> (via rc.conf) >> >> Is it possible to use libmap.conf to persuade a Linbux binary to use a >> Linux library, or is that not the way to go? > > compile openoffice from ports. it works fine - natively. Thanks - yes it does, but it means tying up this by no means over-powered system for a couple of days while it builds. The Linux version was working nicely till sometime over the weekend. Then something happened - I probably upgraded a port which changed something I hadn't noticed. atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Kris Kennaway <[EMAIL PROTECTED]> writes: > Glyn Millington wrote: >> Kris Kennaway <[EMAIL PROTECTED]> writes: >> >>> Glyn Millington wrote: FreeBSD 7.0 release, ports currently up-to-date Trying to launch Linux Open Office 2.4 I get the following error message , | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI | invalid ` Now I *think* that what it ought to load is /usr/compat/linux/usr/X11R6/lib/libXext.so.6 but it goes for the FreeBSD X extension lib instead. >>> kldload linux >>> or build it into your kernel. >> >> Thanks Kris - trouble is its already there! >> > No, that is not necessary. Next thing to check is that /usr/X11R6 is > before /usr/local in your linux ldconfig search path. Yes, it is right where it should be $cat /usr/compat/linux/etc/ld.so.conf include ld.so.conf.d/*.conf /lib /usr/lib /usr/local/lib that include statement leads to /usr/X11R6 many thanks atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
(via rc.conf) Is it possible to use libmap.conf to persuade a Linbux binary to use a Linux library, or is that not the way to go? compile openoffice from ports. it works fine - natively. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Glyn Millington wrote: Kris Kennaway <[EMAIL PROTECTED]> writes: Glyn Millington wrote: FreeBSD 7.0 release, ports currently up-to-date Trying to launch Linux Open Office 2.4 I get the following error message , | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI | invalid ` Now I *think* that what it ought to load is /usr/compat/linux/usr/X11R6/lib/libXext.so.6 but it goes for the FreeBSD X extension lib instead. Can anyone help me to fix this? kldload linux or build it into your kernel. Thanks Kris - trouble is its already there! glynthebearded# kldload linux kldload: can't load linux: File exists (via rc.conf) Is it possible to use libmap.conf to persuade a Linbux binary to use a Linux library, or is that not the way to go? No, that is not necessary. Next thing to check is that /usr/X11R6 is before /usr/local in your linux ldconfig search path. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Kris Kennaway <[EMAIL PROTECTED]> writes: > Glyn Millington wrote: >> FreeBSD 7.0 release, ports currently up-to-date >> >> >> Trying to launch Linux Open Office 2.4 I get the following error message >> >> >> , >> | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while >> | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI >> | invalid >> ` >> >> Now I *think* that what it ought to load is >> >> /usr/compat/linux/usr/X11R6/lib/libXext.so.6 >> >> but it goes for the FreeBSD X extension lib instead. >> >> Can anyone help me to fix this? > > kldload linux > > or build it into your kernel. Thanks Kris - trouble is its already there! glynthebearded# kldload linux kldload: can't load linux: File exists (via rc.conf) Is it possible to use libmap.conf to persuade a Linbux binary to use a Linux library, or is that not the way to go? Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux compat library error: ELF file OS ABI invalid
Glyn Millington wrote: FreeBSD 7.0 release, ports currently up-to-date Trying to launch Linux Open Office 2.4 I get the following error message , | /usr/compat/linux/opt/openoffice.org2.4/program/soffice.bin: error while | loading shared libraries: /usr/local/lib/libXext.so.6: ELF file OS ABI | invalid ` Now I *think* that what it ought to load is /usr/compat/linux/usr/X11R6/lib/libXext.so.6 but it goes for the FreeBSD X extension lib instead. Can anyone help me to fix this? kldload linux or build it into your kernel. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"