Sdl_image: undefined reference to `__libc_stack_end@GLIBC_2.1'

I’m building a linux from scratch system using my gentoo.
I can’t build sdl_image:

./configure --prefix=$(LFS) --disable-static && make

gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -DLOAD_BMP -DLOAD_GIF
-DLOAD_JPG -DLOAD_LBM -DLOAD_PCX -DLOAD_PNG -DLOAD_PNM -DLOAD_TGA
-DLOAD_XPM -o .libs/showimage showimage.o .libs/libSDL_image.so -ljpeg
-lpng -lz -L/usr/lib -lSDL -lpthread -L/usr/lib -Wl,-rpath,/usr/lib
-lSDL -lpthread -Wl,–rpath -Wl,/home/crusader/data/prg/icansee/root/lib
/lib/libc.so.6: undefined reference to `__libc_stack_end at GLIBC_2.1’
collect2: ld returned 1 exit status
make: *** [showimage] Error 1

What’s the issue? All my libraries are OK since if I do “emerge
sdl-image” all works fine, so I suppose it’s just a config problem.
(using emerge the ./configure command is hidden. And I prefer not to use
my system binary).–
[] Guido Imperiale
[] CRV?ADER//KY
[] CVI.SCIENTIA.IMPERIVM

crusaderky at libero dot it
http://www.crusaderky.altervista.org

“Nam et ipsa scientia potestas est” (Knowledge is Power)
– Sir Francis Bacon (1561-1626)
Meditationes Sacrae, de Haeresibus

“The Net treats censorship as damage and routes around it.”
– John Gilmore

“I worry about my child and the Internet all the time, even though she’s
too young to have logged on yet. Here’s what I worry about. I worry that
10 or 15 years from now, she will come to me and say: ‘Daddy, where
were you when they took freedom of the press away from the Internet?’”
– Mike Godwin, Electronic Frontier Foundation

-------------- next part --------------
A non-text attachment was scrubbed…
Name: file:///tmp/nsmail.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031115/f853cc3e/attachment.pgp
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031115/f853cc3e/attachment-0001.pgp

Hello,

I see that the SDL doesn’t have it own Dllmain but
uses that found inside Visual Studio.
How this is done ?
I always though we should provide our own Dllmain.

Thank you in advance.__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

Whats SDLmain.a for then?On 17-Nov-2003, hassan boulmarouf wrote:

I see that the SDL doesn’t have it own Dllmain but
uses that found inside Visual Studio.
How this is done ?
I always though we should provide our own Dllmain.


Patrick “Diablo-D3” McFarland || unknown at panax.com
"Computer games don’t affect kids; I mean if Pac-Man affected us as kids, we’d
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." – Kristian Wilson, Nintendo, Inc, 1989
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031117/7a9a3ed1/attachment.pgp

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,On Monday 17 November 2003 09:58, hassan boulmarouf wrote:

I see that the SDL doesn’t have it own Dllmain but
uses that found inside Visual Studio.
How this is done ?
I always though we should provide our own Dllmain.

This should only be necessary if a DLL needs implicit initialization at
loading time. For example, the C++ automatically creates some "magic"
dllmain code for DLLs so that global constructors are called.
However, since SDL is initialized explicitly, by calling SDL_Init(), a
dllmain is not necessary.

cu,
Nicolai
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/uRIosxPozBga0lwRAuAjAKC3j3jMZ0HVSSAVMRuUn8yCaGd0oQCdFu9G
DKg0bMqR+bgYOVZzA2fEYJQ=
=KUXJ
-----END PGP SIGNATURE-----

I use linux. What is a DLLmain? Is it a windows thing or a cross
platform library thing? If it’s only a windows thing it has no place in
SDL.

David BeanOn Mon, 2003-11-17 at 08:58, hassan boulmarouf wrote:

Hello,

I see that the SDL doesn’t have it own Dllmain but
uses that found inside Visual Studio.
How this is done ?
I always though we should provide our own Dllmain.

Thank you in advance.

Its a windows thing, and it also belongs in SDL. SDL on windows uses an extra
library called SDLmain.a, which I believe is the DLLmain.

Due to the… odd nature of DLLs (ie, they are no way as flexable as ELF
SOs), its required for most if not all DLLs, especially if they require
the kind of stuff SDL does.

If you want a more complex answer than that, ask Sam, he gets this stuff. ;)On 17-Nov-2003, David Bean wrote:

On Mon, 2003-11-17 at 08:58, hassan boulmarouf wrote:

Hello,

I see that the SDL doesn’t have it own Dllmain but
uses that found inside Visual Studio.
How this is done ?
I always though we should provide our own Dllmain.

Thank you in advance.

I use linux. What is a DLLmain? Is it a windows thing or a cross
platform library thing? If it’s only a windows thing it has no place in
SDL.


Patrick “Diablo-D3” McFarland || unknown at panax.com
"Computer games don’t affect kids; I mean if Pac-Man affected us as kids, we’d
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." – Kristian Wilson, Nintendo, Inc, 1989
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031117/898a5ccc/attachment.pgp