Public bug reported: I was trying to build a project that uses the StyledTextCtrl from wxWidgets, and got the following output during ./configure:
checking whether wxWidgets OpenGL support works... no checking wx/stc/stc.h usability... no checking wx/stc/stc.h presence... yes configure: WARNING: wx/stc/stc.h: present but cannot be compiled configure: WARNING: wx/stc/stc.h: check for missing prerequisite headers? configure: WARNING: wx/stc/stc.h: see the Autoconf documentation configure: WARNING: wx/stc/stc.h: section "Present But Cannot Be Compiled" configure: WARNING: wx/stc/stc.h: proceeding with the preprocessor's result configure: WARNING: wx/stc/stc.h: in the future, the compiler will take precedence checking for wx/stc/stc.h... yes checking whether wxWidgets StyledTextCtrl support works... no The test compile from config.log shows the following compile errors: /usr/include/wx-2.8/wx/stc/stc.h:1810: error: expected class-name before ‘{’ token /usr/include/wx-2.8/wx/stc/stc.h:1825: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:1827: warning: ISO C++ forbids declaration of ‘wxPoint’ with no type /usr/include/wx-2.8/wx/stc/stc.h:1834: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:1836: warning: ISO C++ forbids declaration of ‘wxPoint’ with no type /usr/include/wx-2.8/wx/stc/stc.h:1912: error: ‘wxPoint’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:1975: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:1976: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:1979: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:1979: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:1982: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:1982: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2003: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2003: warning: ISO C++ forbids declaration of ‘wxBitmap’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2039: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2039: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2042: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2042: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2072: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2072: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2075: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2075: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2084: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2084: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2125: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2125: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2128: error: ‘wxColour’ does not name a type /usr/include/wx-2.8/wx/stc/stc.h:2131: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2131: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2134: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2134: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2160: error: ‘wxColour’ does not name a type /usr/include/wx-2.8/wx/stc/stc.h:2163: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2163: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2240: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2240: warning: ISO C++ forbids declaration of ‘wxBitmap’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2317: error: ‘wxColour’ does not name a type /usr/include/wx-2.8/wx/stc/stc.h:2356: error: ‘wxDC’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:2357: error: ‘wxDC’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:2358: error: ‘wxRect’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:2359: error: ‘wxRect’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:2514: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2514: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2517: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2517: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2520: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2520: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2680: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2680: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2681: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2681: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:2898: error: ‘wxColour’ does not name a type /usr/include/wx-2.8/wx/stc/stc.h:2901: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:2901: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:3021: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:3021: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:3024: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/wx-2.8/wx/stc/stc.h:3024: warning: ISO C++ forbids declaration of ‘wxColour’ with no type /usr/include/wx-2.8/wx/stc/stc.h:3223: error: ‘wxFont’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3259: error: ‘wxPoint’ does not name a type /usr/include/wx-2.8/wx/stc/stc.h:3275: error: ‘wxScrollBar’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3279: error: ‘wxScrollBar’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3356: error: ‘wxPaintEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3357: error: ‘wxScrollWinEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3358: error: ‘wxScrollEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3359: error: ‘wxSizeEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3360: error: ‘wxMouseEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3361: error: ‘wxMouseEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3362: error: ‘wxMouseEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3363: error: ‘wxMouseEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3364: error: ‘wxMouseEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3365: error: ‘wxContextMenuEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3366: error: ‘wxMouseEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3367: error: ‘wxKeyEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3368: error: ‘wxKeyEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3369: error: ‘wxFocusEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3370: error: ‘wxFocusEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3371: error: ‘wxSysColourChangedEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3372: error: ‘wxEraseEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3373: error: ‘wxCommandEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3374: error: ‘wxCommandEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3375: error: ‘wxIdleEvent’ has not been declared /usr/include/wx-2.8/wx/stc/stc.h:3377: error: ‘wxSize’ does not name a type /usr/include/wx-2.8/wx/stc/stc.h:3391: warning: ISO C++ forbids declaration of ‘wxScrollBar’ with no type /usr/include/wx-2.8/wx/stc/stc.h:3391: error: expected ‘;’ before ‘*’ token /usr/include/wx-2.8/wx/stc/stc.h:3392: warning: ISO C++ forbids declaration of ‘wxScrollBar’ with no type /usr/include/wx-2.8/wx/stc/stc.h:3392: error: expected ‘;’ before ‘*’ token /usr/include/wx-2.8/wx/stc/stc.h:1827: error: default argument missing for parameter 3 of ‘wxStyledTextCtrl::wxStyledTextCtrl(wxWindow*, wxWindowID, int)’ /usr/include/wx-2.8/wx/stc/stc.h:1836: error: default argument missing for parameter 3 of ‘bool wxStyledTextCtrl::Create(wxWindow*, wxWindowID, int)’ /usr/include/wx-2.8/wx/stc/stc.h:3403: error: expected class-name before ‘{’ token /usr/include/wx-2.8/wx/stc/stc.h: In member function ‘virtual wxEvent* wxStyledTextEvent::Clone() const’: /usr/include/wx-2.8/wx/stc/stc.h:3461: error: cannot convert ‘wxStyledTextEvent*’ to ‘wxEvent*’ in return I found that by simply rebuilding the source package for wxwidgets2.8_2.8.9.1-0ubuntu6, with no changes whatsoever, just letting it use the default build options, and reinstalling from the resulting .deb files, it fixed the problem. The resulting package from the rebuild that specifically is broken in the repo appears to be libwxgtk2.8-dev. Either the package just needs to be rebuilt, or perhaps it has a build dependency that I happen to have on my system that isn't present on the build machines and isn't specified as a build dep in the control file? ** Affects: wxwidgets2.8 (Ubuntu) Importance: Undecided Status: New -- StyledTextCtrl headers won't compile on Jaunty, appears to be just broken packaging https://bugs.launchpad.net/bugs/356038 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs