From: Rafael L. <lab...@ps...> - 2003-03-28 10:03:18
|
* Alan W. Irwin <ir...@be...> [2003-03-27 20:37]: > So it looks like the X libraries are not officially installed as part > of the default library path on netbsd! However, their X applications > must be linked with rpath because we have > > [irwin@sparky driversd]$ ldd /usr/X11R6/bin/xman > /usr/X11R6/bin/xman: > -lX11.6 => /usr/X11R6/lib/libX11.so.6 > -lICE.6 => /usr/X11R6/lib/libICE.so.6 > -lSM.6 => /usr/X11R6/lib/libSM.so.6 > -lXt.6 => /usr/X11R6/lib/libXt.so.6 > -lXext.6 => /usr/X11R6/lib/libXext.so.6 > -lXmu.6 => /usr/X11R6/lib/libXmu.so.6 > -lXaw.6 => /usr/X11R6/lib/libXaw.so.6 > -lc.12 => /usr/lib/libc.so.12 > > In contrast to the situation for /usr/X11R6/lib, everything in > /usr/lib and /usr/pkg/lib seems to be on the default library path, e.g., > > [irwin@sparky driversd]$ ldd gd.so > gd.so: > -lm.0 => /usr/lib/libm.so.0 > -lcsa.0 => /home/irwin/plplot_install/lib/libcsa.so.0 > -lplplotd.8 => /home/irwin/plplot_install/lib/libplplotd.so.8 > -lz.0 => /usr/lib/libz.so.0 > -lpng.3 => /usr/pkg/lib/libpng.so.3 > -ljpeg.62 => /usr/pkg/lib/libjpeg.so.62 > -lintl.0 => /usr/lib/libintl.so.0 > -lttf.4 => /usr/pkg/lib/libttf.so.4 > -lgd.1 => /usr/pkg/lib/libgd.so.1 > > > I don't quite know the best way to handle this X library path problem since > I don't know whether it is peculiar to netbsd or not. My own feeling is > netbsd is broken in this respect; Yes, for sure it is. If /usr/X11R6/lib is not in /etc/ld.so.conf (or whichever file is used in netbsd), then the system is broken. > certainly under Linux if you install a big set of packages (such as the X > set) you make darn sure the libraries are accessible with ldconfig or > whatever, Indeed: in Debian, this is done in the postinst script of package xlibs: $ fgrep ld.so /var/lib/dpkg/info/xlibs* /var/lib/dpkg/info/xlibs.postinst:if ! grep -qs ^/usr/X11R6/lib\$ /etc/ld.so.conf; then /var/lib/dpkg/info/xlibs.postinst: echo /usr/X11R6/lib >> /etc/ld.so.conf > and I assume the rest of the unices would do this as well. Hopefully! > For now, I am just willing to set LD_LOAD_LIBRARY_PATH by hand before the > netbsd build unless and until this problem shows up on another Unix system. > I think that basically resolves that issue. Yes, and we should document this somewhere. -- Rafael |