I posted this on the Wesnoth forum, but I didn't get any help. Perhaps you programmers might know something more about this problem, especially because it seems like it's coming from SDL....

I'm trying to compile Wesnoth 1.1.8 on a friend's Ubuntu box, and although I've installed all the required libraries, it gives the following errors when compiling clipboard.cpp:
Code:
clipboard.cpp: In member function ‘Display* XHelper::dpy()’:
clipboard.cpp:103: error: ‘struct SDL_SysWMinfo’ has no member named ‘info’
clipboard.cpp: In member function ‘Window XHelper::window()’:
clipboard.cpp:108: error: ‘struct SDL_SysWMinfo’ has no member named ‘info’
clipboard.cpp: In member function ‘void XHelper::acquire()’:
clipboard.cpp:118: error: ‘struct SDL_SysWMinfo’ has no member named ‘info’
clipboard.cpp: In member function ‘void XHelper::release()’:
clipboard.cpp:126: error: ‘struct SDL_SysWMinfo’ has no member named ‘info’
clipboard.cpp: In function ‘void handle_system_event(const SDL_Event&)’:
clipboard.cpp:178: error: ‘struct SDL_SysWMmsg’ has no member named ‘event’
clipboard.cpp:185: error: ‘XA_PRIMARY’ was not declared in this scope
clipboard.cpp:211: error: ‘XA_ATOM’ was not declared in this scope
clipboard.cpp: In function ‘void copy_ucs2_to_clipboard(const ucs2_string&)’:
clipboard.cpp:248: error: ‘XA_PRIMARY’ was not declared in this scope
clipboard.cpp: In function ‘void copy_to_clipboard(const std::string&)’:
clipboard.cpp:262: error: ‘XA_PRIMARY’ was not declared in this scope
clipboard.cpp: In function ‘ucs2_string copy_ucs2_from_clipboard()’:
clipboard.cpp:340: error: ‘XA_STRING’ was not declared in this scope
clipboard.cpp: In function ‘std::string copy_from_clipboard()’:
clipboard.cpp:363: error: ‘XA_STRING’ was not declared in this scope
make[2]: *** [clipboard.o] Error 1
Is there something I forgot to compile/install? Thanks.