Compilation problems, Solaris

Hello!

I have managed to compile SDL on my Solaris machine but the test programs
does not compile. Actually, the process stops in the configure script. (I
can run test programs if I compile them manually but the configure script
would be nicer).



checking for connect in -lsocket… yes
checking for remove… yes
checking for shmat… yes
checking for IceConnectionNumber in -lICE… yes
checking for sdl-config… /home/npe/sdl/bin/sdl-config
checking for SDL - version >= 1.2.3… 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: /home/npe/sdl/bin/sdl-config
configure: error: *** SDL version 1.2.3 not found!*************************
Here are some intresting lines from config.log:

configure:1158: checking how to run the C preprocessor
configure:1179: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1242: checking for X
configure:1491: checking whether -R must be followed by a space
configure:1501: gcc -o conftest -g -O2 conftest.c -R/usr/openwin/lib 1>&5
configure:1556: checking for dnet_ntoa in -ldnet
configure:1575: gcc -o conftest -g -O2 conftest.c -ldnet 1>&5
ld: fatal: library -ldnet: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
#line 1564 “configure”
#include “confdefs.h”
/* Override any gcc2 internal prototype to avoid an error. /
/
We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }

The problem also accurs when compiling SDL_image. Not exactly the same but
in the configure script.

Any help?

/ Niklas


Send and receive Hotmail on your mobile device: http://mobile.msn.com

It was only some things missing in the CFLAGS environment symbol. =)

/ Niklas>From: “Niklas Pettersson” <@Niklas_Pettersson>

Reply-To: sdl at libsdl.org
To: sdl at libsdl.org
Subject: [SDL] Compilation problems, Solaris
Date: Mon, 03 Jun 2002 16:30:57 +0200

Hello!

I have managed to compile SDL on my Solaris machine but the test programs
does not compile. Actually, the process stops in the configure script. (I
can run test programs if I compile them manually but the configure script
would be nicer).



checking for connect in -lsocket… yes
checking for remove… yes
checking for shmat… yes
checking for IceConnectionNumber in -lICE… yes
checking for sdl-config… /home/npe/sdl/bin/sdl-config
checking for SDL - version >= 1.2.3… 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: /home/npe/sdl/bin/sdl-config
configure: error: *** SDL version 1.2.3 not found!


Here are some intresting lines from config.log:

configure:1158: checking how to run the C preprocessor
configure:1179: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1242: checking for X
configure:1491: checking whether -R must be followed by a space
configure:1501: gcc -o conftest -g -O2 conftest.c -R/usr/openwin/lib
1>&5
configure:1556: checking for dnet_ntoa in -ldnet
configure:1575: gcc -o conftest -g -O2 conftest.c -ldnet 1>&5
ld: fatal: library -ldnet: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
#line 1564 “configure”
#include “confdefs.h”
/* Override any gcc2 internal prototype to avoid an error. /
/
We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }

The problem also accurs when compiling SDL_image. Not exactly the same but
in the configure script.

Any help?

/ Niklas


Send and receive Hotmail on your mobile device: http://mobile.msn.com


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


MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx