Re: [ioquake3] ioquake3 Solaris 10 - libSDL-1.2.so.0

2011-12-06 Thread vincent


Hi Sonny,

Did you have /opt/lib in your LIBRARY_PATH?

I just checked my binaries and /usr/local/lib doesn't seem hard-coded:

root@ergoth:[~][517]# ldd -s  /usr/local/share/games/quake3/ioquake3.sparc
[]
   find object=libSDL-1.2.so.0; required by 
/usr/local/share/games/quake3/ioquake3.sparc
search 
path=/usr/local/lib/openwin:/lib:/usr/lib:/usr/dt/lib:/usr/openwin/lib:/usr/sfw/lib:/usr/local/lib:/opt/sfw/lib
  (LD_LIBRARY_PATH)
trying path=/usr/local/lib/openwin/libSDL-1.2.so.0
trying path=/lib/libSDL-1.2.so.0
trying path=/usr/lib/libSDL-1.2.so.0
trying path=/usr/dt/lib/libSDL-1.2.so.0
trying path=/usr/openwin/lib/libSDL-1.2.so.0
trying path=/usr/sfw/lib/libSDL-1.2.so.0
trying path=/usr/local/lib/libSDL-1.2.so.0
libSDL-1.2.so.0 =>   /usr/local/lib/libSDL-1.2.so.0

Best regards,

Vincent

On Mon, 5 Dec 2011, Sonny Bladen wrote:


Vincent,

Following your suggestion and copying the libSDL-1.2* files from /opt/lib to 
/usr/local/lib worked, had to do the same with a number of other files.

So far everything seems to be working just fine, going to go play some Quake 
now!

Thank you.

Date: Mon, 5 Dec 2011 21:35:37 +0100
From: vinc...@cojot.name
To: ioquake3@lists.ioquake.org
Subject: Re: [ioquake3] ioquake3 Solaris 10 - libSDL-1.2.so.0

On Mon, 5 Dec 2011, Sonny Bladen wrote:

Hi Sonny,

That perhaps something I overlooked with the binary packages. Try placing 
a copy of the libSDL-1.2* stuff under /usr/local/lib, perhaps that will 
help (I won't be able to boot my U45 until tomorrow so I won't know for 
sure).


Best regards,

Vincent

> Hello,
> 
> Been having a go at running ioquake3 on a SunBlade 2500, currently have a XVR-1200 in this machine. I have downloaded the ioquake3 packages and have instelle

d them, when attempting to
> execute ioquake3.sh the following is received:
> 
> # ./ioquake3.sh

> ld.so.1: ioquake3.sparc: fatal: libSDL-1.2.so.0: open failed: No such file or 
directory
> ./ioquake3.sh: line 39:  1524 Killed  ${EXEC_DIR}/${EXEC_BIN} 
${EXEC_FLAGS} $*
> 
> I had found and installed a libSDL package from http://bwachter.lart.info/solaris/solpkg.html and do believe it to be present on the system:
> 
> # grep libSDL-1.2.so.0 /var/sadm/install/contents

> /opt/lib/libSDL-1.2.so.0=libSDL-1.2.so.0.7.0 s none AARDsdl
> /opt/lib/libSDL-1.2.so.0.7.0 f none 0755 root other 1215776 580 1099870738 
AARDsdl
> /opt/lib/libSDL.so=libSDL-1.2.so.0.7.0 s none AARDsdl
> 
> # pwd

> /opt/lib
> # ls libSDL*
> libSDL-1.2.so.0  libSDL-1.2.so.0.7.0  libSDL.a 
libSDL.la    libSDL.so    libSDLmain.a
> 
> Curious to know if anyone has any particular insights as to why I receive the error when attempting to execute ioquake3. I am a bit new to Solaris and believ

e the issue may be related to a
> path or environment setting of some sorts.
> 
> Thank you.
___
ioquake3 mailing list
ioquake3@lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.

Re: [ioquake3] ioquake3 Solaris 10 - libSDL-1.2.so.0

2011-12-06 Thread Simon McVittie
On Tue, 06 Dec 2011 at 10:32:01 +0100, vinc...@cojot.name wrote:
> I just checked my binaries and /usr/local/lib doesn't seem hard-coded:

Paths in the dynamic linker's default search path don't need to be hard-coded
into binaries; paths not in the default search path do. On GNU (glibc)
systems, the default search path is partly hard-coded, partly in
/etc/ld.so.conf and partly in the files in /etc/ld.so.conf.d/.

The way to get a path hard-coded into the binary on Linux would be to pass
"-rpath /opt/lib" to ld - Solaris probably has something equivalent?

(Or use GNU libtool, which knows how to do shared libraries on various
platforms, each weirder than the last... but restricts you to doing things
in a slightly strange way to accomodate as many of those weird platforms
as possible.)

s
___
ioquake3 mailing list
ioquake3@lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.


Re: [ioquake3] ioquake3 Solaris 10 - libSDL-1.2.so.0

2011-12-06 Thread vincent


Just a quick follow-up,

Upon further inspection it appears I -do- have hard-coded paths in my 
ioquake3 binaries:


root@ergoth:[~][547]# elfdump -d /usr/local/share/games/quake3/ioquake3.sparc 
|grep -i path
  [14]  RUNPATH   0xc51c  /usr/local/lib:/usr/sfw/lib
  [15]  RPATH 0xc51c  /usr/local/lib:/usr/sfw/lib

That's why (I think) the user had a problem running these with his 
libraries in a different location.. I'll try to see if I can find the time 
to rebuild the packages.


Regards,

On Tue, 6 Dec 2011, Simon McVittie wrote:


On Tue, 06 Dec 2011 at 10:32:01 +0100, vinc...@cojot.name wrote:

I just checked my binaries and /usr/local/lib doesn't seem hard-coded:


Paths in the dynamic linker's default search path don't need to be hard-coded
into binaries; paths not in the default search path do. On GNU (glibc)
systems, the default search path is partly hard-coded, partly in
/etc/ld.so.conf and partly in the files in /etc/ld.so.conf.d/.

The way to get a path hard-coded into the binary on Linux would be to pass
"-rpath /opt/lib" to ld - Solaris probably has something equivalent?

(Or use GNU libtool, which knows how to do shared libraries on various
platforms, each weirder than the last... but restricts you to doing things
in a slightly strange way to accomodate as many of those weird platforms
as possible.)

   s

___
ioquake3 mailing list
ioquake3@lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.


Re: [ioquake3] ioquake3 Solaris 10 - libSDL-1.2.so.0

2011-12-06 Thread Patrick Baggett
On Tue, Dec 6, 2011 at 4:56 AM, Simon McVittie <
smcv-ioqua...@pseudorandom.co.uk> wrote:

> On Tue, 06 Dec 2011 at 10:32:01 +0100, vinc...@cojot.name wrote:
> > I just checked my binaries and /usr/local/lib doesn't seem hard-coded:
>
> Paths in the dynamic linker's default search path don't need to be
> hard-coded
> into binaries; paths not in the default search path do. On GNU (glibc)
> systems, the default search path is partly hard-coded, partly in
> /etc/ld.so.conf and partly in the files in /etc/ld.so.conf.d/.
>
> The way to get a path hard-coded into the binary on Linux would be to pass
> "-rpath /opt/lib" to ld - Solaris probably has something equivalent?
>
>
for Sun C, I think it is -R path or -Z path.


> (Or use GNU libtool, which knows how to do shared libraries on various
> platforms, each weirder than the last... but restricts you to doing things
> in a slightly strange way to accomodate as many of those weird platforms
> as possible.)
>
>s
> ___
> ioquake3 mailing list
> ioquake3@lists.ioquake.org
> http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
> By sending this message I agree to love ioquake3 and libsdl.
>
___
ioquake3 mailing list
ioquake3@lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.

Re: [ioquake3] ioquake3 Solaris 10 - libSDL-1.2.so.0

2011-12-06 Thread uZu

Le 06/12/2011 17:13, Patrick Baggett a écrit :



On Tue, Dec 6, 2011 at 4:56 AM, Simon McVittie
mailto:smcv-ioqua...@pseudorandom.co.uk>> wrote:

On Tue, 06 Dec 2011 at 10:32:01 +0100, vinc...@cojot.name
 wrote:
 > I just checked my binaries and /usr/local/lib doesn't seem
hard-coded:

Paths in the dynamic linker's default search path don't need to be
hard-coded
into binaries; paths not in the default search path do. On GNU (glibc)
systems, the default search path is partly hard-coded, partly in
/etc/ld.so.conf and partly in the files in /etc/ld.so.conf.d/.

The way to get a path hard-coded into the binary on Linux would be
to pass
"-rpath /opt/lib" to ld - Solaris probably has something equivalent?


for Sun C, I think it is -R path or -Z path.

(Or use GNU libtool, which knows how to do shared libraries on various
platforms, each weirder than the last... but restricts you to doing
things
in a slightly strange way to accomodate as many of those weird platforms
as possible.)

s


already answered but yep no need to move the libs, either use 
LD_LIBRARY_PATH or recompile using -R, a quick note can be found at 
http://blogs.oracle.com/ali/entry/avoiding_ld_library_path_the

___
ioquake3 mailing list
ioquake3@lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.