Please try building from CVS!

I’ve made a bunch of changes to the way SDL is built, and I’m sure things
need to be adjusted for the various platforms.

If you get a chance, can you build SDL from CVS and post your results on
this list, along with the OS and compiler version you’re using?

http://www.libsdl.org/cvs/SDL-1.2.tar.gz
http://www.libsdl.org/cvs/SDL-1.2.zip

You may want to take a look at include/SDL_config.h and include/SDL_config.h.in if you having problems, or curious to see what’s going on.

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Hello !

I just build from CVS get the following error message :

gcc -shared .libs/SDL.o .libs/SDL_error.o .libs/SDL_fatal.o
.libs/SDL_loadso.o
-Wl,–whole-archive main/.libs/libarch.a stdlib/.libs/libstdlib.a
audio/.libs/li
baudio.a video/.libs/libvideo.a events/.libs/libevents.a
joystick/.libs/libjoyst
ick.a cdrom/.libs/libcdrom.a thread/.libs/libthread.a
timer/.libs/libtimer.a end
ian/.libs/libendian.a file/.libs/libfile.a cpuinfo/.libs/libcpuinfo.a
hermes/.li
bs/libhermes.a -Wl,–no-whole-archive -luser32 -lgdi32 -lwinmm
-mno-cygwin -mn
o-cygwin -o .libs/SDL.dll -Wl,–enable-auto-image-base
-Wl,–out-implib,.libs/li
bSDL.dll.a
Creating library file: .libs/libSDL.dll.a
stdlib/.libs/libstdlib.a(SDL_string.o): In function SDL_strtod': /home/wizard/code/SDL/SDL12/src/stdlib/SDL_string.c:191: undefined reference to_SDL_ScanUnsignedLong’
collect2: ld returned 1 exit status
make[2]: *** [libSDL.la] Error 1
make[2]: Leaving directory /home/wizard/code/SDL/SDL12/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/wizard/code/SDL/SDL12/src’
make: *** [all-recursive] Error 1

My config.log is online at :

http://www.syntheticsw.com/~wizard/tmp/config_log.txt

CU

Sam Lantinga wrote:

I’ve made a bunch of changes to the way SDL is built, and I’m
sure things need to be adjusted for the various platforms.

If you get a chance, can you build SDL from CVS and post your
results on this list, along with the OS and compiler version
you’re using?

Visual C++ 6.0 build is broken (VC5 too, most likely). My platform in
question is: Win2k, VS6+SP5, Platform SDK.
"Cannot open include file: ‘crtdefs.h’: No such file or directory"
Evidently, the crtdefs.h does not exist in VC6 and Platform SDK. And you
should not really attempt to include the CRT headers directly, especially if
the goal is to make it buildable without the CRT. You should probably
include stddef.h instead for size_t definition.

Also, the VC6 build process would not build a real SDL_config.h and the
stock one in include/ is quite lacking. Including a pre-built SDL_config.h
for MS compilers is probably a good idea, though I do not know how you would
want to manage the whole MS CRT vs. No CRT business in this case.

-Alex.

I’ve made a bunch of changes to the way SDL is built, and I’m sure things
need to be adjusted for the various platforms.

If you get a chance, can you build SDL from CVS and post your results on
this list, along with the OS and compiler version you’re using?

I get the following error during build on sparc-sun-solaris2.9On Tue, 7 Feb 2006, Sam Lantinga wrote:


