#10830 closed defect (fixed)
libsdl 1.2.11 failing to build
Reported by: | gjznituv+macports@… | Owned by: | yeled@… |
---|---|---|---|
Priority: | High | Milestone: | |
Component: | ports | Version: | 1.3.2 |
Keywords: | libsdl error | Cc: | markd@… |
Port: |
Description
$ 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_dports_devel_libsdl/work/SDL-1.2.11" && CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 make all" returned error 2 Command output: ./include/SDL_syswm.h:55:22: error: X11/Xlib.h: No such file or directory ./include/SDL_syswm.h:56:23: error: X11/Xatom.h: No such file or directory In file included from ./src/events/SDL_events.c:27: ./include/SDL_syswm.h:73: error: parse error before 'XEvent' ./include/SDL_syswm.h:73: warning: no semicolon at end of struct or union ./include/SDL_syswm.h:73: warning: no semicolon at end of struct or union ./include/SDL_syswm.h:74: warning: data definition has no type or storage class ./include/SDL_syswm.h:75: error: parse error before '}' token ./include/SDL_syswm.h:86: error: parse error before 'Display' ./include/SDL_syswm.h:86: warning: no semicolon at end of struct or union ./include/SDL_syswm.h:86: warning: no semicolon at end of struct or union ./include/SDL_syswm.h:86: warning: no semicolon at end of struct or union ./include/SDL_syswm.h:87: warning: data definition has no type or storage class ./include/SDL_syswm.h:97: error: parse error before 'fswindow' ./include/SDL_syswm.h:97: warning: data definition has no type or storage class ./include/SDL_syswm.h:98: error: parse error before 'wmwindow' ./include/SDL_syswm.h:98: warning: data definition has no type or storage class ./include/SDL_syswm.h:99: warning: data definition has no type or storage class ./include/SDL_syswm.h:100: error: parse error before '}' token ./include/SDL_syswm.h:100: warning: data definition has no type or storage class ./include/SDL_syswm.h:101: error: parse error before '}' token ./include/SDL_syswm.h:101: warning: data definition has no type or storage class ./include/SDL_syswm.h:201: error: parse error before '*' token In file included from ./src/events/SDL_sysevents.h:24,
from ./src/events/SDL_events.c:28:
./src/events/../video/SDL_sysvideo.h:218: error: parse error before 'SDL_SysWMinfo' ./src/events/SDL_events.c:49: error: array type has incomplete element type ./src/events/SDL_events.c: In function 'SDL_AddEvent': ./src/events/SDL_events.c:276: error: dereferencing pointer to incomplete type make: * [build/SDL_events.lo] Error 1
Error: Status 1 encountered during processing.
Change History (5)
comment:1 Changed 18 years ago by aschenke@…
comment:2 Changed 18 years ago by kballard (Lily Ballard)
Milestone: | → Available Ports |
---|
comment:3 Changed 18 years ago by pipping@…
Milestone: | Available Ports → Port Bugs |
---|
comment:4 Changed 18 years ago by markd@…
Cc: | markd@… added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Added X11 dependency. Thanks!
It builds OK on my system. Do you have an X11 implementation installed? It looks like libsdl can't find it (error: X11/Xlib.h: No such file or directory). The portfile should probably be updated to include something like: