Bug 12060

Summary: compiz git always tries to build kconfig due to error in configure.ac
Product: xorg Reporter: Jose M. daLuz <jdaluz>
Component: App/compizAssignee: David Reveman <reveman>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: high    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Jose M. daLuz 2007-08-19 06:06:31 UTC
With compiz git as of yesterday, compiz always tries (and fails) to build kconfig plugin even with kde support disabled:

 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2 -I/usr/include/startup-notification-1.0 -I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib64/gnome-vfs-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libxml2 -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -DFUSE_USE_VERSION=26 "-DALL_LINGUAS=\"cs de es fi fr hu it ja pl pt_BR sv zh_CN zh_TW af ar bg bn bs ca cy da el en_GB en_US et gl gu he hi hr id ka km ko lo lt mk mr nb nl pa pt ro ru sk sl sr ta tr uk vi xh zu\"" -DLOCALEDIR=\"/usr/share/locale\" -DPLUGINDIR=\"/usr/lib64/compiz\" -DIMAGEDIR=\"/usr/share/compiz\" -I../include -DMETADATADIR=\"/usr/share/compiz\" -march=k8 -O2 -pipe -ggdb -msse3 -Wall -D_FORTIFY_SOURCE=2 -MT kconfig.lo -MD -MP -MF .deps/kconfig.Tpo -c kconfig.cpp  -fPIC -DPIC -o .libs/kconfig.o