/pub/anarchy/dva00mkn/sun/bin/gcc -DHAVE_CONFIG_H -I. -I.
-I…/…/…/include -g -O2 -Wall -D__ELF__ -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DUSE_DLOPEN -DESD_SUPPORT -I/pkg/esound/0.2.36/include
-I/pkg/audiofile/0.2.6/include -I/usr/openwin/include -DENABLE_X11
-DXTHREADS “-DX11_DYNAMIC=“libX11.so.6"”
”-DX11EXT_DYNAMIC=“libXext.so.6"” -I./include -I./src/video -DENABLE_DGA
-DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DXFREE86_VM -DXFREE86_VMGAMMA
-DXFREE86_XV -DHAVE_XINERAMA -DHAVE_XIGXME -DHAVE_OPENGL -DHAVE_OPENGL_X11
-D_REENTRANT -DSDL_USE_PTHREADS -DPTHREAD_RECURSIVE_MUTEX -DHAVE_SIGACTION
-DSUNAUDIO_SUPPORT -I…/…/…/include -I…/…/…/include/SDL
-I…/…/…/src -I…/…/…/src/main/solaris -I…/…/…/src/audio
-I…/…/…/src/video -I…/…/…/src/video/Xext/extensions
-I…/…/…/src/events -I…/…/…/src/joystick -I…/…/…/src/cdrom
-I…/…/…/src/thread -I…/…/…/src/timer -I…/…/…/src/endian
-I…/…/…/src/file -I…/…/…/src/thread -MT SDL_x11dga.lo -MD -MP -MF
.deps/SDL_x11dga.Tpo -c SDL_x11dga.c -fPIC -DPIC -o .libs/SDL_x11dga.o
In file included from SDL_x11video.h:26,
from SDL_x11dga_c.h:23,
from SDL_x11dga.c:32:
/usr/openwin/include/X11/Xlib.h:32: warning: ignoring #pragma ident
In file included from SDL_x11video.h:27,
from SDL_x11dga_c.h:23,
from SDL_x11dga.c:32:
/usr/openwin/include/X11/Xutil.h:56: warning: ignoring #pragma ident
In file included from …/…/…/src/video/Xext/extensions/xf86vmode.h:39,
from SDL_x11video.h:34,
from SDL_x11dga_c.h:23,
from SDL_x11dga.c:32:
/usr/openwin/include/X11/Xmd.h:46: warning: ignoring #pragma ident
In file included from …/…/…/src/video/SDL_sysvideo.h:47,
from SDL_x11video.h:43,
from SDL_x11dga_c.h:23,
from SDL_x11dga.c:32:
/usr/openwin/include/GL/gl.h:9: warning: ignoring #pragma ident
In file included from /usr/openwin/include/GL/gl.h:2663,
from …/…/…/src/video/SDL_sysvideo.h:47,
from SDL_x11video.h:43,
from SDL_x11dga_c.h:23,
from SDL_x11dga.c:32:
/usr/openwin/include/GL/glmacros.h:9: warning: ignoring #pragma ident
In file included from SDL_x11dyn.h:30,
from SDL_x11video.h:44,
from SDL_x11dga_c.h:23,
from SDL_x11dga.c:32:
/usr/openwin/include/X11/Xlibint.h:46: warning: ignoring #pragma ident
/usr/openwin/include/X11/Xlibint.h:137: error: syntax error before
’xEvent’
In file included from SDL_x11dyn.h:30,
from SDL_x11video.h:44,
from SDL_x11dga_c.h:23,
from SDL_x11dga.c:32:
/usr/openwin/include/X11/Xlibint.h:761: error: syntax error before
’xReply’
/usr/openwin/include/X11/Xlibint.h:836: error: syntax error before
’xReply’
/usr/openwin/include/X11/Xlibint.h:836: warning: no semicolon at end of
struct or union
/usr/openwin/include/X11/Xlibint.h:838: error: syntax error before ‘}‘
token
/usr/openwin/include/X11/Xlibint.h:838: warning: type defaults to ‘int’ in
declaration of ‘_XAlignedBuffer’
/usr/openwin/include/X11/Xlibint.h:838: warning: data definition has no
type or storage class
/usr/openwin/include/X11/Xlibint.h:903: error: syntax error before
’xGenericReply’
/usr/openwin/include/X11/Xlibint.h:921: error: syntax error before
’xReply’
/usr/openwin/include/X11/Xlibint.h:931: error: syntax error before
’xReply’
/usr/openwin/include/X11/Xlibint.h:978: error: syntax error before
’xReply’
/usr/openwin/include/X11/Xlibint.h:986: error: syntax error before
’xEvent’
/usr/openwin/include/X11/Xlibint.h:1187: error: syntax error before
’xEvent’
/usr/openwin/include/X11/Xlibint.h:1193: error: syntax error before
’xEvent’
/usr/openwin/include/X11/Xlibint.h:1205: error: syntax error before
’xEvent’
/usr/openwin/include/X11/Xlibint.h:1211: error: syntax error before
’xEvent’
In file included from SDL_x11dyn.h:32,
from SDL_x11video.h:44,
from SDL_x11dga_c.h:23,
from SDL_x11dga.c:32:
…/…/…/src/video/Xext/extensions/extutil.h:112: error: syntax error
before ‘xEvent’
…/…/…/src/video/Xext/extensions/extutil.h:119: error: syntax error
before 'xEvent’
In file included from SDL_x11video.h:44,
from SDL_x11dga_c.h:23,
from SDL_x11dga.c:32:
SDL_x11dyn.h:53: error: syntax error before 'xEvent’
SDL_x11dyn.h:55: error: syntax error before 'xEvent’
In file included from SDL_x11dyn.h:59,
from SDL_x11video.h:44,
from SDL_x11dga_c.h:23,
from SDL_x11dga.c:32:
SDL_x11sym.h:136: error: syntax error before 'xReply’
SDL_x11sym.h:137: error: syntax error before 'xGenericReply’
make[3]: *** [SDL_x11dga.lo] Error 1
make[3]: Leaving directory
/import/anarchy/dva00mkn/SDL-1.2/src/video/x11' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/import/anarchy/dva00mkn/SDL-1.2/src/video’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/import/anarchy/dva00mkn/SDL-1.2/src’
make: *** [all-recursive] Error 1


Sam Lantinga wrote:

I’ve made a bunch of changes to the way SDL is built, and I’m sure
things need to be adjusted for the various platforms.

If you get a chance, can you build SDL from CVS and post your results
on this list, along with the OS and compiler version you’re using?

More Visual C++ 6.0 problems (did not catch these before because it just
wont build at all).
…\include\SDL_thread.h(74) : error C2143: syntax error : missing
’)’ before ‘__cdecl’"

VC6 does not have uintptr_t defined anywhere.

SDL_dx5events.c
G:\PlatSDK\include\rpcasync.h(284) : error C2143: syntax error :

missing ‘)’ before ''
G:\PlatSDK\include\rpcasync.h(284) : error C2081: ‘size_t’ : name in
formal parameter list illegal
G:\PlatSDK\include\rpcasync.h(284) : error C2143: syntax error :
missing ‘{’ before '
'

Something is not brining in the definition of size_t somehow before the
directx headers are included. Perhaps SDL_dx5events.c is missing an
SDL_types.h include.

G:\SDL-12-CVS\src\video\math_private.h(171) : error C4226:

nonstandard extension used : ‘huge’ is an obsolete keyword
Evidently, VC6 does not like ‘huge’ being used as an identifier.

-Alex.

I’ve made a bunch of changes to the way SDL is built, and I’m sure things
need to be adjusted for the various platforms.

If you get a chance, can you build SDL from CVS and post your results on
this list, along with the OS and compiler version you’re using?

The library builds (with a Q’n’D fix for a x11/dga build error) on
sparc-sun-solaris2.9 using gcc 4.0, but configuring in test directory
fails with missing SDL_revcpyOn Tue, 7 Feb 2006, Sam Lantinga wrote:

I’ve made a bunch of changes to the way SDL is built, and I’m sure things
need to be adjusted for the various platforms.

If you get a chance, can you build SDL from CVS and post your results on
this list, along with the OS and compiler version you’re using?

I get the following error during build on sparc-sun-solaris2.9

[ Syntax error in x11 headers ]

This is now in bugzilla as PR/138 together with a quick’n’dirty fix.On Tue, 7 Feb 2006, Mattias Karlsson wrote:

On Tue, 7 Feb 2006, Sam Lantinga wrote:

Hello !

I also uploaded my SDL_config.h here :

http://www.syntheticsw.com/~wizard/tmp/SDL_config_h.txt

CU

stdlib/.libs/libstdlib.a(SDL_string.o): In function SDL_strtod': /home/wizard/code/SDL/SDL12/src/stdlib/SDL_string.c:191: undefined reference to_SDL_ScanUnsignedLong’

This should be fixed in CVS, thanks!

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

More Visual C++ 6.0 problems (did not catch these before because it just
wont build at all).

[snipped]

These should all be fixed in CVS, thanks!

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Hello !

I looked over my config.log and found this :

In file included from conftest.c:78:
src/video/windx5/directx.h:7:25: SDL_windows.h: No such file or directory
In file included from src/video/windx5/directx.h:8,
from conftest.c:78:

<<<<<<<<<<<<<<<<

CU

Le Tue, 07 Feb 2006 04:23:16 -0800
Sam Lantinga a ?crit:

I’ve made a bunch of changes to the way SDL is built, and I’m sure
things need to be adjusted for the various platforms.

If you get a chance, can you build SDL from CVS and post your results
on this list, along with the OS and compiler version you’re using?

http://www.libsdl.org/cvs/SDL-1.2.tar.gz
http://www.libsdl.org/cvs/SDL-1.2.zip

You may want to take a look at include/SDL_config.h and
include/SDL_config.h.in if you having problems, or curious to see
what’s going on.

According to configure, --enable-libc is yes as default (which I did not change).

I don’t know if it is related, but stdio.h stuff is missing to compile SDL_esdaudio
(Debian Sarge, Linux/x86, gcc 3.3.5)

…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c: In function ESD_WaitAudio': ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:197: warning: implicit declaration of functionkill’
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c: In function ESD_PlayAudio': ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:216: warning: implicit declaration of functionwrite’
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c: In function get_progname': ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:254: error:FILE’ undeclared (first use in this function)
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c:254: error: (Each undeclared identifier is reported only once
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c:254: error: for each function it appears in.)
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c:254: error: fp' undeclared (first use in this function) ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:255: error:BUFSIZ’ undeclared (first use in this function)
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c:257: warning: implicit declaration of function getpid' ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:258: warning: implicit declaration of functionfopen’
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c:260: warning: implicit declaration of function fgets' ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:268: warning: implicit declaration of functionfclose’
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c:255: warning: unused variable temp' ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:255: error: storage size oftemp’ isn’t known

And this one for Atari target (cross-gcc 3.3.3) which does not have mmap() stuff, like
most embedded targets I guess.

…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c:1220:40: sys/mman.h: No such file or directory
…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c: In function mmap_alloc': ../../../SDL-cvs/src/stdlib/SDL_malloc.c:3165: warning: implicit declaration offunctionmmap’
…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c:3165: error: PROT_READ' undeclared (first use in this function) ../../../SDL-cvs/src/stdlib/SDL_malloc.c:3165: error: (Each undeclared identifier is reported only once ../../../SDL-cvs/src/stdlib/SDL_malloc.c:3165: error: for each function it appears in.) ../../../SDL-cvs/src/stdlib/SDL_malloc.c:3165: error:PROT_WRITE’ undeclared (first use in this function)
…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c:3165: error: MAP_PRIVATE' undeclared (first use in this function) ../../../SDL-cvs/src/stdlib/SDL_malloc.c: In functionsys_alloc’:
…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c:3462: error: PROT_READ' undeclared (first use in this function) ../../../SDL-cvs/src/stdlib/SDL_malloc.c:3462: error:PROT_WRITE’ undeclared (first use in this function)
…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c:3462: error: MAP_PRIVATE' undeclared (first use in this function) ../../../SDL-cvs/src/stdlib/SDL_malloc.c: In functionrelease_unused_segments’:
…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c:3582: warning: implicit declaration offunction `munmap’

I always build SDL in a different directory from the sources.–
Patrice Mandin
WWW: http://pmandin.atari.org/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

Hello !

In file included from conftest.c:78:
src/video/windx5/directx.h:7:25: SDL_windows.h: No such file or directory
In file included from src/video/windx5/directx.h:8,
from conftest.c:78:

<<<<<<<<<<<<<<<<

Jup. That was the problem. After doing the following :

Index: directx.h===================================================================
RCS file: /home/sdlweb/libsdl.org/cvs/SDL12/src/video/windx5/directx.h,v
retrieving revision 1.3
diff -r1.3 directx.h
7c7
< #include “SDL_windows.h”

#include “…/…/…/include/SDL_windows.h”

SDL compiled without problems on
CYGWIN ( MinGW Mode ) and with DirectX.

CU

Hi,

Building with Compaq C on Tru64 is successful if applying this patch.
See Bugzilla #136.

HAVE_STRTOD isn’t defined in include/SDL_config.h though Tru64 has strtod.
It is because strtod isn’t checked in configure, I think.–
Hayashi Naoyuki <@Hayashi_Naoyuki>
Key fingerprint = 60A0 D5D3 F58B 3633 2E52 0147 D17F 5578 3FDF F5B6
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: SDL12-osf1.patch
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060208/88b442ad/attachment.txt

Le Tue, 07 Feb 2006 04:23:16 -0800
Sam Lantinga a ?crit:

I’ve made a bunch of changes to the way SDL is built, and I’m sure
things need to be adjusted for the various platforms.

If you get a chance, can you build SDL from CVS and post your results
on this list, along with the OS and compiler version you’re using?

http://www.libsdl.org/cvs/SDL-1.2.tar.gz
http://www.libsdl.org/cvs/SDL-1.2.zip

You may want to take a look at include/SDL_config.h and
include/SDL_config.h.in if you having problems, or curious to see
what’s going on.

According to configure, --enable-libc is yes as default (which I did not change).

I don’t know if it is related, but stdio.h stuff is missing to compile SDL_esdaudio
(Debian Sarge, Linux/x86, gcc 3.3.5)

…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c: In function ESD_WaitAudio': ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:197: warning: implicit declaration of functionkill’
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c: In function ESD_PlayAudio': ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:216: warning: implicit declaration of functionwrite’
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c: In function get_progname': ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:254: error:FILE’ undeclared (first use in this function)
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c:254: error: (Each undeclared identifier is reported only once
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c:254: error: for each function it appears in.)
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c:254: error: fp' undeclared (first use in this function) ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:255: error:BUFSIZ’ undeclared (first use in this function)
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c:257: warning: implicit declaration of function getpid' ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:258: warning: implicit declaration of functionfopen’
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c:260: warning: implicit declaration of function fgets' ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:268: warning: implicit declaration of functionfclose’
…/…/…/…/SDL-cvs/src/audio/esd/SDL_esdaudio.c:255: warning: unused variable temp' ../../../../SDL-cvs/src/audio/esd/SDL_esdaudio.c:255: error: storage size oftemp’ isn’t known

And this one for Atari target (cross-gcc 3.3.3) which does not have mmap() stuff, like
most embedded targets I guess.

…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c:1220:40: sys/mman.h: No such file or directory
…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c: In function mmap_alloc': ../../../SDL-cvs/src/stdlib/SDL_malloc.c:3165: warning: implicit declaration offunctionmmap’
…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c:3165: error: PROT_READ' undeclared (first use in this function) ../../../SDL-cvs/src/stdlib/SDL_malloc.c:3165: error: (Each undeclared identifier is reported only once ../../../SDL-cvs/src/stdlib/SDL_malloc.c:3165: error: for each function it appears in.) ../../../SDL-cvs/src/stdlib/SDL_malloc.c:3165: error:PROT_WRITE’ undeclared (first use in this function)
…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c:3165: error: MAP_PRIVATE' undeclared (first use in this function) ../../../SDL-cvs/src/stdlib/SDL_malloc.c: In functionsys_alloc’:
…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c:3462: error: PROT_READ' undeclared (first use in this function) ../../../SDL-cvs/src/stdlib/SDL_malloc.c:3462: error:PROT_WRITE’ undeclared (first use in this function)
…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c:3462: error: MAP_PRIVATE' undeclared (first use in this function) ../../../SDL-cvs/src/stdlib/SDL_malloc.c: In functionrelease_unused_segments’:
…/…/…/SDL-cvs/src/stdlib/SDL_malloc.c:3582: warning: implicit declaration offunction `munmap’

I always build SDL in a different directory from the sources.

Forget that, it was my fault. SDL was using $(srcdir)/include/SDL_config.h instead of generated $(builddir)/include/SDL_config.h
A simple fix would be to have the builddir include directory listed before the source include directory.

Building from
http://www.libsdl.org/cvs/SDL-1.2.tar.gz
(looks like it’s dated 7 Feb 2006) on Mac OS X 10.3.9, Xcode 1.5/gcc-3.3,
commandline build intended for a fink installation, some whitespace
inserted for legibility:

gcc -dynamiclib -o .libs/libSDL-1.2.0.7.3.dylib .libs/SDL.o
.libs/SDL_error.o .libs/SDL_fatal.o .libs/SDL_loadso.o
[…list of .o files snipped…]
.libs/libSDL.lax/libcpuinfo.a/SDL_cpuinfo.o -L/usr/X11R6/lib
-framework OpenGL -framework AGL -framework AudioToolbox -framework
AudioUnit -framework IOKit -framework Cocoa -framework Carbon -framework
QuickTime -install_name /sw/lib/libSDL-1.2.0.dylib
-Wl,-compatibility_version -Wl,8 -Wl,-current_version -Wl,8.3

ld: warning multiple definitions of symbol _copysign
.libs/libSDL.lax/libvideo.a/SDL_gamma.o definition of _copysign in
section (__TEXT,__text)
/usr/lib/libSystem.dylib(copysign.o) definition of _copysign

ld: warning multiple definitions of symbol _scalbn
.libs/libSDL.lax/libvideo.a/SDL_gamma.o definition of _scalbn in section
(__TEXT,__text)
/usr/lib/libSystem.dylib(scalb.o) definition of _scalbn

ld: Undefined symbols:
_SDL_sprintf
_SDL_ScanUnsignedLong
_SDL_getenv
_SDL_free
_SDL_malloc
_SDL_memcpy
_SDL_memset
_SDL_snprintf
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libSDL.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

The SDL-1.2.9 install gives no such errors. The link line for 1.2.9
is the same as above, modulo different .o files, but also includes a
-lstdc++ reference.

The following was run by the 1.2.9 configure script:

Copying ./src/thread/generic/SDL_syscond.c -> src/thread/SDL_syscond.c

while the CVS version did

Copying ./src/thread/linux/SDL_syscond.c -> src/thread/SDL_syscond.c

which seems a significant difference.

– Andras Salamon @Andras_SalamonOn Tue, Feb 07, 2006 at 04:23:16AM -0800, Sam Lantinga wrote:

If you get a chance, can you build SDL from CVS and post your results on
this list, along with the OS and compiler version you’re using?

skaller at rosella:/work/sdl/SDL-1.2$ ./configure
configure: error: cannot find install-sh or install.sh in . ./… ./…/…–
John Skaller
Felix, successor to C++: http://felix.sf.net

oops … comes from using email ref instead of reading website
instructions (left out autogen.sh:slight_smile:

CVS tarball:

Builds with no errors Ubuntu Breezy Linux, AMD64 processor, gcc 4.0.
A couple of the tests seems to work flawlessly (couldn’t find
a make target to run them all though, is there one?)On Thu, 2006-02-09 at 05:36 +1100, skaller wrote:

skaller at rosella:/work/sdl/SDL-1.2$ ./configure
configure: error: cannot find install-sh or install.sh in . ./… ./…/…


John Skaller
Felix, successor to C++: http://felix.sf.net

Sam Lantinga wrote:

I’ve made a bunch of changes to the way SDL is built, and I’m sure things
need to be adjusted for the various platforms.

If you get a chance, can you build SDL from CVS and post your results on
this list, along with the OS and compiler version you’re using?

http://www.libsdl.org/cvs/SDL-1.2.tar.gz
http://www.libsdl.org/cvs/SDL-1.2.zip

You may want to take a look at include/SDL_config.h and include/SDL_config.h.in if you having problems, or curious to see what’s going on.

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment


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

I’ll compile it with everything I have tomorrow when I get home from the
office (it’ll be too late when I get out of here tonight).