Problems with Gygwin

I have problems builing SDL-1.1.2 for GygWin.
I have the lastest version of the compiler.
I submit you the Error Log and the config.log file.

I would appreciate help.
Thank you.

Miguel Angel Blanch Lardin
http://www.arianne.cx
-------------- next part --------------
Making all in src
make[1]: Entering directory /home/administrador/SDL-1.1.2/src' Making all in main make[2]: Entering directory/home/administrador/SDL-1.1.2/src/main’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/administrador/SDL-1.1.2/src/main’
Making all in audio
make[2]: Entering directory /home/administrador/SDL-1.1.2/src/audio' make[2]: Nothing to be done forall’.
make[2]: Leaving directory /home/administrador/SDL-1.1.2/src/audio' Making all in video make[2]: Entering directory/home/administrador/SDL-1.1.2/src/video’
Making all in wincommon
make[3]: Entering directory /home/administrador/SDL-1.1.2/src/video/wincommon' /bin/sh ../../../libtool --mode=compile gcc -DPACKAGE=\"SDL\" -DVERSION=\"1.1.2\" -Dinline= -I. -I. -g -O2 -I../../../src/video/wincommon -DENABLE_WINDIB -I../../../include -I../../../include/SDL -I../../../src -I../../../src/win32 -I../../../src/main -I../../../src/audio -I../../../src/video -I../../../src/events -I../../../src/joystick -I../../../src/cdrom -I../../../src/thread -I../../../src/timer -I../../../src/endian -I../../../src/file -c SDL_sysevents.c rm -f .libs/SDL_sysevents.lo gcc -DPACKAGE=\"SDL\" -DVERSION=\"1.1.2\" -Dinline= -I. -I. -g -O2 -I../../../src/video/wincommon -DENABLE_WINDIB -I../../../include -I../../../include/SDL -I../../../src -I../../../src/win32 -I../../../src/main -I../../../src/audio -I../../../src/video -I../../../src/events -I../../../src/joystick -I../../../src/cdrom -I../../../src/thread -I../../../src/timer -I../../../src/endian -I../../../src/file -c -DDLL_EXPORT -DPIC SDL_sysevents.c -o .libs/SDL_sysevents.lo In file included from SDL_sysevents.c:38: SDL_lowvideo.h:44: parse error beforeSDL_Instance’
SDL_lowvideo.h:44: warning: data definition has no type or storage class
SDL_lowvideo.h:45: parse error before SDL_Window' SDL_lowvideo.h:45: warning: data definition has no type or storage class SDL_lowvideo.h:55: parse error beforeHWND’
SDL_lowvideo.h:58: parse error before HDC' SDL_lowvideo.h:61: parse error before
SDL_lowvideo.h:61: parse error before HWND' SDL_lowvideo.h:61:LONG’ declared as function returning a function
SDL_lowvideo.h:64: parse error before SDL_hcursor' SDL_lowvideo.h:64: warning: data definition has no type or storage class SDL_lowvideo.h:67: parse error beforeSDL_bounds’
SDL_lowvideo.h:67: warning: data definition has no type or storage class
SDL_lowvideo.h:76: parse error before window' In file included from SDL_sysevents.c:39: SDL_syswm_c.h:31: parse error beforescreen_icn’
SDL_syswm_c.h:31: warning: data definition has no type or storage class
SDL_sysevents.c:48: parse error before SDL_Instance' SDL_sysevents.c:48: warning: data definition has no type or storage class SDL_sysevents.c:49: parse error beforeSDL_Window’
SDL_sysevents.c:49: warning: initialization makes integer from pointer without a cast
SDL_sysevents.c:49: warning: data definition has no type or storage class
SDL_sysevents.c:50: parse error before SDL_bounds' SDL_sysevents.c:50: warning: data definition has no type or storage class SDL_sysevents.c:57: parse error before

SDL_sysevents.c:57: parse error before HWND' SDL_sysevents.c:57:LONG’ declared as function returning a function
SDL_sysevents.c:57: warning: data definition has no type or storage class
SDL_sysevents.c:59: parse error before HWND' SDL_sysevents.c:60: parse error beforeHDC’
SDL_sysevents.c:75: parse error before *' SDL_sysevents.c:75: parse error before
SDL_sysevents.c:75: BOOL' declared as function returning a function SDL_sysevents.c:75: functionBOOL’ is initialized like a variable
SDL_sysevents.c:77: parse error before CALLBACK' SDL_sysevents.c:78: parse error beforehWnd’
SDL_sysevents.c: In function TrackMouseTimerProc': SDL_sysevents.c:80:RECT’ undeclared (first use in this function)
SDL_sysevents.c:80: (Each undeclared identifier is reported only once
SDL_sysevents.c:80: for each function it appears in.)
SDL_sysevents.c:80: parse error before rect' SDL_sysevents.c:81:POINT’ undeclared (first use in this function)
SDL_sysevents.c:83: hWnd' undeclared (first use in this function) SDL_sysevents.c:83:rect’ undeclared (first use in this function)
SDL_sysevents.c:84: LPPOINT' undeclared (first use in this function) SDL_sysevents.c:85:pt’ undeclared (first use in this function)
SDL_sysevents.c:87: idEvent' undeclared (first use in this function) SDL_sysevents.c:90:WM_MOUSELEAVE’ undeclared (first use in this function)
SDL_sysevents.c: At top level:
SDL_sysevents.c:93: parse error before WINAPI' SDL_sysevents.c:93: parse error before