kconfig.cpp:20:21: error: kglobal.h: No such file or directory
kconfig.cpp:21:27: error: kstandarddirs.h: No such file or directory
kconfig.cpp:22:26: error: kapplication.h: No such file or directory
kconfig.cpp:23:27: error: ksimpleconfig.h: No such file or directory
kconfig.cpp:24:19: error: qfile.h: No such file or directory
kconfig.cpp:30: error: expected initializer before '*' token
kconfig.cpp:43: error: ISO C++ forbids declaration of 'KConfig' with no type
kconfig.cpp:43: error: expected ';' before '*' token
kconfig.cpp: In function 'int kconfigRcSync(void*)':
kconfig.cpp:80: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp: At global scope:
kconfig.cpp:103: error: 'QString' does not name a type
kconfig.cpp: In function 'void kconfigSetOption(CompDisplay*, CompOption*, const char*, const char*)':
kconfig.cpp:186: error: 'QString' was not declared in this scope
kconfig.cpp:186: error: expected `;' before 'group'
kconfig.cpp:190: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:190: error: 'group' was not declared in this scope
kconfig.cpp:195: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:199: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:202: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:210: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:211: error: 'kconfigValueToString' was not declared in this scope
kconfig.cpp:218: error: 'QValueList' was not declared in this scope
kconfig.cpp:218: error: expected primary-expression before 'int'
kconfig.cpp:218: error: expected `;' before 'int'
kconfig.cpp:221: error: 'list' was not declared in this scope
kconfig.cpp:223: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:223: error: 'list' was not declared in this scope
kconfig.cpp:234: error: 'QStringList' was not declared in this scope
kconfig.cpp:234: error: expected `;' before 'list'
kconfig.cpp:237: error: 'list' was not declared in this scope
kconfig.cpp:241: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:241: error: 'list' was not declared in this scope
kconfig.cpp: At global scope:
kconfig.cpp:258: error: 'QString' has not been declared
kconfig.cpp: In function 'int kconfigStringToValue(CompDisplay*, int, CompOptionType, CompOptionValue*)':
kconfig.cpp:264: error: request for member 'toInt' in 'str', which is of non-class type 'int'
kconfig.cpp:267: error: request for member 'toFloat' in 'str', which is of non-class type 'int'
kconfig.cpp:270: error: request for member 'ascii' in 'str', which is of non-class type 'int'
kconfig.cpp:270: error: 'strdup' was not declared in this scope
kconfig.cpp:275: error: request for member 'ascii' in 'str', which is of non-class type 'int'
kconfig.cpp:279: error: request for member 'ascii' in 'str', which is of non-class type 'int'
kconfig.cpp:282: error: request for member 'ascii' in 'str', which is of non-class type 'int'
kconfig.cpp:285: error: request for member 'ascii' in 'str', which is of non-class type 'int'
kconfig.cpp:288: error: request for member 'toInt' in 'str', which is of non-class type 'int'
kconfig.cpp:292: error: request for member 'ascii' in 'str', which is of non-class type 'int'
kconfig.cpp: At global scope:
kconfig.cpp:319: error: 'KConfig' has not been declared
kconfig.cpp: In function 'int kconfigReadOptionValue(CompDisplay*, int*, CompOption*, CompOptionValue*)':
kconfig.cpp:328: error: request for member 'readBoolEntry' in '* config', which is of non-class type 'int'
kconfig.cpp:331: error: request for member 'readNumEntry' in '* config', which is of non-class type 'int'
kconfig.cpp:334: error: request for member 'readDoubleNumEntry' in '* config', which is of non-class type 'int'
kconfig.cpp:342: error: request for member 'readEntry' in '* config', which is of non-class type 'int'
kconfig.cpp:355: error: 'QValueList' was not declared in this scope
kconfig.cpp:355: error: expected primary-expression before 'int'
kconfig.cpp:355: error: expected `;' before 'int'
kconfig.cpp:357: error: 'list' was not declared in this scope
kconfig.cpp:357: error: request for member 'readIntListEntry' in '* config', which is of non-class type 'int'
kconfig.cpp:382: error: 'QStringList' was not declared in this scope
kconfig.cpp:382: error: expected `;' before 'list'
kconfig.cpp:384: error: 'list' was not declared in this scope
kconfig.cpp:384: error: request for member 'readListEntry' in '* config', which is of non-class type 'int'
kconfig.cpp: In function 'void kconfigGetDisplayOption(CompDisplay*, CompOption*, const char*)':
kconfig.cpp:430: error: 'QString' was not declared in this scope
kconfig.cpp:430: error: expected `;' before 'group'
kconfig.cpp:431: error: 'QString' does not name a type
kconfig.cpp:435: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:435: error: 'group' was not declared in this scope
kconfig.cpp:437: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:437: error: 'name' was not declared in this scope
kconfig.cpp:441: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:443: error: 'strcmp' was not declared in this scope
kconfig.cpp: In function 'void kconfigGetScreenOption(CompScreen*, CompOption*, const char*, const char*)':
kconfig.cpp:463: error: 'QString' was not declared in this scope
kconfig.cpp:463: error: expected `;' before 'group'
kconfig.cpp:464: error: 'QString' does not name a type
kconfig.cpp:468: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:468: error: 'group' was not declared in this scope
kconfig.cpp:470: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:470: error: 'name' was not declared in this scope
kconfig.cpp:474: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:476: error: 'strcmp' was not declared in this scope
kconfig.cpp: In function 'int kconfigRcReload(void*)':
kconfig.cpp:501: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:519: error: 'QString' was not declared in this scope
kconfig.cpp:519: error: expected `;' before 'screen'
kconfig.cpp:523: error: 'screen' was not declared in this scope
kconfig.cpp:533: error: 'screen' was not declared in this scope
kconfig.cpp: In function 'void kconfigRcChanged(const char*, void*)':
kconfig.cpp:550: error: 'strcmp' was not declared in this scope
kconfig.cpp: In function 'int kconfigSetScreenOption(CompScreen*, const char*, CompOptionValue*)':
kconfig.cpp:639: error: 'QString' was not declared in this scope
kconfig.cpp:639: error: expected `;' before 'screen'
kconfig.cpp:641: error: 'screen' was not declared in this scope
kconfig.cpp:641: error: 'QString' is not a class or namespace
kconfig.cpp: In function 'int kconfigSetScreenOptionForPlugin(CompScreen*, const char*, const char*, CompOptionValue*)':
kconfig.cpp:680: error: 'QString' was not declared in this scope
kconfig.cpp:680: error: expected `;' before 'screen'
kconfig.cpp:682: error: 'screen' was not declared in this scope
kconfig.cpp:682: error: 'QString' is not a class or namespace
kconfig.cpp: In function 'int kconfigInitPluginForScreen(CompPlugin*, CompScreen*)':
kconfig.cpp:737: error: 'QString' was not declared in this scope
kconfig.cpp:737: error: expected `;' before 'screen'
kconfig.cpp:739: error: 'screen' was not declared in this scope
kconfig.cpp:739: error: 'QString' is not a class or namespace
kconfig.cpp: In function 'int kconfigInitDisplay(CompPlugin*, CompDisplay*)':
kconfig.cpp:755: error: 'QString' was not declared in this scope
kconfig.cpp:755: error: expected `;' before 'dir'
kconfig.cpp:761: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:761: error: expected type-specifier before 'KConfig'
kconfig.cpp:761: error: expected `;' before 'KConfig'
kconfig.cpp:762: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:771: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp:780: error: 'dir' was not declared in this scope
kconfig.cpp:780: error: 'KGlobal' has not been declared
kconfig.cpp:780: error: 'QString' is not a class or namespace
kconfig.cpp:782: error: 'QFile' has not been declared
kconfig.cpp: In function 'void kconfigFiniDisplay(CompPlugin*, CompDisplay*)':
kconfig.cpp:826: error: 'struct _KconfigDisplay' has no member named 'config'
kconfig.cpp: In function 'int kconfigInit(CompPlugin*)':
kconfig.cpp:878: error: 'kInstance' was not declared in this scope
kconfig.cpp:878: error: expected type-specifier before 'KInstance'
kconfig.cpp:878: error: expected `;' before 'KInstance'
kconfig.cpp: In function 'void kconfigFini(CompPlugin*)':
kconfig.cpp:894: error: 'kInstance' was not declared in this scope
make[2]: *** [kconfig.lo] Error 1
make[2]: Leaving directory `/var/tmp/paludis/x11-wm/compiz-9999/work/compiz-9999/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/paludis/x11-wm/compiz-9999/work/compiz-9999'
make: *** [all] Error 2

!!! ERROR in x11-wm/compiz-9999:

The configure run has this:

checking for GNOME_WINDOW_SETTINGS... yes
checking for GNOME_KEY_BINDINGS... yes
./configure: line 25684: yes=no: command not found
configure: creating ./config.status

This is caused by this error in configure.ac:

if test "x$use_kde" != "xyes"; then
  $use_kconfig=no;
fi

Which should of course be:

if test "x$use_kde" != "xyes"; then
  use_kconfig=no;
fi
Comment 1 David Reveman 2007-08-19 20:06:15 UTC
Fixed. Thank you.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.