SDL on Solaris2.7(Sparc1) compiling problems

I tried to compile SDL on Solaris 2.7 and it worked, but I couldnt install to /usr/local, so I installed to ~/local (/home/username/local to be correct). That worked, but when I try to compile any aother program or library, it fails to configure, because it cant find SDL. It
does find sdl-config in the right place, but it says SDL isnt the correct version. Im using SDL1.1.6

Proff

Florian Schulze wrote:

I tried to compile SDL on Solaris 2.7 and it worked, but I couldnt install to /usr/local, so I installed to ~/local (/home/username/local to be correct). That worked, but when I try to compile any aother program or library, it fails to configure, because it cant find SDL. It
does find sdl-config in the right place, but it says SDL isnt the correct version. Im using SDL1.1.6

Hi florian,

Just to check: you have ~/local in your $LD_LIBRARY_PATH ? In quite
a few cases that is the real problem. And quite a few programs and
libraries out there will put you on that problem at configure-time,
since they try to link WITHOUT (!!) sdl-config --libs which will
result in an error. This MAY be fixed in those extra packages, but
it is often easier to fix the variable that influences ld.so - on
a solstation just type man ld.so for the details.

have fun,
– guido Edel sei der Mensch, hilfreich und gut
31:GCS/E/S/P C++$++++ ULHS L++w- N++@ d(±) s+a- h.r(*@)>+++ y++ PS++PE 5++X-

Florian Schulze wrote:

I tried to compile SDL on Solaris 2.7 and it worked, but I couldnt install to /usr/local, so I installed to ~/local (/home/username/local to be correct). That worked, but when I try to compile any aother program or library, it fails to configure, because it cant find SDL. It
does find sdl-config in the right place, but it says SDL isnt the correct version. Im using SDL1.1.6

Hi florian,

Just to check: you have ~/local in your $LD_LIBRARY_PATH ? In quite
a few cases that is the real problem. And quite a few programs and
libraries out there will put you on that problem at configure-time,
since they try to link WITHOUT (!!) sdl-config --libs which will
result in an error. This MAY be fixed in those extra packages, but
it is often easier to fix the variable that influences ld.so - on
a solstation just type man ld.so for the details.

On solaris, it might be preferable to link with
’-L${SDL_PATH}/lib -R${SDL_PATH}/lib’, where the env varaible SDL_PATH in
your case should be /home/${USER}/local .

I have an old makefile at http://www.dd.chalmers.se/~jt/pub/Makefile for
old sdl project. The only thing that you have to change in it should
be the PREFIX,OBJS and DEST variables.

Ah, yes - if you descide to compile with g++ instead of workshop, you have
to change the /opt/gnu/lib path in LIB_PATH to the location of the gnu
libraries (libstd++ in particular).

/J

Florian Schulze wrote:

I tried to compile SDL on Solaris 2.7 and it worked, but I couldnt install to /usr/local, so I installed to ~/local (/home/username/local to be correct). That worked, but when I try to compile any aother program or library, it fails to configure, because it cant find SDL. It
does find sdl-config in the right place, but it says SDL isnt the correct version. Im using SDL1.1.6

Hi florian,

Just to check: you have ~/local in your $LD_LIBRARY_PATH ? In quite
a few cases that is the real problem. And quite a few programs and
libraries out there will put you on that problem at configure-time,
since they try to link WITHOUT (!!) sdl-config --libs which will
result in an error. This MAY be fixed in those extra packages, but
it is often easier to fix the variable that influences ld.so - on
a solstation just type man ld.so for the details.

On solaris, it might be preferable to link with
’-L${SDL_PATH}/lib -R${SDL_PATH}/lib’, where the env varaible SDL_PATH in
your case should be /home/${USER}/local .

I have an old makefile at http://www.dd.chalmers.se/~jt/pub/Makefile for
old sdl project. The only thing that you have to change in it should
be the PREFIX,OBJS and DEST variables.

Ah, yes - if you descide to compile with g++ instead of workshop, you have
to change the /opt/gnu/lib path in LIB_PATH to the location of the gnu
libraries (libstd++ in particular).

/J

Guido Draheim <Guido.Draheim at gmx.de> schrieb in im Newsbeitrag:
3A1D03EB.FE83C9EA at gmx.de

Florian Schulze wrote:

I tried to compile SDL on Solaris 2.7 and it worked, but I couldnt install to /usr/local, so I installed to ~/local (/home/username/local to be correct). That worked, but when I try to compile any aother program or library, it fails to configure, because it cant find SDL. It
does find sdl-config in the right place, but it says SDL isnt the correct version. Im using SDL1.1.6

Hi florian,

Just to check: you have ~/local in your $LD_LIBRARY_PATH ? In quite
a few cases that is the real problem. And quite a few programs and
libraries out there will put you on that problem at configure-time,
since they try to link WITHOUT (!!) sdl-config --libs which will
result in an error. This MAY be fixed in those extra packages, but
it is often easier to fix the variable that influences ld.so - on
a solstation just type man ld.so for the details.

I had no access to the sparcs till now, so I wasn’t able to try out some more
till now. On the sparcs is no $LD_LIBRARY_PATH, but a $LD_RUN_PATH. And the
configure stops at the place where its checking the version of SDL, not where it
trys to add the librarys. It trys to call the sdl-config script at the right
place, but it says it can’t find it. If I call it manually at the location
configure outputs it works. I have looked inside the scripts and the path and
call should be correct.

Proff–
Florian ‘Proff’ Schulze - @Florian_Schulze
Homepage: - http://proff.fly.to
PGP-Key available from - http://www.keyserver.net/en/

I had no access to the sparcs till now, so I wasn’t able to try out some more
till now. On the sparcs is no $LD_LIBRARY_PATH, but a $LD_RUN_PATH.

Both are used by Solaris. $LD_RUN_PATH is an alternative way of specifying
the run-time lib search path at compile/link time, usually done with -R.
$LD_LIBRARY_PATH is used by the dynamic linker at load time

And the
configure stops at the place where its checking the version of SDL, not where it
trys to add the librarys. It trys to call the sdl-config script at the right
place, but it says it can’t find it. If I call it manually at the location
configure outputs it works. I have looked inside the scripts and the path and
call should be correct.

it’s hard to say what is wrong from this. please post a more complete
description of your problem

Hi,

I tried it again and ran aclocal etc. over SDL then configured, compiled and
installed. Now SDL_net configures, compiles and installs nicely. SDL_mixer
configures, but doesn’t compile. I get the following errormessage when doing
make all:

mksh: Fatal error in reader: = missing from replacement macro reference

I get the same errormessage when I try to compile PrBoom.

Proff–
Florian ‘Proff’ Schulze - @Florian_Schulze
Homepage: - http://proff.fly.to
PGP-Key available from - http://www.keyserver.net/en/

Mattias Engdeg?rd schrieb in im Newsbeitrag:
200012172224.XAA02794 at orion.nada.kth.se

I had no access to the sparcs till now, so I wasn’t able to try out some more
till now. On the sparcs is no $LD_LIBRARY_PATH, but a $LD_RUN_PATH.

Both are used by Solaris. $LD_RUN_PATH is an alternative way of specifying
the run-time lib search path at compile/link time, usually done with -R.
$LD_LIBRARY_PATH is used by the dynamic linker at load time

And the
configure stops at the place where its checking the version of SDL, not where
it

trys to add the librarys. It trys to call the sdl-config script at the right
place, but it says it can’t find it. If I call it manually at the location
configure outputs it works. I have looked inside the scripts and the path and
call should be correct.

it’s hard to say what is wrong from this. please post a more complete
description of your problem