By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 877 - Build issue: tdeutils: X11/extensions/extutil.h: present but cannot be compiled
Summary: Build issue: tdeutils: X11/extensions/extutil.h: present but cannot be compiled
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdeutils (show other bugs)
Version: R14.0.0 [Trinity]
Hardware: Other Other
: P1 major
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2012-02-26 14:18 CST by Darrell
Modified: 2012-10-19 15:50 CDT (History)
2 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darrell 2012-02-26 14:18:07 CST
The build output:

checking X11/extensions/extutil.h usability... no
checking X11/extensions/extutil.h presence... yes
configure: WARNING: X11/extensions/extutil.h: present but cannot be compiled
configure: WARNING: X11/extensions/extutil.h:     check for missing prerequisite headers?
configure: WARNING: X11/extensions/extutil.h: see the Autoconf documentation
configure: WARNING: X11/extensions/extutil.h:     section "Present But Cannot Be Compiled"
configure: WARNING: X11/extensions/extutil.h: proceeding with the compiler's result
checking for X11/extensions/extutil.h... no

The configure.log:

configure:27143: checking X11/extensions/extutil.h usability
configure:27143: g++ -c -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i486 -mtune=i686 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -DQT_THREAD_SUPPORT  -D_REENTRANT -I/opt/trinity/include -I. -include tqt.h  -I/opt/trinity/include/tde -I/usr/include/tqt conftest.cpp >&5
In file included from /usr/include/X11/extensions/extutil.h:39,
                 from conftest.cpp:108:
/usr/include/X11/extensions/Xext.h:36: error: typedef 'XextErrorHandler' is initialized (use decltype instead)
/usr/include/X11/extensions/Xext.h:36: error: 'Display' was not declared in this scope
/usr/include/X11/extensions/Xext.h:36: error: expected primary-expression before ',' token
/usr/include/X11/extensions/Xext.h:37: error: expected primary-expression before 'const'
/usr/include/X11/extensions/Xext.h:38: error: expected primary-expression before 'const'
/usr/include/X11/extensions/Xext.h:41: error: 'XextErrorHandler' does not name a type
/usr/include/X11/extensions/Xext.h:46: error: 'Display' was not declared in this scope
/usr/include/X11/extensions/Xext.h:46: error: expected primary-expression before ',' token
/usr/include/X11/extensions/Xext.h:47: error: expected primary-expression before 'const'
/usr/include/X11/extensions/Xext.h:48: error: initializer expression list treated as compound expression
In file included from conftest.cpp:108:
/usr/include/X11/extensions/extutil.h:48: error: expected ';' before '*' token
/usr/include/X11/extensions/extutil.h:49: error: expected ';' before '*' token
/usr/include/X11/extensions/extutil.h:50: error: 'XPointer' does not name a type
/usr/include/X11/extensions/extutil.h:61: error: 'Display' has not been declared
/usr/include/X11/extensions/extutil.h:62: error: 'GC' has not been declared
/usr/include/X11/extensions/extutil.h:63: error: 'XExtCodes' has not been declared
/usr/include/X11/extensions/extutil.h:66: error: 'Display' has not been declared
/usr/include/X11/extensions/extutil.h:67: error: 'GC' has not been declared
/usr/include/X11/extensions/extutil.h:68: error: 'XExtCodes' has not been declared
/usr/include/X11/extensions/extutil.h:71: error: 'Display' has not been declared
/usr/include/X11/extensions/extutil.h:72: error: 'GC' has not been declared
/usr/include/X11/extensions/extutil.h:73: error: 'XExtCodes' has not been declared
/usr/include/X11/extensions/extutil.h:76: error: 'Display' has not been declared
/usr/include/X11/extensions/extutil.h:77: error: 'GC' has not been declared
/usr/include/X11/extensions/extutil.h:78: error: 'XExtCodes' has not been declared
/usr/include/X11/extensions/extutil.h:81: error: 'Display' has not been declared
/usr/include/X11/extensions/extutil.h:82: error: 'XFontStruct' has not been declared
/usr/include/X11/extensions/extutil.h:83: error: 'XExtCodes' has not been declared
/usr/include/X11/extensions/extutil.h:86: error: 'Display' has not been declared
/usr/include/X11/extensions/extutil.h:87: error: 'XFontStruct' has not been declared
/usr/include/X11/extensions/extutil.h:88: error: 'XExtCodes' has not been declared
/usr/include/X11/extensions/extutil.h:91: error: 'Display' has not been declared
/usr/include/X11/extensions/extutil.h:92: error: 'XExtCodes' has not been declared
/usr/include/X11/extensions/extutil.h:94: error: expected identifier before '*' token
/usr/include/X11/extensions/extutil.h:95: error: 'Display' has not been declared
/usr/include/X11/extensions/extutil.h:96: error: 'XEvent' has not been declared
/usr/include/X11/extensions/extutil.h:97: error: 'xEvent' has not been declared
/usr/include/X11/extensions/extutil.h:98: error: 'Bool' declared as function returning a function
/usr/include/X11/extensions/extutil.h:99: error: expected identifier before '*' token
/usr/include/X11/extensions/extutil.h:100: error: 'Display' has not been declared
/usr/include/X11/extensions/extutil.h:101: error: 'XEvent' has not been declared
/usr/include/X11/extensions/extutil.h:102: error: 'xEvent' has not been declared
/usr/include/X11/extensions/extutil.h:103: error: 'Status' declared as function returning a function
/usr/include/X11/extensions/extutil.h:105: error: 'Display' has not been declared
/usr/include/X11/extensions/extutil.h:106: error: 'xError' has not been declared
/usr/include/X11/extensions/extutil.h:107: error: 'XExtCodes' has not been declared
/usr/include/X11/extensions/extutil.h:110: error: expected ';' before '(' token
/usr/include/X11/extensions/extutil.h:127: error: 'Display' has not been declared
/usr/include/X11/extensions/extutil.h:131: error: 'XPointer' has not been declared
/usr/include/X11/extensions/extutil.h:135: error: 'Display' has not been declared
/usr/include/X11/extensions/extutil.h:139: error: 'Display' has not been declared

...

| #include <X11/extensions/extutil.h>
configure:27143: result: no
configure:27143: checking X11/extensions/extutil.h presence
configure:27143: g++ -E  -DQT_THREAD_SUPPORT  -D_REENTRANT -I/opt/trinity/include -I. -include tqt.h  -I/opt/trinity/include/tde -I/usr/include/tqt conftest.cpp
configure:27143: $? = 0
configure:27143: result: yes
configure:27143: WARNING: X11/extensions/extutil.h: present but cannot be compiled
configure:27143: WARNING: X11/extensions/extutil.h:     check for missing prerequisite headers?
configure:27143: WARNING: X11/extensions/extutil.h: see the Autoconf documentation
configure:27143: WARNING: X11/extensions/extutil.h:     section "Present But Cannot Be Compiled"
configure:27143: WARNING: X11/extensions/extutil.h: proceeding with the compiler's result
configure:27143: checking for X11/extensions/extutil.h
configure:27143: result: no
Comment 1 Timothy Pearson 2012-05-25 15:17:25 CDT
KDE_CHECK_HEADER automatically includes tqt.h, which conflicts badly with X11 headers.  Therefore, part of the fix was using the proper AC_CHECK_HEADER, and the other part of the fix was including the correct X11 header dependencies in the CXXFLAGS for the check.

This is all fixed in GIT hash f49a187.
Comment 2 Darrell 2012-05-25 19:57:46 CDT
The error message is now gone. Thank you!