SDL implementation on LEON3 (sparc architecture): linker problem

managed to sort all the problem (by doing a few tweaking and working on
another workstation).

Now, all the .o files are created. but I now get this error

/usr/X11R6/lib/libX11.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [build/libSDL.la] Error 1

Please, any idea?
Based on what I see in the bash, it seems it trying to ‘linking’, but then
it gives that error. I’ve tried LD=sparc-linux-ld during ./configure, but
this iddn’t solve it.

Any idea will be appreciated. thanks in advanceOn 2/19/09, Mike Mike <@Mike_Mike> wrote:

Hello,
Please , I would like to find out if I could implement SDL on Sparc
architecture (Linux)?
Based on the SDL_platform.h file, it was said one has to define the
architecture which one is porting to. Done that, but but don’t seem to know
what to do next. Would appreciate some guidance.

I am doing the above, because I tried to make SDL libraries that would be
compatible with sparc-linux-gcc (a cross compiler), by using the commands
below:

./configure --host=sparc-linux CC=sparc-linux-gcc

(this was before I edited SDL_platform.h)

and everything was goin well, but then I got this error (had to do with
dmaaudio.c)

sparc-linux-gcc -g -O2 -I./include -D_GNU_SOURCE=1 -I/usr/include
-DXTHREADS -D_REENTRANT -DHAVE_LINUX_VERSION_H -c
./src/audio/dma/SDL_dmaaudio.c -fPIC -DPIC -o build/.libs/SDL_dmaaudio.o
./src/audio/dma/SDL_dmaaudio.c: In function DMA_WaitAudio': ./src/audio/dma/SDL_dmaaudio.c:166: error: impossible constraint inasm’
make: *** [build/SDL_dmaaudio.lo] Error 1

Please, any ideas on how to proceed?

All I want is a to be able to compile the test example (SD|L_gears), so
that I’ll know I’m in bussiness.

It works fine with ‘gcc’ (thought I should mention this)

Thanks in advance

– Mike

sorry, just posted this message under a different topic (as I should have
done)