problem compiling libsdl

Antoine toine33 at gmail.com
Sat May 26 09:09:23 PDT 2007


Hi,

I have a failure when trying to compile libsdl:

$ sudo port install libsdl
--->  Building libsdl with target all
Error: Target com.apple.build returned: shell command " cd "/opt/ 
local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_devel_libsdl/work/SDL-1.2.11" && make all " returned error 2
Command output: ./include/SDL_opengl.h:6527: error: parse error  
before 'n'
./include/SDL_opengl.h:6528: error: parse error before '*' token
./include/SDL_opengl.h:6528: error: parse error before 'target'
./include/SDL_opengl.h:6528: error: 'GLenum' declared as function  
returning a function
./include/SDL_opengl.h:6542: error: parse error before 'len'
In file included from ./src/events/../video/SDL_sysvideo.h:191,
                  from ./src/events/SDL_sysevents.h:24,
                  from ./src/events/SDL_events.c:28:
./src/events/../video/SDL_glfuncs.h:43: warning: parameter names  
(without types) in function declaration
./src/events/../video/SDL_glfuncs.h:104: error: parse error before 'n'
./src/events/../video/SDL_glfuncs.h:123: warning: no semicolon at end  
of struct or union
./src/events/../video/SDL_glfuncs.h:123: error: parse error before  
'*' token
./src/events/../video/SDL_glfuncs.h:195: error: parse error before  
'left'
./src/events/../video/SDL_glfuncs.h:214: error: parse error before  
'mask'
./src/events/../video/SDL_glfuncs.h:215: error: parse error before  
'mask'
./src/events/../video/SDL_glfuncs.h:273: error: parse error before 's'
./src/events/../video/SDL_glfuncs.h:296: error: parse error before  
'GLfloat'
./src/events/../video/SDL_glfuncs.h:307: error: parse error before  
'GLsizei'
./src/events/../video/SDL_glfuncs.h:313: error: parse error before  
'GLsizei'
./src/events/../video/SDL_glfuncs.h:341: error: parse error before  
'GLsizei'
In file included from ./src/events/SDL_sysevents.h:24,
                  from ./src/events/SDL_events.c:28:
./src/events/../video/SDL_sysvideo.h:309: error: 'free' redeclared as  
different kind of symbol
/usr/include/stdlib.h:159: error: previous declaration of 'free' was  
here
./src/events/../video/SDL_sysvideo.h:310: error: parse error before  
'}' token
./src/events/SDL_events.c: In function 'SDL_GobbleEvents':
./src/events/SDL_events.c:107: error: dereferencing pointer to  
incomplete type
./src/events/SDL_events.c: In function 'SDL_PumpEvents':
./src/events/SDL_events.c:374: error: dereferencing pointer to  
incomplete type
make: *** [build/SDL_events.lo] Error 1

Error: Status 1 encountered during processing.


Could someone help me ?
Thank you,
Antoine.



More information about the macports-users mailing list