NetBSD Problem Report #14833

Received: (qmail 11323 invoked from network); 4 Dec 2001 11:04:42 -0000
Message-Id: <200112041105.fB4B5q002740@brandenburg.cs.mu.OZ.AU>
Date: Tue, 4 Dec 2001 18:05:52 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.netbsd.org
Subject: net/SDL_net doesn't build
X-Send-Pr-Version: 3.95

>Number:         14833
>Category:       pkg
>Synopsis:       net/SDL_net doesn't build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 04 11:05:01 +0000 2001
>Closed-Date:    Fri Dec 21 22:58:21 +0000 2001
>Last-Modified:  Fri Dec 21 18:25:21 +0000 2012
>Originator:     Robert Elz
>Release:        NetBSD-current 20011127
>Organization:
	Prince of Songkla University
>Environment:

System: NetBSD fuchsia 1.5Y NetBSD 1.5Y (FUCHSIA) #2: Mon Nov 26 13:41:27 ICT 2001     kre@fuchsia:/usr/obj/sys/FUCHSIA i386


>Description:
	Unable to build net/SDL_net with current pkgsrc (with xpkgwedge
	installed, but I doubt that is relevant here).
>How-To-Repeat:
	cd pkgsrc/net/SDL_net
	make install

*** Could not run SDL test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding SDL or finding the wrong
*** version of SDL. If it is not finding SDL, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: *** SDL version 1.2.0 not found!
*** Error code 1

Note:
	fuchsia# pkg_info | grep SDL
	SDL-1.2.2           Simple DirectMedia Layer, a cross-platform multimedia library


	I saw a problem very similar to this a few days ago (may have
	even been the same thing), and analysed it a bit more.  The problem
	then had nothing whatever to do with LD_LIBRARY_PATH, or didn't
	look to have, but was related to attempting to link a program
	(as part of the configure script) that had no main() - no big
	surprise that it didn't work too well.   Didn't see that this time
	though...
>Fix:
>Release-Note:
>Audit-Trail:

From: Johnny Lam <jlam@jgrind.org>
To: kre@munnari.OZ.AU
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/14833: net/SDL_net doesn't build
Date: Tue, 4 Dec 2001 20:37:31 -0800

 On Tue, Dec 04, 2001 at 06:05:52PM +0700, kre@munnari.OZ.AU wrote:
 > 
 > *** Could not run SDL test program, checking why...
 > *** The test program compiled, but did not run. This usually means
 > *** that the run-time linker is not finding SDL or finding the wrong
 > *** version of SDL. If it is not finding SDL, you'll need to set your
 > *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
 > *** to the installed location  Also, make sure you have run ldconfig if that
 > *** is required on your system
 > ***
 > *** If you have an old version installed, it is best to remove it, although
 > *** you may also be able to get things to work by modifying LD_LIBRARY_PATH
 > configure: error: *** SDL version 1.2.0 not found!
 > *** Error code 1

 Could you show me the section of the config.log concerning finding the SDL
 libraries, produced by the configure script just before the error?

 	Thanks,

 	-- Johnny Lam <jlam@jgrind.org>

From: Robert Elz <kre@munnari.OZ.AU>
To: Johnny Lam <jlam@jgrind.org>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/14833: net/SDL_net doesn't build 
Date: Thu, 06 Dec 2001 20:52:14 +0700

     Date:        Tue, 4 Dec 2001 20:37:31 -0800
     From:        Johnny Lam <jlam@jgrind.org>
     Message-ID:  <20011204203731.A5286@c35.jgrind.org>

   | Could you show me the section of the config.log concerning finding the SDL
   | libraries, produced by the configure script just before the error?

 Logs sent under separate cover - not cc'd to gnats-bugs so they won't
 go into the PR database (unnecessary meaningless bloat).

 The essence of the problem seems to be (one of) the conftest.c program(s)
 run by configure, as ...

 fuchsia# cc -o conftest -g -O2 -I/usr/pkg/include -I/usr/pkg/include/SDL -D_REENTRANT   conftest.c  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/lib -lSDL -lpthread -lm -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lesd -laudiofile -lm -lossaudio -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXxf86dga
 fuchsia# echo $?
 0
 fuchsia# ./conftest
 Shared object "libX11.so.6" not found
 fuchsia# ldd conftest
 conftest:
          -lm.0 => /usr/lib/libm387.so.0
          -lm.0 => /usr/lib/libm.so.0
          -laudiofile.0 => /usr/pkg/lib/libaudiofile.so.0
          -lossaudio.0 => /usr/lib/libossaudio.so.0
          -lesd.2 => /usr/pkg/lib/libesd.so.2
          -lX11.6 => /usr/X11R6/lib/libX11.so.6
          -lXext.6 => /usr/X11R6/lib/libXext.so.6
          -lSDL.0 => /usr/pkg/lib/libSDL.so.0
          -lpthread.14 => /usr/pkg/lib/libpthread.so.14
          -lX11.6 => not found
          -lXext.6 => not found
          -lc.12 => /usr/lib/libc.so.12


 kre

State-Changed-From-To: open->feedback 
State-Changed-By: jlam 
State-Changed-When: Tue Dec 11 08:32:28 PST 2001 
State-Changed-Why:  
I've updated the devel/SDL package to include the appropriate -Wl,-R flags 
so that the X11 libraries may be found at run-time if `sdl-config --libs` 
is used.  Please update your SDL package and try rebuilding this package, 
and let me know if this fixes your problem.  Thanks! 
State-Changed-From-To: feedback->closed 
State-Changed-By: zuntum 
State-Changed-When: Fri Dec 21 14:56:24 PST 2001 
State-Changed-Why:  
devel/SDL fix makes SDL_net work for me, so I believe the fix is correct (I experienced the same problem as originator) 

>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.