Description of problem: wxGTK is not being built properly with gcc4. This is causing all packages which use wxGTK libs to get errors like the following (from comical): /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2-2.4.so: undefined reference to `wxwxListStringNode::~wxwxListStringNode()' /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2-2.4.so: undefined reference to `wxwxMenuItemListNode::~wxwxMenuItemListNode()' /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2-2.4.so: undefined reference to `wxwxMenuItemListNode::~wxwxMenuItemListNode()' /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2-2.4.so: undefined reference to `vtable for wxFileProto' /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2-2.4.so: undefined reference to `wxwxListStringNode::~wxwxListStringNode()' This is pretty serious, as its failing other builds which would otherwise succeed.
Hooray for classes created by macros :/ Anyways, I'm working on a patch for this and other warnings against gcc4. The offending code is a macro in include/list.h.
Created attachment 113243 [details] GCC4 patch for wxGTK Give this a spin. It cleans up most warnings.
With Ignacio's patch, we are almost there... but we still throw one error: /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2-2.4.so: undefined reference to `vtable for wxFileProto'
Created attachment 113274 [details] Another patch for gcc4 Fixes an incorrect #pragma implementation line. the wxFileProto problem seems to be ok now.
Confirmed, with these two patches, wxGTK2 builds libraries that comical can link to without error. Mr. Maintainer, please commit these patches, schedule a wxGTK rebuild, and close this bug. :) Thanks to Denis and Ignacio.
*** Bug 155142 has been marked as a duplicate of this bug. ***
Anvil did you push this?
Not yet, unfortunately.. i'm unable to connect the cvs. Dunno what i have broken. I will try to catch sopwith to help me to fix it.. Warren, could you commit it please ? Sorry people.
Voila, it's applied in CVS. Thanks people. It's been requested for rebuild for FE4.