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]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
On Mon, 11 Feb 2008 19:11:32 +0100 (CET) Wojciech Puchar wrote: > > serafina# dmesg -a | grep -A1 ABI > > Additional ABI support: > > linux > > > > serafina# /etc/rc.d/abi restart > > Additional ABI support: linux. > > > magic starts here. sorry. :-) > > serafina# /compat/linux/bin/sh > > sh-3.00# ls > > ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF > > file OS ABI invalid I think the result is expected. By running /compat/linux/bin/sh you don't change much: - # /compat/linux/bin/sh sh-3.00# file `which ls` /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.0 (700055), dynamically linked (uses shared libs), FreeBSD-style, stripped sh-3.00# - Maybe you want to run: - # chroot /compat/linux /bin/sh sh-3.00# ls bin etc lib media mnt opt proc sbin selinux srv sys usr var sh-3.00# - If you want to do a linux developing you may concider installing linux_dist-gentoo. Linux_base is not good for it. 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: path problem? /compat/linux/bin/sh doesn't work!
Written by Steve Franks on 02/11/08 13:56>> > So my problem is that things are expecting libs in > /usr/compat/linux/lib instead of /usr/compat/linux/usr/lib, and when > they don't find it in linux/lib they go straight to the FreeBSD > version? > > So should I be fixing my path, or linking linux/usr/lib to linux/lib, or what? > > Steve > Please don't top-post. The crux of the problem, as I understand it, is that if the linuxulator tries to load /compat/linux/x/y/libz.so and can't find it, it then tries to load /x/y/libz.so, I'm not certain why. Ideally, your linux binaries would be linked correctly to their support libs. In lieu of that, symlinking missing libs can suffice. ___ 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: path problem? /compat/linux/bin/sh doesn't work!
Am 11.02.2008, 20:56 Uhr, schrieb Steve Franks <[EMAIL PROTECTED]>: So should I be fixing my path, or linking linux/usr/lib to linux/lib, or what? On Feb 11, 2008 12:06 PM, Reid Linnemann <[EMAIL PROTECTED]> wrote: work around this by linking /usr/compat/linux/usr/lib/librt.so.1 to the actual lib at /usr/compat/linux/lib/librt.so.1 ln -s /usr/compat/linux/lib/librt.so.1 /usr/compat/linux/usr/lib/librt.so.1 works for me. I am not sure though if and where-to to file a PR (let alone where to look for the source to patch). Just for the record: serafina# pkg_info | grep linux | awk '{print $1}' linux-expat-1.95.8 linux-fontconfig-2.2.3_7 linux-xorg-libs-6.8.2_5 linux_base-fc-4_10 Michael ___ 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: path problem? /compat/linux/bin/sh doesn't work!
So my problem is that things are expecting libs in /usr/compat/linux/lib instead of /usr/compat/linux/usr/lib, and when they don't find it in linux/lib they go straight to the FreeBSD version? So should I be fixing my path, or linking linux/usr/lib to linux/lib, or what? Steve On Feb 11, 2008 12:06 PM, Reid Linnemann <[EMAIL PROTECTED]> wrote: > Written by Michael Ross on 02/11/08 12:42>> > > > Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann <[EMAIL PROTECTED]>: > > > > > >> It is not finding the FreeBSD versions of libraries. There is no > >> /usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading > >> library. Try brandelf /usr/compat/linux/usr/lib/librt.so.1 to see if > >> it's branded. > > > > > > [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/usr/lib/librt.so.1 > > brandelf: error opening file /usr/compat/linux/usr/lib/librt.so.1: No > > such file or directory > > > > [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/lib/librt.so.1 > > File '/usr/compat/linux/lib/librt.so.1' is of brand 'SVR4' (0). > > > > [EMAIL PROTECTED] ~]$ brandelf /usr/lib/librt.so.1 > > File '/usr/lib/librt.so.1' is of brand 'FreeBSD' (9). > > > > > > Michael > > Okay, I need to proofread. /usr/compat/linux/lib/librt.so.1 is the right > path. I've never seen a librt in FreeBSD, but I guess I'm wrong. I've > dug a little deeper and seen other people work around this by linking > /usr/compat/linux/usr/lib/librt.so.1 to the actual lib at > > /usr/compat/linux/lib/librt.so.1 > -- Steve Franks, KE7BTE Staff Engineer La Palma Devices, LLC http://www.lapalmadevices.com (520) 312-0089 ___ 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: path problem? /compat/linux/bin/sh doesn't work!
Written by Michael Ross on 02/11/08 12:42>> > Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann <[EMAIL PROTECTED]>: > > >> It is not finding the FreeBSD versions of libraries. There is no >> /usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading >> library. Try brandelf /usr/compat/linux/usr/lib/librt.so.1 to see if >> it's branded. > > > [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/usr/lib/librt.so.1 > brandelf: error opening file /usr/compat/linux/usr/lib/librt.so.1: No > such file or directory > > [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/lib/librt.so.1 > File '/usr/compat/linux/lib/librt.so.1' is of brand 'SVR4' (0). > > [EMAIL PROTECTED] ~]$ brandelf /usr/lib/librt.so.1 > File '/usr/lib/librt.so.1' is of brand 'FreeBSD' (9). > > > Michael Okay, I need to proofread. /usr/compat/linux/lib/librt.so.1 is the right path. I've never seen a librt in FreeBSD, but I guess I'm wrong. I've dug a little deeper and seen other people work around this by linking /usr/compat/linux/usr/lib/librt.so.1 to the actual lib at /usr/compat/linux/lib/librt.so.1 ___ 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: path problem? /compat/linux/bin/sh doesn't work!
Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann <[EMAIL PROTECTED]>: It is not finding the FreeBSD versions of libraries. There is no /usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading library. Try brandelf /usr/compat/linux/usr/lib/librt.so.1 to see if it's branded. [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/usr/lib/librt.so.1 brandelf: error opening file /usr/compat/linux/usr/lib/librt.so.1: No such file or directory [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/lib/librt.so.1 File '/usr/compat/linux/lib/librt.so.1' is of brand 'SVR4' (0). [EMAIL PROTECTED] ~]$ brandelf /usr/lib/librt.so.1 File '/usr/lib/librt.so.1' is of brand 'FreeBSD' (9). Michael ___ 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: path problem? /compat/linux/bin/sh doesn't work!
Written by Steve Franks on 02/11/08 12:11>> > I think my problem lies elsewhere: linux & abi started, but no > difference! I have the linux .so files right in compat/linux/usr/lib, > but it always finds the freeBSD versions first! > > Steve > > sh-3.00$ kldstat > Id Refs AddressSize Name > 1 19 0xc040 926ed4 kernel > 21 0xc0d27000 5a74 snd_t4dwave.ko > 32 0xc0d2d000 4a5acsound.ko > 41 0xc0d78000 22c98radeon.ko > 52 0xc0d9b000 10e98drm.ko > 61 0xc0dac000 6a1c4acpi.ko > 71 0xc304a000 7000 linprocfs.ko > 81 0xc3051000 22000linux.ko > sh-3.00$ sudo /etc/rc.d/abi start > Additional ABI support: linux. > sh-3.00$ ls > ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF > file OS ABI invalid It is not finding the FreeBSD versions of libraries. There is no /usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading library. Try brandelf /usr/compat/linux/usr/lib/librt.so.1 to see if it's branded. ___ 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: path problem? /compat/linux/bin/sh doesn't work!
serafina# dmesg -a | grep -A1 ABI Additional ABI support: linux serafina# /etc/rc.d/abi restart Additional ABI support: linux. magic starts here. sorry. serafina# /compat/linux/bin/sh sh-3.00# ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid Michael ___ 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: path problem? /compat/linux/bin/sh doesn't work!
I think my problem lies elsewhere: linux & abi started, but no difference! I have the linux .so files right in compat/linux/usr/lib, but it always finds the freeBSD versions first! Steve sh-3.00$ kldstat Id Refs AddressSize Name 1 19 0xc040 926ed4 kernel 21 0xc0d27000 5a74 snd_t4dwave.ko 32 0xc0d2d000 4a5acsound.ko 41 0xc0d78000 22c98radeon.ko 52 0xc0d9b000 10e98drm.ko 61 0xc0dac000 6a1c4acpi.ko 71 0xc304a000 7000 linprocfs.ko 81 0xc3051000 22000linux.ko sh-3.00$ sudo /etc/rc.d/abi start Additional ABI support: linux. sh-3.00$ ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid ___ 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: path problem? /compat/linux/bin/sh doesn't work!
Am 11.02.2008, 18:53 Uhr, schrieb Wojciech Puchar <[EMAIL PROTECTED]>: if not set it and rerun /etc/rc.d/abi serafina# kldload linux serafina# /etc/rc.d/abi start Additional ABI support:. should be Additional ABI support:linux. you miss linux_enable="YES" in rc.conf If I linux_enable in rc.conf, the ABI linux support is there. - is it unreasonable to assume it _should_ be there if I kldload the module and restart abi afterwards? - Nevertheless: serafina# grep linux_enable /etc/rc.conf linux_enable="YES" serafina# dmesg -a | grep -A1 ABI Additional ABI support: linux serafina# /etc/rc.d/abi restart Additional ABI support: linux. serafina# /compat/linux/bin/sh sh-3.00# ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid Michael ___ 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: path problem? /compat/linux/bin/sh doesn't work!
if not set it and rerun /etc/rc.d/abi serafina# kldload linux serafina# /etc/rc.d/abi start Additional ABI support:. should be Additional ABI support:linux. you miss linux_enable="YES" in rc.conf ___ 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: path problem? /compat/linux/bin/sh doesn't work!
Am 11.02.2008, 18:20 Uhr, schrieb Wojciech Puchar <[EMAIL PROTECTED]>: did you have linux_enable="YES" in your rc.conf if not set it and rerun /etc/rc.d/abi serafina# kldload linux serafina# /etc/rc.d/abi start Additional ABI support:. serafina# /compat/linux/bin/sh sh-3.00# ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid sh-3.00# uname -a Linux serafina.local 2.4.2 FreeBSD 7.0-PRERELEASE #0: Fri Feb 8 21:57:13 CET 2008 i686 i686 i386 GNU/Linux serafina# locate -d: librt.so.1 /usr/compat/linux/lib/librt.so.1 /usr/compat/linux/lib/obsolete/linuxthreads/librt.so.1 /usr/lib/librt.so.1 /usr/obj/usr/src/lib/librt/librt.so.1 /usr/obj/usr/src/tmp/usr/lib/librt.so.1 Michael ___ 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: path problem? /compat/linux/bin/sh doesn't work!
sh-3.00$ ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid sh-3.00$ Sothat don't seem right. How do I get /compat/linux/bin/sh to work right? New .shrc file? Something I missed? [EMAIL PROTECTED] ~]$ /compat/linux/bin/sh sh-3.00$ ls b compat dvd etc libexec mnt mnt4 proc sbin usr bin COPYRIGHT dvd2 home lost+found mnt2 NOBACKUP razor-agent.log sys var boot deventropy lib media mnt3 pen root tmp zip sh-3.00$ /compat/linux/bin/ls b compat dvd etc libexec mnt mnt4 proc sbin usr bin COPYRIGHT dvd2 home lost+found mnt2 NOBACKUP razor-agent.log sys var boot deventropy lib media mnt3 pen root tmp zip looks ok on my system. sh works on yours - as you were able to put a command. sh-3.00$ ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid means that your /compat/linux/lib/librt.so.1 is missing or ldconfig on linux subdirs not done. did you have linux_enable="YES" in your rc.conf if not set it and rerun /etc/rc.d/abi ___ 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 and freebsd root
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Lord Sent: 30 juillet 2007 15:58 To: freebsd-questions@freebsd.org Subject: Linux Compat and freebsd root Hi, When I start a deamon running under linux emulation, the root of the filesystem '/' seems to be in fact '/usr/compat/linux' Is there a way to mount something like "/freebsd" pointing to the real filesystem ? If so, where would I put the mount command so that it is loaded when the deamon starts ? Thanks ~~ Cancel my last, I did a symlink and it worked great. Sorry to bother :) ___ 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: problems installing rpm, bunch of .so's missing
On Tue, 27 Mar 2007 15:56:04 -0700 Steve Franks wrote: > So, first time I've ever messed with linux compatibility. This is > about where I'm at: > [EMAIL PROTECTED] ~]$ sudo rpm -i picasa-2.2.2820-5.i386.rpm > error: failed dependencies: >/bin/bash is needed by picasa-2.2.2820-5 >ld-linux.so.2 is needed by picasa-2.2.2820-5 >libICE.so.6 is needed by picasa-2.2.2820-5 >libSM.so.6 is needed by picasa-2.2.2820-5 >libX11.so.6 is needed by picasa-2.2.2820-5 >libXext.so.6 is needed by picasa-2.2.2820-5 >libXi.so.6 is needed by picasa-2.2.2820-5 >libXmu.so.6 is needed by picasa-2.2.2820-5 >libXpm.so.4 is needed by picasa-2.2.2820-5 >libXt.so.6 is needed by picasa-2.2.2820-5 >libc.so.6 is needed by picasa-2.2.2820-5 >libc.so.6(GLIBC_2.1) is needed by picasa-2.2.2820-5 >libdl.so.2 is needed by picasa-2.2.2820-5 >libm.so.6 is needed by picasa-2.2.2820-5 >libutil.so.1 is needed by picasa-2.2.2820-5 >/bin/sh is needed by picasa-2.2.2820-5 >/bin/sh is needed by picasa-2.2.2820-5 >/bin/sh is needed by picasa-2.2.2820-5 >/bin/sh is needed by picasa-2.2.2820-5 > [EMAIL PROTECTED] ~]$ > Note that I've got: > [EMAIL PROTECTED] ~]$ pkg_info > ... > linux-expat-1.95.8 Linux/i386 binary port of Expat XML-parsing library > linux-fontconfig-2.2.3_5 Linux/i386 binary of Fontconfig > linux-xorg-libs-6.8.2_5 Xorg libraries, linux binaries > linux_base-fc-4_9 Base set of packages needed in Linux mode (for i386/amd64) > ... > [EMAIL PROTECTED] ~]$ ATM the best place to read is /usr/ports/UPDATING: - 20060616: AFFECTS: users of emulation/linux_base-* - You may skip suggestions how to upgrade from earlier versions and pay attention how to override difficulties. > Do we have a handbook page about getting linuz compatibility to actually work? Well, you may initiate the process. Write down some paragraphs, show them at [EMAIL PROTECTED] Somebody may help, etc... BTW, freebsd-emulation@ is a better place to continue the discussion. CC'ing to it, please, remove questions@ on a reply. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ 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
On Tue, Feb 27, 2007 at 11:14:37PM -0500, Chris Hill wrote: > On Tue, 27 Feb 2007, Jerry McAllister wrote: > > >On Tue, Feb 27, 2007 at 12:49:07PM -0900, Peter A. Giessel wrote: > > > >>On 2007/02/27 12:24, Jerry seems to have typed: > >>>Am I missing something, or is this now just a standard part of > >>>the base?I rummaged through the Release notes and didn't > >>>see anything mentioned. > >> > >>Did you try the handbook? > >>http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-lbc-install.html > > > >Maybe I didn't ask my question well. What I meant to ask is - is this > >a change that I missed somewhere. I used to get asked during the > >installation process for a yes/no and I did not see it this time. > > You are very diplomatic. > > Last time I ran sysinstall - installing a new system about a month ago, > in late January 2007 - it *did* ask me the Linux question. This was > probably from the 6.1R CD set. Yes, I think I remember seeing it during a 6.1 install, though the last one of those I did was several months ago. > > I think that got some runtime libraries installed along with the > >linux_enable="YES" plunked in the rc.conf for me. > > Did you run sysinstall after installing a working system, or was this a > new install on bare hardware? Well, sort of bare hardware. I wiped out and overwrote a Suse installation that came with the machine (a Dell 2950 with Perc I raid). > >I am aware that I can do it myself later - say I had said no during > >sysinstall or whatever. > > Not everyone bothers to read your entire message throughly. Been there. Yah, I miss parts of people's posts in the rush to respond often enough too. jerry > > -- > Chris Hill [EMAIL PROTECTED] > ** [ Busy Expunging <|> ] ___ 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
On Tue, 27 Feb 2007, Jerry McAllister wrote: On Tue, Feb 27, 2007 at 12:49:07PM -0900, Peter A. Giessel wrote: On 2007/02/27 12:24, Jerry seems to have typed: Am I missing something, or is this now just a standard part of the base?I rummaged through the Release notes and didn't see anything mentioned. Did you try the handbook? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-lbc-install.html Maybe I didn't ask my question well. What I meant to ask is - is this a change that I missed somewhere. I used to get asked during the installation process for a yes/no and I did not see it this time. You are very diplomatic. Last time I ran sysinstall - installing a new system about a month ago, in late January 2007 - it *did* ask me the Linux question. This was probably from the 6.1R CD set. I think that got some runtime libraries installed along with the linux_enable="YES" plunked in the rc.conf for me. Did you run sysinstall after installing a working system, or was this a new install on bare hardware? I am aware that I can do it myself later - say I had said no during sysinstall or whatever. Not everyone bothers to read your entire message throughly. Been there. -- Chris Hill [EMAIL PROTECTED] ** [ Busy Expunging <|> ] ___ 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
On Tue, Feb 27, 2007 at 12:49:07PM -0900, Peter A. Giessel wrote: > On 2007/02/27 12:24, Jerry seems to have typed: > > Am I missing something, or is this now just a standard part of > > the base?I rummaged through the Release notes and didn't > > see anything mentioned. > > Did you try the handbook? > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-lbc-install.html Maybe I didn't ask my question well. What I meant to ask is - is this a change that I missed somewhere. I used to get asked during the installation process for a yes/no and I did not see it this time. I think that got some runtime libraries installed along with the linux_enable="YES" plunked in the rc.conf for me. I am aware that I can do it myself later - say I had said no during sysinstall or whatever. Anway, I didn't see it mentioned that this question was removed from sysinstall and I wondered if I missed something - either during the install or in the documentation somewhere. jerry ___ 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
Jerry wrote: Hi, I just did a 6.2 scratch install and missed one thing. I am sure I remember from previous version installs that it asks if I want to install the Linux Compatibility stuff. But, this got all the way done without mentioning it at all. I normally check the All selection on these boxes. I went back and looked and didn't notice any additional place to check this. Am I missing something, or is this now just a standard part of the base?I rummaged through the Release notes and didn't see anything mentioned. jerry You'll still need to kldload linux and install a base from ports as per usual. Ta, J ___ 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
On 2007/02/27 12:24, Jerry seems to have typed: > Am I missing something, or is this now just a standard part of > the base?I rummaged through the Release notes and didn't > see anything mentioned. Did you try the handbook? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-lbc-install.html ___ 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 - LIBSTDC++.SO.5 - Call Of Duty
On Sat, Feb 19, 2005 at 09:24:19AM -0700, Nick Pavlica wrote: > All, > I'm trying to get the Call of Duty Dedicated server running on > FreeBSD 5.3. To do get an error when I run the daemon which is caused > by issue below. Are there compatibility libs in the ports collection? > If not should I use the libs from this link? If so where to I put > them? You need a newer version of linux_base. I recommend linux_base-rh9. After upgrading that, you'll probably need to install linux-XFree86-libs as they are no longer a part of linux_base. > > Thanks! > --Nick > > - > IF YOU HAVE A PROBLEM WITH "LIBSTDC++.SO.5" ... > > If you are reading this, it's probably because you tried to start your Linux >server and saw this message: > > ./coduo_lnxded: error while loading shared libraries: libstdc++.so.5: > cannot open shared object file: No such file or directory > > COD:UO is a C++ program built with gcc 3.2.3, which means it needs a > system library specific to gcc 3.2. Older Linux systems won't have > this installed, and we're starting to see newer Linux distributions that > don't have this either, since they are supplying an incompatible > gcc 3.4 version. The good news is that you can drop the needed library > into your system without breaking anything else. > > Here is the library you need, if your Linux distribution doesn't supply it: > http://icculus.org/updates/cod/gcc3-libs.tar.bz2 > > You want to unpack that somewhere that the dynamic linker will see it > (if you are sure it won't overwrite any files, you can even use /lib). > --- > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C ___ 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: "/lib/libc.so.6: version `GLIBC_2.1.3' not found"
David Gerard ([EMAIL PROTECTED]) [030606 07:18]: > [EMAIL PROTECTED]:~/install $ ./install > Installation starting, please be patient ... > ./setup: /lib/libc.so.6: version `GLIBC_2.1.3' not found (required by ./setup) > Installation Completed > [EMAIL PROTECTED]:~/install $ ./setup > ./setup: /lib/libc.so.6: version `GLIBC_2.1.3' not found (required by ./setup) > [EMAIL PROTECTED]:~/install $ > So. What do I need to install or do to my Linux compat so I don't get this > error? Remember that this is FreeBSD 4.6.2, and it works fine on FreeBSD 4.8. Turns out I had linux_base-6 and not linux_base-7. Just downloaded and added linux_base-7.1_3.tgz and all is well :-) - d. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat and rpm...
doing a --noscripts sorted it out cheers, ajt. On Mon, 2002-11-18 at 15:17, Andrew Thomson wrote: > any tips on why this ain't working? > > athomson# pkg_info | grep linux > linux-sun-jdk-1.3.1.05_1 Sun Java Development Kit 1.3 for Linux > linux_base-7.1_1The base set of packages needed in Linux mode > > athomson# linux > Linux driver already loaded > > athomson# ls > sybase-11.9.2Docs > sybase-openclient-11.1.1-2.i386.rpm > sybase-ase-11.9.2-1.i386.rpmsybase-repsrv-12.0-1.i386.rpm > sybase-common-11.9.2-2.i386.rpm sybase-repsrvmgr-12.0-1.i386.rpm > sybase-monserver-11.9.2-3.i386.rpm > sybase-sqlremote-6.0.2-1.i386.rpm > > athomson# rpm -ivh --ignoreos --nodeps --root /compat/linux/ > sybase-common-11.9.2-2.i386.rpm > > athomson# ls /compat/linux/opt/* > ls: No match. > > FreeBSD 4.7-RC #7: Mon Nov 11 16:18:56 EST 2002 > > thanks, > > ajt. > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message