NetBSD Problem Report #9433

Received: (qmail 11281 invoked from network); 16 Feb 2000 14:42:16 -0000
Message-Id: <200002161442.XAA07557@land.sky.yamashina.kyoto.jp>
Date: Wed, 16 Feb 2000 23:42:05 +0900 (JST)
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
Reply-To: taca@sky.yamashina.kyoto.jp
To: gnats-bugs@gnats.netbsd.org
Subject: Squeak dose not run failed to link libX11.so.6.
X-Send-Pr-Version: 3.95

>Number:         9433
>Category:       pkg
>Synopsis:       Squeak dose not run failed to link libX11.so.6.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    dmcmahill
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 16 06:45:00 +0000 2000
>Closed-Date:    Wed Feb 16 22:03:22 +0000 2000
>Last-Modified:  Wed Feb 16 22:05:22 +0000 2000
>Originator:     Takahiro Kambe
>Release:        NetBSD-current 2000/2/15
>Organization:

>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_%'`

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->dmcmahill 
Responsible-Changed-By: dmcmahill 
Responsible-Changed-When: Wed Feb 16 07:59:33 PST 2000 
Responsible-Changed-Why:  
I'll work on this one.  Looks like there are a few other issues with 
this pkg that I will address as well (alpha issues and ELF issues) 
State-Changed-From-To: open->analyzed 
State-Changed-By: fredb 
State-Changed-When: Wed Feb 16 10:17:28 CST 2000 
State-Changed-Why:  
I believe I've fixed the problem with linking on ELF, and 
requested feedback from the submitter. I'm sure there are 
"other issues". Dan, it's all yours. :-) 
State-Changed-From-To: analyzed->closed 
State-Changed-By: dmcmahill 
State-Changed-When: Wed Feb 16 14:03:22 PST 2000 
State-Changed-Why:  
I committed changes which fix the other ELF issue (changed -rdynamic 
to -Wl,--export-dynamic). 
Also, I patched the configure script to use our CC instead of hardcoding 
DEC compiler and flags when on an alpha.  Also fixed some other 
#ifdef(__alpha__) places in the code where they were infering OSF from 
__alpha__ 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.