SDL_sysevents.c: In function WIN_TrackMouseEvent': SDL_sysevents.c:95:ptme’ undeclared (first use in this function)
SDL_sysevents.c:95: TME_LEAVE' undeclared (first use in this function) SDL_sysevents.c:97:TIMERPROC’ undeclared (first use in this function)
SDL_sysevents.c:97: parse error before TrackMouseTimerProc' SDL_sysevents.c:99:FALSE’ undeclared (first use in this function)
SDL_sysevents.c: At top level:
SDL_sysevents.c:103: parse error before CALLBACK' SDL_sysevents.c:103: parse error beforehwnd’
SDL_sysevents.c: In function WinMessage': SDL_sysevents.c:117:msg’ undeclared (first use in this function)
SDL_sysevents.c:119: WM_ACTIVATE' undeclared (first use in this function) SDL_sysevents.c:123:wParam’ undeclared (first use in this function)
SDL_sysevents.c:142: WM_MOUSEMOVE' undeclared (first use in this function) SDL_sysevents.c:150:TRACKMOUSEEVENT’ undeclared (first use in this function)
SDL_sysevents.c:150: parse error before tme' SDL_sysevents.c:152:tme’ undeclared (first use in this function)
SDL_sysevents.c:153: TME_LEAVE' undeclared (first use in this function) SDL_sysevents.c:157:TRUE’ undeclared (first use in this function)
SDL_sysevents.c:163: lParam' undeclared (first use in this function) SDL_sysevents.c:166:POINT’ undeclared (first use in this function)
SDL_sysevents.c:166: parse error before center' SDL_sysevents.c:167:center’ undeclared (first use in this function)
SDL_sysevents.c:183: WM_MOUSELEAVE' undeclared (first use in this function) SDL_sysevents.c:190:FALSE’ undeclared (first use in this function)
SDL_sysevents.c:196: WM_LBUTTONDOWN' undeclared (first use in this function) SDL_sysevents.c:197:WM_LBUTTONUP’ undeclared (first use in this function)
SDL_sysevents.c:198: WM_MBUTTONDOWN' undeclared (first use in this function) SDL_sysevents.c:199:WM_MBUTTONUP’ undeclared (first use in this function)
SDL_sysevents.c:200: WM_RBUTTONDOWN' undeclared (first use in this function) SDL_sysevents.c:201:WM_RBUTTONUP’ undeclared (first use in this function)
SDL_sysevents.c:210: warning: unreachable code at beginning of switch statement
SDL_sysevents.c:237: hwnd' undeclared (first use in this function) SDL_sysevents.c:264:WM_GETMINMAXINFO’ undeclared (first use in this function)
SDL_sysevents.c:265: MINMAXINFO' undeclared (first use in this function) SDL_sysevents.c:265:info’ undeclared (first use in this function)
SDL_sysevents.c:266: RECT' undeclared (first use in this function) SDL_sysevents.c:266: parse error beforesize’
SDL_sysevents.c:276: size' undeclared (first use in this function) SDL_sysevents.c:277:x’ undeclared (first use in this function)
SDL_sysevents.c:278: y' undeclared (first use in this function) SDL_sysevents.c:290:GWL_STYLE’ undeclared (first use in this function)
SDL_sysevents.c:292: width' undeclared (first use in this function) SDL_sysevents.c:293:height’ undeclared (first use in this function)
SDL_sysevents.c:296: parse error before )' SDL_sysevents.c:308:WM_MOVE’ undeclared (first use in this function)
SDL_sysevents.c:312: LPPOINT' undeclared (first use in this function) SDL_sysevents.c:321:WM_SETCURSOR’ undeclared (first use in this function)
SDL_sysevents.c:325: HTCLIENT' undeclared (first use in this function) SDL_sysevents.c:333:WM_QUERYNEWPALETTE’ undeclared (first use in this function)
SDL_sysevents.c:340: WM_PALETTECHANGED' undeclared (first use in this function) SDL_sysevents.c:341:HWND’ undeclared (first use in this function)
SDL_sysevents.c:341: parse error before wParam' SDL_sysevents.c:346:WM_PAINT’ undeclared (first use in this function)
SDL_sysevents.c:347: HDC' undeclared (first use in this function) SDL_sysevents.c:347: parse error beforehdc’
SDL_sysevents.c:348: PAINTSTRUCT' undeclared (first use in this function) SDL_sysevents.c:350:hdc’ undeclared (first use in this function)
SDL_sysevents.c:350: ps' undeclared (first use in this function) SDL_sysevents.c:356:WM_CLOSE’ undeclared (first use in this function)
SDL_sysevents.c:362: WM_DESTROY' undeclared (first use in this function) SDL_sysevents.c:120: warning: unreachable code at beginning of switch statement SDL_sysevents.c: In functionSDL_RegisterApp’:
SDL_sysevents.c:383: WNDCLASS' undeclared (first use in this function) SDL_sysevents.c:383: parse error beforeclass’
SDL_sysevents.c:384: HMODULE' undeclared (first use in this function) SDL_sysevents.c:387:HandleMessage’ undeclared (first use in this function)
SDL_sysevents.c:390: class' undeclared (first use in this function) SDL_sysevents.c:391:IMAGE_ICON’ undeclared (first use in this function)
SDL_sysevents.c:392: LR_DEFAULTCOLOR' undeclared (first use in this function) SDL_sysevents.c:395:BLACK_BRUSH’ undeclared (first use in this function)
SDL_sysevents.c:397: CS_OWNDC' undeclared (first use in this function) SDL_sysevents.c:406: warning: assignment makes integer from pointer without a cast SDL_sysevents.c:409:_TrackMouseEvent’ undeclared (first use in this function)
SDL_sysevents.c:410: handle' undeclared (first use in this function) SDL_sysevents.c:412:WINAPI’ undeclared (first use in this function)
SDL_sysevents.c:412: parse error before )' SDL_sysevents.c:412:TRACKMOUSEEVENT’ undeclared (first use in this function)
SDL_sysevents.c:412: parse error before )' make[3]: *** [SDL_sysevents.lo] Error 1 make[3]: Leaving directory/home/administrador/SDL-1.1.2/src/video/wincommon’
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /home/administrador/SDL-1.1.2/src/video' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/administrador/SDL-1.1.2/src’
make: *** [all-recursive] Error 1

-------------- next part --------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:654: checking for a BSD compatible install
configure:707: checking whether build environment is sane
configure:764: checking whether make sets ${MAKE}
configure:811: checking for working aclocal
configure:824: checking for working autoconf
configure:837: checking for working automake
configure:850: checking for working autoheader
configure:863: checking for working makeinfo
configure:884: checking host system type
configure:905: checking target system type
configure:923: checking for inline
configure:937: cc -c conftest.c 1>&5
cc: not found
configure: failed program was:
#line 930 “configure”
#include “confdefs.h”

int main() {
} inline foo() {
; return 0; }
configure:937: cc -c conftest.c 1>&5
cc: not found
configure: failed program was:
#line 930 “configure”
#include “confdefs.h”

int main() {
} inline foo() {
; return 0; }
configure:937: cc -c conftest.c 1>&5
cc: not found
configure: failed program was:
#line 930 “configure”
#include “confdefs.h”

int main() {
} __inline foo() {
; return 0; }
configure:966: checking for Cygwin environment
configure:982: cc -c conftest.c 1>&5
cc: not found
configure: failed program was:
#line 971 “configure”
#include “confdefs.h”

int main() {

#ifndef CYGWIN
#define CYGWIN CYGWIN32
#endif
return CYGWIN;
; return 0; }
configure:999: checking for mingw32 environment
configure:1011: cc -c conftest.c 1>&5
cc: not found
configure: failed program was:
#line 1004 “configure”
#include “confdefs.h”

int main() {
return MINGW32;
; return 0; }
configure:1097: checking build system type
configure:1117: checking for gcc
configure:1230: checking whether the C compiler (gcc ) works
configure:1246: gcc -o conftest conftest.c 1>&5
configure:1272: checking whether the C compiler (gcc ) is a cross-compiler
configure:1277: checking whether we are using GNU C
configure:1286: gcc -E conftest.c
configure:1305: checking whether gcc accepts -g
configure:1348: checking for ld used by GCC
configure:1417: checking if the linker (/usr/bin/ld) is GNU ld
GNU ld version 2.10.90 (with BFD 2.10.90)
configure:1435: checking for BSD-compatible nm
configure:1472: checking whether ln -s works
configure:1493: checking for object suffix
configure:1499: gcc -c -g -O2 conftest.c 1>&5
configure:1519: checking for executable suffix
configure:1529: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1560: checking for ranlib
configure:1627: checking for strip
configure:1696: checking for file
configure:1866: checking for dlltool
configure:1933: checking for as
configure:2000: checking for objdump
configure:2068: checking if libtool should supply DllMain function
configure:2080: gcc -o conftest.exe -g -O2 conftest.c 1>&5
configure:2074: parse error before 0' configure:2074: warning: data definition has no type or storage class configure: In functionmain’:
configure:2076: conflicting types for DllMain' configure:2074: previous declaration ofDllMain’
configure:2076: warning: extern declaration of `DllMain’ doesn’t match global one
configure: failed program was:
#line 2073 “configure”
#include "confdefs.h"
DllMain (0, 0, 0);
int main() {
extern int attribute((stdcall)) DllMain(void*, int, void*);
; return 0; }
ltconfig:557:checking for gcc option to produce PIC
ltconfig:687:checking that gcc PIC flag -DDLL_EXPORT works.
ltconfig:696: gcc -c -g -O2 -DDLL_EXPORT -DPIC conftest.c 1>&5
ltconfig:748: checking if gcc static flag -static works
ltconfig:756: gcc -o conftest -g -O2 -static conftest.c 1>&5
ltconfig:793: checking if gcc supports -c -o file.o
ltconfig:794: gcc -c -g -O2 -o out/conftest2.o conftest.c 1>&5
ltconfig:826: checking if gcc supports -c -o file.lo
ltconfig:827: gcc -c -g -O2 -c -o conftest.lo conftest.c 1>&5
ltconfig:878: checking if gcc supports -fno-rtti -fno-exceptions
ltconfig:879: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>&5
ltconfig:1873: checking if global_symbol_pipe works
ltconfig:1874: gcc -c -g -O2 conftest.c 1>&5
ltconfig:1877: eval "/usr/bin/nm -B conftest.o | sed -n -e ‘s/^.[ ]([ABCDGISTW])[ ][ ]()([_A-Za-z][A-Za-z0-9])$/\1 \2\3 \3/p’ > conftest.nm"
cannot find nm_test_var in conftest.nm
ltconfig:1873: checking if global_symbol_pipe works
ltconfig:1874: gcc -c -g -O2 conftest.c 1>&5
ltconfig:1877: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.
[ ]([ABCDGISTW])[ ][ ]*(
)([_A-Za-z][_A-Za-z0-9]*)$/\1 \2\3 \3/p’ > conftest.nm"
ltconfig:1929: gcc -o conftest -g -O2 -fno-builtin -fno-rtti -fno-exceptions conftest.c conftstm.o 1>&5
configure:2216: checking whether make sets ${MAKE}
configure:2245: checking for gcc
configure:2358: checking whether the C compiler (gcc -g -O2 ) works
configure:2374: gcc -o conftest.exe -g -O2 conftest.c 1>&5
configure:2400: checking whether the C compiler (gcc -g -O2 ) is a cross-compiler
configure:2405: checking whether we are using GNU C
configure:2433: checking whether gcc accepts -g
configure:2768: checking for a BSD compatible install
configure:2834: checking for working const
configure:2888: gcc -c -g -O2 conftest.c 1>&5
configure:4753: checking Win32 compiler
configure:4766: gcc -c -g -O2 conftest.c 1>&5
configure:4796: checking for DirectX headers and libraries
configure:4809: gcc -c -g -O2 conftest.c 1>&5
In file included from configure:4801:
src/video/windx5/directx.h:75: ddraw.h: No such file or directory
src/video/windx5/directx.h:76: dsound.h: No such file or directory
src/video/windx5/directx.h:77: dinput.h: No such file or directory
configure: failed program was:
#line 4799 “configure”
#include “confdefs.h”

     #include "src/video/windx5/directx.h"

int main() {

; return 0; }

I have problems builing SDL-1.1.2 for GygWin.

Cygwin is not supported. Mingwin is.
http://www.libsdl.org/Xmingw32/

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Sam Lantinga wrote:

I have problems builing SDL-1.1.2 for GygWin.

Cygwin is not supported. Mingwin is.
http://www.libsdl.org/Xmingw32/

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

To say that another way. Cygwin is required to run ./configure
and make but the compiler needs to use native Win32 APIs not
the Cygwin POSIX layer. You should be able to pass the
-mno-cygwin flag to cygwin’s gcc to get it to compile in
Win32 mode. If that does not work for you, then grab mingw,
it is like the Cygwin compiler but it only supports Win32
mode.

Mo DeJong
Red Hat Inc

To say that another way. Cygwin is required to run ./configure
and make but the compiler needs to use native Win32 APIs not
the Cygwin POSIX layer. You should be able to pass the
-mno-cygwin flag to cygwin’s gcc to get it to compile in
Win32 mode. If that does not work for you, then grab mingw,
it is like the Cygwin compiler but it only supports Win32
mode.

Mo DeJong
Red Hat Inc

How can I do this?
Could u write a little example ?

Thank you
Miguel

Miguel Angel Blanch Lardin wrote:

To say that another way. Cygwin is required to run ./configure
and make but the compiler needs to use native Win32 APIs not
the Cygwin POSIX layer. You should be able to pass the
-mno-cygwin flag to cygwin’s gcc to get it to compile in
Win32 mode. If that does not work for you, then grab mingw,
it is like the Cygwin compiler but it only supports Win32
mode.

Mo DeJong
Red Hat Inc

How can I do this?
Could u write a little example ?

Thank you
Miguel

Is this what you are asking for?

CFLAGS=-mno-cygwin
./configure

Mo DeJong
Red Hat Inc