Date: Sun, 1 Aug 1999 19:06:46 -0700 (PDT) From: "Joseph I. Davida" <jd@sargon.net> To: bugs@freebsd.org Subject: Linux compat libs Message-ID: <199908020206.TAA09317@sargon.net>
next in thread | raw e-mail | index | archive | help
The linux compatibility libs attemps to load other linux libs using an absolute path rather than traversing the LD_LIBRARY_PATH vector. I am running FreeBSD3.2, and tried to use the linux version of netscape 4.61: communicator-v461-us.x86-unknown-linux2.0.tar.gz I invoke netscape as follows: #!/bin/sh XNLSPATH=/usr/X11R6/lib/X11/nls XAPPLRESDIR=/usr/compat/linux/var/X11R6/lib/app-defaults XCMSDB=/dev/null MOZILLA_HOME=/usr/local/netscape-linux LD_LIBRARY_PATH=\ /usr/compat/linux/var/X11R6/lib:\ /usr/compat/linux/lib:\ /usr/compat/linux/usr/openwin/lib:\ /usr/compat/linux/usr/X11R6/lib:\ /usr/compat/linux/usr/lib:\ /usr/compat/linux/usr/i486-linuxaout/lib:\ /usr/lib:\ /usr/X11R6/lib:\ /usr/local/lib XKEYSYMDB=$MOZILLA_HOME/XKeysymDB CLASSPATH=$MOZILLA_HOME/java/classes:/usr/local/share/java/java export XKEYSYMDB XNLSPATH XAPPLRESDIR MOZILLA_HOME LD_LIBRARY_PATH \ CLASSPATH XCMSDB $MOZILLA_HOME/netscape $* -geometry 1150x985+0+0 & When I visit www.netscape.com, netscape crashes and dumps core. Running gdb on netscape: % gdb -e /usr/local/netscape-linux/netscape -c netscape.core GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd". Core was generated by `netscape'. Program terminated with signal 10, Bus error. /lib/ld-linux.so.1: No such file or directory. #0 0x28bf43c5 in ?? () from /usr/compat/linux/lib/libc.so.5 (gdb) quit As you can see, /usr/compat/linux/lib/libc.so.5 tried to load ld-linux.so.1 by specifying an absolute pathname, rather one prepended with /usr/compat/linux. Cheers, Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908020206.TAA09317>