Subject: pkg/9433: Squeak dose not run failed to link libX11.so.6.
To: None <gnats-bugs@gnats.netbsd.org>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: netbsd-bugs
Date: 02/16/2000 06:45:56
>Number:         9433
>Category:       pkg
>Synopsis:       Squeak dose not run failed to link libX11.so.6.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 16 06:45:00 2000
>Last-Modified:
>Originator:     Takahiro Kambe
>Organization:
	
>Release:        NetBSD-current 2000/2/15
>Environment:
	
System: NetBSD land.sky.yamashina.kyoto.jp 1.4S NetBSD 1.4S (LAND) #190: Wed Feb 16 08:24:47 JST 2000 taca@land.sky.yamashina.kyoto.jp:/usr/src/sys/arch/i386/compile/LAND i386


>Description:
	Squeak dose not run failed to link libX11.so.6.
>How-To-Repeat:
	Build and run squeak on NetBSD/i386 (ELF).

taca@land[53]:squeak 
Shared object "libX11.so.6" not found
taca@land[54]:ldd /usr/pkg/bin/squeak 
/usr/pkg/bin/squeak:
         -lX11.6 => not found
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lc.12 => /usr/lib/libc.so.12

>Fix:
	I don't know exact fix, but this change works for me.


--- conf/configure.orig	Tue Oct 19 01:25:13 1999
+++ conf/configure	Wed Feb 16 23:31:31 2000
@@ -1526,7 +1526,7 @@
 
   test ! -f /usr/include/X11/Intrinsic.h -a "$x_includes" != NONE && \
     INCS="-I${x_includes}"
-  test "$x_libraries" != NONE -a ! -z "$x_libraries" && LIBS="$LIBS -L${x_libraries}"
+  test "$x_libraries" != NONE -a ! -z "$x_libraries" && LIBS="$LIBS -R${x_libraries} -L${x_libraries}"
   echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
 echo "configure:1532: checking for XShmAttach in -lXext" >&5
 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`

>Audit-Trail:
>Unformatted: