Subject: pkg/8166: snd doesn't find X11 shared libraries when run on ELF systems
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 08/07/1999 09:39:21
>Number: 8166
>Category: pkg
>Synopsis: snd doesn't find X11 shared libraries when run on ELF systems
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager (NetBSD software packages system bug manager)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Aug 7 08:50:01 1999
>Last-Modified:
>Originator: Thilo Manske
>Organization:
Dies ist Thilos Unix Signature! Viel Spass damit.
>Release: doesn't matter
>Environment:
System: NetBSD WintelKiller 1.4I NetBSD 1.4I (WintelKiller) #154: Sat Aug 7 06:02:40 MEST 1999 thilo@Seti.HEH.Uni-Oldenburg.DE:/usr/src/sys/arch/i386/compile/WintelKiller i386
>Description:
snd isn't ELFified and at runtime it doesn't search ${X11BASE}/libs for
shared libaries
>How-To-Repeat:
run it on an ELF and get
Shared object "libMrm.so.1" not found
>Fix:
--- old.patch-ae Fri Aug 7 13:22:11 1998
+++ patch-ae Sat Aug 7 17:20:57 1999
@@ -10,7 +10,7 @@
+CFLAGS = -DXPM -DHAVE_OSS -I${X11BASE}/include -I${LOCALBASE}/include
+CFLAGS += -g
+
-+LIBS = -L${X11BASE}/lib -lMrm -lXm -lXpm -lXmu -lXt -lXext -lX11 -lm -lossaudio
++LIBS = -Wl,-L${X11BASE}/lib -Wl,-rpath,${X11BASE}/lib -lMrm -lXm -lXpm -lXmu -lXt -lXext -lX11 -lm -lossaudio
+CLM_HEADERS = cmus_prototypes.h cmus.h sound_types.h
+SND_HEADERS = snd.h snd-0.h snd-1.h snd-ufun.h snd-strings.h sndclm.h
+SND_X_HEADERS = snd-x0.h snd-x1.h
>Audit-Trail:
>Unformatted: