Error building on OSX
Posted: Thu May 08, 2003 3:52 pm
Hey all, I'm trying to build exult 1.0 on Mac OS X, 10.2 (aka Darwin 6.5). I configured with just ./configure --host=powerpc (doesn't work otherwise). Here is the error I get:
c++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I./headers -I./imagewin -I./shapes -I./server -I./data -I./objs -I./conf -I./files -I./gumps -I./audio -I./pathfinder -I./usecode -I/sw/include -I/sw/include/SDL -D_THREAD_SAFE -F/System/Library/Frameworks/Carbon.framework -F/System/Library/Frameworks/Cocoa.framework -DXWIN -O2 -Wno-long-long -DEXULT_DATADIR=\"/usr/local/share/exult\" -g -O2 -c exult.cc
In file included from exult.cc:48:
xdrag.h:33: syntax error before `*' token
xdrag.h:34: 'Window' is used as a type, but is not defined as a type.
xdrag.h:35: 'Window' is used as a type, but is not defined as a type.
xdrag.h:36: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:37: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:38: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:39: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:40: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:41: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:42: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:43: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:44: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:45: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:46: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:47: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:48: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:51: parse error before `[' token
xdrag.h:69: parse error before `*' token
xdrag.h:74: `XClientMessageEvent' was not declared in this scope
xdrag.h:74: `cev' was not declared in this scope
xdrag.h:74: invalid data member initialization
xdrag.h:74: (use `=' to initialize static data members)
xdrag.h:74: variable or field `client_msg' declared void
xdrag.h:75: `XSelectionEvent' was not declared in this scope
xdrag.h:75: `sev' was not declared in this scope
xdrag.h:75: invalid data member initialization
xdrag.h:75: variable or field `select_msg' declared void
exult.cc: In function `void Init()':
exult.cc:688: `struct SDL_SysWMinfo' has no member named `info'
exult.cc:688: `ConnectionNumber' undeclared (first use this function)
exult.cc:688: (Each undeclared identifier is reported only once for each
function it appears in.)
exult.cc:690: `struct SDL_SysWMinfo' has no member named `info'
exult.cc:690: `struct SDL_SysWMinfo' has no member named `info'
exult.cc:691: `struct SDL_SysWMinfo' has no member named `info'
exult.cc:693: warning: initializer list being treated as compound expression
exult.cc: In function `void Handle_event(SDL_Event&)':
exult.cc `XEvent' undeclared (first use this function)
exult.cc `ev' undeclared (first use this function)
exult.cc `struct SDL_SysWMmsg' has no member named `event'
exult.cc `ClientMessage' undeclared (first use this function)
exult.cc `XClientMessageEvent' undeclared (first use this function)
exult.cc parse error before `)' token
make[2]: *** [exult.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
[ernie@powermac exult-1.00]$
I am using SDL version 1.2.5 also built from source (using the fink project).
If I can provide more info, please let me know ... Thanks!
c++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I./headers -I./imagewin -I./shapes -I./server -I./data -I./objs -I./conf -I./files -I./gumps -I./audio -I./pathfinder -I./usecode -I/sw/include -I/sw/include/SDL -D_THREAD_SAFE -F/System/Library/Frameworks/Carbon.framework -F/System/Library/Frameworks/Cocoa.framework -DXWIN -O2 -Wno-long-long -DEXULT_DATADIR=\"/usr/local/share/exult\" -g -O2 -c exult.cc
In file included from exult.cc:48:
xdrag.h:33: syntax error before `*' token
xdrag.h:34: 'Window' is used as a type, but is not defined as a type.
xdrag.h:35: 'Window' is used as a type, but is not defined as a type.
xdrag.h:36: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:37: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:38: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:39: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:40: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:41: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:42: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:43: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:44: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:45: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:46: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:47: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:48: 'Atom' is used as a type, but is not defined as a type.
xdrag.h:51: parse error before `[' token
xdrag.h:69: parse error before `*' token
xdrag.h:74: `XClientMessageEvent' was not declared in this scope
xdrag.h:74: `cev' was not declared in this scope
xdrag.h:74: invalid data member initialization
xdrag.h:74: (use `=' to initialize static data members)
xdrag.h:74: variable or field `client_msg' declared void
xdrag.h:75: `XSelectionEvent' was not declared in this scope
xdrag.h:75: `sev' was not declared in this scope
xdrag.h:75: invalid data member initialization
xdrag.h:75: variable or field `select_msg' declared void
exult.cc: In function `void Init()':
exult.cc:688: `struct SDL_SysWMinfo' has no member named `info'
exult.cc:688: `ConnectionNumber' undeclared (first use this function)
exult.cc:688: (Each undeclared identifier is reported only once for each
function it appears in.)
exult.cc:690: `struct SDL_SysWMinfo' has no member named `info'
exult.cc:690: `struct SDL_SysWMinfo' has no member named `info'
exult.cc:691: `struct SDL_SysWMinfo' has no member named `info'
exult.cc:693: warning: initializer list being treated as compound expression
exult.cc: In function `void Handle_event(SDL_Event&)':
exult.cc `XEvent' undeclared (first use this function)
exult.cc `ev' undeclared (first use this function)
exult.cc `struct SDL_SysWMmsg' has no member named `event'
exult.cc `ClientMessage' undeclared (first use this function)
exult.cc `XClientMessageEvent' undeclared (first use this function)
exult.cc parse error before `)' token
make[2]: *** [exult.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
[ernie@powermac exult-1.00]$
I am using SDL version 1.2.5 also built from source (using the fink project).
If I can provide more info, please let me know ... Thanks!