Bug Report

I have the latest version of Cygwin, with all packages installed
(downloaded it 11/6/2003), and I have the SDL source snapshot of Sun Sep
21. I ran**
autogen.sh
configure
make

and I got the following error

/libhermes.al/x86_main.lo -luser32 -lgdi32 -lwinmm -L/usr/lib/mingw
-mno-cygw
in
/usr/lib/gcc-lib/i686-pc-mingw32/3.3.1/…/…/…/…/i686-pc-mingw32/bin/ld:
.libs
/libSDL.lax/libhermes.al/mmxp2_32.lo: bad reloc address 0x87 in section
`.text’
collect2: ld returned 1 exit status
make[2]: *** [libSDL.la] Error 1

This is a common problem on newer distributions of Cygwin that I believe
they(the SDL powers that be :slight_smile: are looking into.

It’s a problem with nasm.exe

run “./configure --disable-nasm” for now.

I don’t remember if there was a better way than disabling nasm to
resolve this problem. It might require an older version of nasm.exe.

~ Philip D.S. Thoren

Tony Johnson wrote:>I have the latest version of Cygwin, with all packages installed

(downloaded it 11/6/2003), and I have the SDL source snapshot of Sun Sep
21. I ran
**
autogen.sh
configure
make

and I got the following error

/libhermes.al/x86_main.lo -luser32 -lgdi32 -lwinmm -L/usr/lib/mingw
-mno-cygw
in
/usr/lib/gcc-lib/i686-pc-mingw32/3.3.1/…/…/…/…/i686-pc-mingw32/bin/ld:
.libs
/libSDL.lax/libhermes.al/mmxp2_32.lo: bad reloc address 0x87 in section
`.text’
collect2: ld returned 1 exit status
make[2]: *** [libSDL.la] Error 1


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

E3-I: This message has been scanned for viruses and dangerous content by UML’s antivirus scanning services.


:vsplit vimrulez.txt i vimrulez :w :q

This is a common problem on newer distributions of Cygwin that I believe
they(the SDL powers that be :slight_smile: are looking into.

It’s a problem with nasm.exe

run “./configure --disable-nasm” for now.

This is the correct solution for now. Apparently it’s a bug in binutils,
which has been fixed but hasn’t been released yet.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Hello !

Should the users send bug reports at the moment ?

wizard at wizardspc ~/code/SDL/SDL12
$ make
/bin/sh ./libtool --mode=compile gcc -D_GNU_SOURCE=1 -I./include
-I/usr/include/
mingw -DWIN32 -Uunix -mno-cygwin -c src/SDL_fatal.c -o build/SDL_fatal.lo
gcc -D_GNU_SOURCE=1 -I./include -I/usr/include/mingw -DWIN32 -Uunix
-mno-cygwin
-c src/SDL_fatal.c -DPIC -o build/.libs/SDL_fatal.o
src/SDL_fatal.c: In function SDL_InstallParachute': src/SDL_fatal.c:65: error: storage size of 'action' isn't known src/SDL_fatal.c: In functionSDL_UninstallParachute’:
src/SDL_fatal.c:100: error: storage size of ‘action’ isn’t known
make: *** [build/SDL_fatal.lo] Error 1

wizard at wizardspc ~/code/SDL/SDL12
$

<<

Latest SDL CVS version, latest stable CYGWIN

CU

Hello !

Should the users send bug reports at the moment ?

Sure. I actually know about this one, thanks!

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Hello !

gcc -o testfile testfile.c -g -O2 -I/usr/local/include/SDL -D_THREAD_SAFE
-DHAVE_OPENGL -L/usr/local/lib -lSDLmain -lSDL -framework Cocoa -framework
OpenGL
testfile.c: In function ‘SDL_main’:
testfile.c:52: error: parse error before 'WIN32_FILE_MODE’
make: *** [testfile] Error 1

CU

yep, I sent a patch about this, some macro were left away.

Simply replace “a+” WIN32_FILE_MODE with “a+b” to compile. or wait for CVS
update, as Sam does it really fast ^^

Torsten Giebl a ?crit :> Hello !

gcc -o testfile testfile.c -g -O2 -I/usr/local/include/SDL -D_THREAD_SAFE
-DHAVE_OPENGL -L/usr/local/lib -lSDLmain -lSDL -framework Cocoa -framework
OpenGL
testfile.c: In function ‘SDL_main’:
testfile.c:52: error: parse error before 'WIN32_FILE_MODE’
make: *** [testfile] Error 1

CU


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

yep, I sent a patch about this, some macro were left away.

Simply replace “a+” WIN32_FILE_MODE with “a+b” to compile. or wait for CVS
update, as Sam does it really fast ^^

Fixed! :slight_smile:

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

Hello !

wizard at wizardspc ~/code/SDL/SDL12
$ make
/bin/sh ./build-scripts/mkinstalldirs build
mkdir -p – build
/bin/sh ./libtool --mode=compile gcc -g -O2 -I/usr/include/mingw
-mno-cygwin -I.
/include -c ./src/SDL.c -o build/SDL.lo
mkdir build/.libs
gcc -g -O2 -I/usr/include/mingw -mno-cygwin -I./include -c ./src/SDL.c
-DPIC -
o build/.libs/SDL.o
In file included from ./include/SDL_main.h:26,
from ./include/SDL.h:28,
from ./src/SDL.c:26:
./include/SDL_stdinc.h:74:20: iconv.h: No such file or directory
make: *** [build/SDL.lo] Error 1

wizard at wizardspc ~/code/SDL/SDL12
$

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

As iconv is only installed with
CYGWIN, with MinGW this gives
an error.

CU

./include/SDL_stdinc.h:74:20: iconv.h: No such file or directory

As iconv is only installed with
CYGWIN, with MinGW this gives
an error.

I built on MinGW last night with no problems. The trick is to run
autogen.sh with cygwin, and then run ./configure and make from the
mingw shell.

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Hello !

I built on MinGW last night with no problems. The trick is to run
autogen.sh with cygwin, and then run ./configure and make from the mingw
shell.

How to do this ?!?!?!

How do i run autogen.sh with cygwin and then
run ./configure … with mingw ???

CYGWIN / MinGW is just one part. Okay, i can use
-mno-cygwin to build things using MinGW only.

CU

How to do this ?!?!?!

How do i run autogen.sh with cygwin and then
run ./configure … with mingw ???

CYGWIN / MinGW is just one part. Okay, i can use
-mno-cygwin to build things using MinGW only.

Ah, I see the problem, I’ll test with cygwin only and make sure the
configure script is passing -mno-cygwin by default.

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

gcc -g -O2 -I/usr/include/mingw -mno-cygwin -I./include -c ./src/SDL.c
-DPIC -
o build/.libs/SDL.o
In file included from ./include/SDL_main.h:26,
from ./include/SDL.h:28,
from ./src/SDL.c:26:
./include/SDL_stdinc.h:74:20: iconv.h: No such file or directory
make: *** [build/SDL.lo] Error 1

This is fixed in CVS, thanks!

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment