Cant compile SDL programs, SDL version 1.2.0 not found

I did the standard ./configure , make , make install to install it and it
worked fine, no errors. I also did a ldconfig, to ensure that the libs were
added to the cache.

I then went to compile the test programs in /usr/src/lib/SDL-1.2.2/test
did a ./configure which gave me the following error

checking for IceConnectionNumber in -lICE… yes
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0… no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log for
the
*** exact error that occured. This usually means SDL was incorrectly
installed
*** or that you have moved SDL since it was installed. In the latter case,
you
*** may want to edit the sdl-config script: /usr/local/bin/sdl-config
configure: error: *** SDL version 1.2.0 not found!

I then read through most all the documentation I could find with no luck. As
the FAQ requested here is the output of…

bash-2.05# which sdl-config
/usr/local/bin/sdl-config

bash-2.05# sdl-config --version
1.2.2

bash-2.05# locate libSDL
/home/backup/src/SDL-1.2.2/src/.libs/libSDL-1.2.so.0
/home/backup/src/SDL-1.2.2/src/.libs/libSDL-1.2.so.0.0.2
/home/backup/src/SDL-1.2.2/src/.libs/libSDL.a
/home/backup/src/SDL-1.2.2/src/.libs/libSDL.la
/home/backup/src/SDL-1.2.2/src/.libs/libSDL.lai
/home/backup/src/SDL-1.2.2/src/.libs/libSDL.so
/home/backup/src/SDL-1.2.2/src/libSDL.la
/home/backup/src/SDL-1.2.2/src/main/libSDLmain.a
/home/backup/src/SDL_image-1.2.0/.libs/libSDL_image-1.2.so.0
/home/backup/src/SDL_image-1.2.0/.libs/libSDL_image-1.2.so.0.0.0
/home/backup/src/SDL_image-1.2.0/.libs/libSDL_image.a
/home/backup/src/SDL_image-1.2.0/.libs/libSDL_image.la
/home/backup/src/SDL_image-1.2.0/.libs/libSDL_image.lai
/home/backup/src/SDL_image-1.2.0/.libs/libSDL_image.so
/home/backup/src/SDL_image-1.2.0/libSDL_image.la
/usr/local/lib/libSDL-1.2.so.0
/usr/local/lib/libSDL-1.2.so.0.0.2
/usr/local/lib/libSDL.a
/usr/local/lib/libSDL.la
/usr/local/lib/libSDL.so
/usr/local/lib/libSDLmain.a
/usr/src/lib/SDL-1.2.2/src/.libs/libSDL-1.2.so.0
/usr/src/lib/SDL-1.2.2/src/.libs/libSDL-1.2.so.0.0.2
/usr/src/lib/SDL-1.2.2/src/.libs/libSDL.a
/usr/src/lib/SDL-1.2.2/src/.libs/libSDL.la
/usr/src/lib/SDL-1.2.2/src/.libs/libSDL.lai
/usr/src/lib/SDL-1.2.2/src/.libs/libSDL.so
/usr/src/lib/SDL-1.2.2/src/libSDL.la
/usr/src/lib/SDL-1.2.2/src/main/libSDLmain.a

bash-2.05# tail config.log
#include “confdefs.h”

  #include <sys/types.h>
  #include <sys/sem.h>

int main() {

  union semun t;

; return 0; }

Thanks for your help :slight_smile: I want to start using this!! :)_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Did you have the line /usr/local/lib added on your /etc/ld.so.conf?, if
not, add it and run ldconfig again. It should solve the problem.

Greettings.
Ernesto.

This seems familiar… heh

I did the standard ./configure , make , make install to install it and
it worked fine, no errors. I also did a ldconfig, to ensure that the
libs were added to the cache.

I then went to compile the test programs in /usr/src/lib/SDL-1.2.2/test
did a ./configure which gave me the following error

Did you install SDL and/or the test programs as root?

checking for IceConnectionNumber in -lICE… yes
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0… no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log
^^^^^^^^^^
Examine this file. I’m suspecting that it contains something along the
lines “ld couldn’t find libX11.so.6…” etc. (Or possibly some other
"can’t find XXX" errors - probably the same cause.)

If so, check the permissions of ld.so.conf - if it’s not readable for
ordinary users, you’ll have to be root to link with anything that isn’t
in the library paths built into ld. (The higher security settings on
Mandrake seem to do that kind of stuff.)

If that’s it, you’ll have to change the system security settings, or
manually change the permissions for the files needed to link SDL
applications. (You’ll have to live with the risk of other users reading
your system’s ld.so.conf, I guess. :wink:

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -'On Monday 03 September 2001 21:18, Entelin Hightree wrote:

yes this is my ld.so.conf

/usr/lib
/usr/local/lib
/usr/X11R6/lib
/usr/i386-slackware-linux/lib
/opt/gnome/lib
/usr/openwin/lib>From: Ernesto Domato

Reply-To: sdl at libsdl.org
To:
Subject: Re: [SDL] Cant compile SDL programs, SDL version 1.2.0 not found
Date: Mon, 3 Sep 2001 14:39:57 -0500 (COT)
MIME-Version: 1.0
Received: from [216.174.195.192] by hotmail.com (3.2) with ESMTP id
MHotMailBD5D2895006140043159D8AEC3C08E030; Mon, 03 Sep 2001 12:44:21 -0700
Received: from localhost.localdomain ([127.0.0.1]
helo=twomix.devolution.com)by twomix.devolution.com with esmtp (Exim 3.22
#2)id 15dzda-0004nd-00; Mon, 03 Sep 2001 12:44:02 -0700
Received: from [200.47.174.139] (helo=geek-bunker.hn.org)by
twomix.devolution.com with esmtp (Exim 3.22 #2)id 15dzZ7-0004m0-00for
sdl at libsdl.org; Mon, 03 Sep 2001 12:39:25 -0700
Received: by geek-bunker.hn.org (Postfix, from userid 1004)id 2766E575;
Mon, 3 Sep 2001 14:39:57 -0500 (COT)
Received: from localhost (localhost [127.0.0.1])by geek-bunker.hn.org
(Postfix) with ESMTP id 179C856Bfor ; Mon, 3 Sep 2001
14:39:57 -0500 (COT)
From sdl-admin at libsdl.org Mon, 03 Sep 2001 12:44:58 -0700
In-Reply-To:
Message-ID: <20010903143835.H22812-100000 at geek-bunker.hn.org>
Sender: sdl-admin at libsdl.org
Errors-To: sdl-admin at libsdl.org
X-BeenThere: sdl at libsdl.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:sdl-request at libsdl.org?subject=help>
List-Post: <mailto:sdl at libsdl.org>
List-Subscribe:
http://www.libsdl.org/mailman/listinfo/sdl,<mailto:sdl-request at libsdl.org?subject=subscribe>
List-Id: A list for developers using the SDL library. <sdl.libsdl.org>
List-Unsubscribe:
http://www.libsdl.org/mailman/listinfo/sdl,<mailto:sdl-request at libsdl.org?subject=unsubscribe>
List-Archive: http://www.libsdl.org/pipermail/sdl/
X-Original-Date: Mon, 3 Sep 2001 14:39:57 -0500 (COT)

Did you have the line /usr/local/lib added on your /etc/ld.so.conf?, if
not, add it and run ldconfig again. It should solve the problem.

Greettings.
Ernesto.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Thanks for your help

ld.so.conf is readable by ordinary users, however I was root when configure
ing and make ing. Here is a copy of part of config.log that I thought looked
suspissios, but I dont know exactly what it needs… :stuck_out_tongue:

/usr/i386-slackware-linux/bin/ld: warning: libartsc.so.0, needed by
/usr/local/l
ib/libSDL.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libSDL.so: undefined reference to arts_stream_get' /usr/local/lib/libSDL.so: undefined reference toarts_init’
/usr/local/lib/libSDL.so: undefined reference to arts_play_stream' /usr/local/lib/libSDL.so: undefined reference toarts_stream_set’
/usr/local/lib/libSDL.so: undefined reference to arts_close_stream' /usr/local/lib/libSDL.so: undefined reference toarts_write’
collect2: ld returned 1 exit status
configure: failed program was:
#line 2183 “configure”
#include “confdefs.h”>From: David Olofson <david.olofson at reologica.se>

Reply-To: sdl at libsdl.org
To: sdl at libsdl.org
Subject: Re: [SDL] Cant compile SDL programs, SDL version 1.2.0 not found
Date: Mon, 3 Sep 2001 21:46:53 +0200
MIME-Version: 1.0
Received: from [216.174.195.192] by hotmail.com (3.2) with ESMTP id
MHotMailBD5D28E200A7400438A1D8AEC3C08EC90; Mon, 03 Sep 2001 12:45:39 -0700
Received: from localhost.localdomain ([127.0.0.1]
helo=twomix.devolution.com)by twomix.devolution.com with esmtp (Exim 3.22
#2)id 15dzeX-0004p6-00; Mon, 03 Sep 2001 12:45:01 -0700
Received: from [62.20.1.135] (helo=mail.space2u.com)by
twomix.devolution.com with esmtp (Exim 3.22 #2)id 15dzeB-0004oY-00for
sdl at libsdl.org; Mon, 03 Sep 2001 12:44:39 -0700
Received: from cutangle.admeo.se ([212.162.175.15])by mail.space2u.com
(8.11.6/8.11.6) with SMTP id f83Jjf027143for ; Mon, 3 Sep
2001 21:45:41 +0200
From sdl-admin at libsdl.org Mon, 03 Sep 2001 12:47:00 -0700
Organization: Reologica Instruments AB
X-Mailer: KMail [version 1.2]
References:
In-Reply-To:
Message-Id: <01090321465302.02564 at cutangle.admeo.se>
Sender: sdl-admin at libsdl.org
Errors-To: sdl-admin at libsdl.org
X-BeenThere: sdl at libsdl.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:sdl-request at libsdl.org?subject=help>
List-Post: <mailto:sdl at libsdl.org>
List-Subscribe:
http://www.libsdl.org/mailman/listinfo/sdl,<mailto:sdl-request at libsdl.org?subject=subscribe>
List-Id: A list for developers using the SDL library. <sdl.libsdl.org>
List-Unsubscribe:
http://www.libsdl.org/mailman/listinfo/sdl,<mailto:sdl-request at libsdl.org?subject=unsubscribe>
List-Archive: http://www.libsdl.org/pipermail/sdl/
X-Original-Date: Mon, 3 Sep 2001 21:46:53 +0200

This seems familiar… heh

On Monday 03 September 2001 21:18, Entelin Hightree wrote:

I did the standard ./configure , make , make install to install it and
it worked fine, no errors. I also did a ldconfig, to ensure that the
libs were added to the cache.

I then went to compile the test programs in /usr/src/lib/SDL-1.2.2/test
did a ./configure which gave me the following error

Did you install SDL and/or the test programs as root?

checking for IceConnectionNumber in -lICE… yes
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0… no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log
^^^^^^^^^^
Examine this file. I’m suspecting that it contains something along the
lines “ld couldn’t find libX11.so.6…” etc. (Or possibly some other
"can’t find XXX" errors - probably the same cause.)

If so, check the permissions of ld.so.conf - if it’s not readable for
ordinary users, you’ll have to be root to link with anything that isn’t
in the library paths built into ld. (The higher security settings on
Mandrake seem to do that kind of stuff.)

If that’s it, you’ll have to change the system security settings, or
manually change the permissions for the files needed to link SDL
applications. (You’ll have to live with the risk of other users reading
your system’s ld.so.conf, I guess. :wink:

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -’


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

ld can’t find libartsc.so.0 for some reason. It might be the lib itself
that isn’t readable for ordinary users, or some directory in the path.
(BTW, is libartsc.so.0 really in any of the dirs in your ld.so.conf?)

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -'On Tuesday 04 September 2001 05:04, Entelin Hightree wrote:

Thanks for your help

ld.so.conf is readable by ordinary users, however I was root when
configure ing and make ing. Here is a copy of part of config.log that I
thought looked suspissios, but I dont know exactly what it needs… :stuck_out_tongue:

/usr/i386-slackware-linux/bin/ld: warning: libartsc.so.0, needed by
/usr/local/l
ib/libSDL.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libSDL.so: undefined reference to arts_stream_get' /usr/local/lib/libSDL.so: undefined reference toarts_init’
/usr/local/lib/libSDL.so: undefined reference to arts_play_stream' /usr/local/lib/libSDL.so: undefined reference toarts_stream_set’
/usr/local/lib/libSDL.so: undefined reference to arts_close_stream' /usr/local/lib/libSDL.so: undefined reference toarts_write’

thanks for the tip, I found that lib at /opt/kde/lib, so I added that dir
to ld.so.conf and it worked :)>From: David Olofson <david.olofson at reologica.se>

Reply-To: sdl at libsdl.org
To: sdl at libsdl.org
Subject: Re: [SDL] Cant compile SDL programs, SDL version 1.2.0 not found
Date: Mon, 3 Sep 2001 22:53:13 +0200
MIME-Version: 1.0
Received: from [216.174.195.192] by hotmail.com (3.2) with ESMTP id
MHotMailBD5D386400824004370ED8AEC3C098F80; Mon, 03 Sep 2001 13:51:50 -0700
Received: from localhost.localdomain ([127.0.0.1]
helo=twomix.devolution.com)by twomix.devolution.com with esmtp (Exim 3.22
#2)id 15e0gQ-0005Ax-00; Mon, 03 Sep 2001 13:51:02 -0700
Received: from [62.20.1.135] (helo=mail.space2u.com)by
twomix.devolution.com with esmtp (Exim 3.22 #2)id 15e0gM-0005Ai-00for
sdl at libsdl.org; Mon, 03 Sep 2001 13:50:58 -0700
Received: from cutangle.admeo.se ([212.162.175.15])by mail.space2u.com
(8.11.6/8.11.6) with SMTP id f83Kq1009455for ; Mon, 3 Sep
2001 22:52:01 +0200
From sdl-admin at libsdl.org Mon, 03 Sep 2001 13:52:57 -0700
Organization: Reologica Instruments AB
X-Mailer: KMail [version 1.2]
References:
In-Reply-To:
Message-Id: <01090322531303.02564 at cutangle.admeo.se>
Sender: sdl-admin at libsdl.org
Errors-To: sdl-admin at libsdl.org
X-BeenThere: sdl at libsdl.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:sdl-request at libsdl.org?subject=help>
List-Post: <mailto:sdl at libsdl.org>
List-Subscribe:
http://www.libsdl.org/mailman/listinfo/sdl,<mailto:sdl-request at libsdl.org?subject=subscribe>
List-Id: A list for developers using the SDL library. <sdl.libsdl.org>
List-Unsubscribe:
http://www.libsdl.org/mailman/listinfo/sdl,<mailto:sdl-request at libsdl.org?subject=unsubscribe>
List-Archive: http://www.libsdl.org/pipermail/sdl/
X-Original-Date: Mon, 3 Sep 2001 22:53:13 +0200

On Tuesday 04 September 2001 05:04, Entelin Hightree wrote:

Thanks for your help

ld.so.conf is readable by ordinary users, however I was root when
configure ing and make ing. Here is a copy of part of config.log that I
thought looked suspissios, but I dont know exactly what it needs… :stuck_out_tongue:

/usr/i386-slackware-linux/bin/ld: warning: libartsc.so.0, needed by
/usr/local/l
ib/libSDL.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libSDL.so: undefined reference to arts_stream_get' /usr/local/lib/libSDL.so: undefined reference toarts_init’
/usr/local/lib/libSDL.so: undefined reference to arts_play_stream' /usr/local/lib/libSDL.so: undefined reference toarts_stream_set’
/usr/local/lib/libSDL.so: undefined reference to arts_close_stream' /usr/local/lib/libSDL.so: undefined reference toarts_write’

ld can’t find libartsc.so.0 for some reason. It might be the lib itself
that isn’t readable for ordinary users, or some directory in the path.
(BTW, is libartsc.so.0 really in any of the dirs in your ld.so.conf?)

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -’


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp