Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544400 - kde-frameworks/kcrash 5.8.0 error: conflicting declaration ‘typedef struct _XDisplay Display’
Summary: kde-frameworks/kcrash 5.8.0 error: conflicting declaration ‘typedef struct _X...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-25 00:38 UTC by Andreas G. Filzer
Modified: 2015-04-02 01:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.txt,10.13 KB, text/plain)
2015-03-25 00:38 UTC, Andreas G. Filzer
Details
IncludeDir_listing (includeDir.txt,124.62 KB, text/plain)
2015-03-28 18:53 UTC, Andreas G. Filzer
Details
build_log (file_544400.txt,15.53 KB, text/plain)
2015-04-01 00:13 UTC, Andreas G. Filzer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas G. Filzer 2015-03-25 00:38:09 UTC
Created attachment 399688 [details]
emerge --info

Scanning dependencies of target KF5Crash
make[2]: Leaving directory '/var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build'
make -f src/CMakeFiles/KF5Crash.dir/build.make src/CMakeFiles/KF5Crash.dir/build
make[2]: Entering directory '/var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build'
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build/CMakeFiles 1
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build/CMakeFiles 2
[100%] [100%] Building CXX object src/CMakeFiles/KF5Crash.dir/KF5Crash_automoc.cpp.o
Building CXX object src/CMakeFiles/KF5Crash.dir/kcrash.cpp.o                                                                                                                                                                                                                   
cd /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build/src && /usr/bin/x86_64-pc-linux-gnu-g++  -DKCOREADDONS_LIB -DKF5Crash_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -DQT_NO_DEBUG -DNDEBUG -march=native -O2 -pipe -mmmx -msse -msse2 -mssse3 -msse4  -std=c++0x -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -I/var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build/src -I/var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0/src -isystem /usr/local/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtX11Extras    -o CMakeFiles/KF5Crash.dir/KF5Crash_automoc.cpp.o -c /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build/src/KF5Crash_automoc.cpp
cd /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build/src && /usr/bin/x86_64-pc-linux-gnu-g++  -DKCOREADDONS_LIB -DKF5Crash_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -DQT_NO_DEBUG -DNDEBUG -march=native -O2 -pipe -mmmx -msse -msse2 -mssse3 -msse4  -std=c++0x -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -I/var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build/src -I/var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0/src -isystem /usr/local/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtX11Extras    -o CMakeFiles/KF5Crash.dir/kcrash.cpp.o -c /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0/src/kcrash.cpp
In file included from /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0/src/kcrash.cpp:57:0:
/usr/include/qt5/QtX11Extras/qx11info_x11.h:40:26: error: conflicting declaration ‘typedef struct _XDisplay Display’
 typedef struct _XDisplay Display;
                          ^
In file included from /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0/src/kcrash.cpp:47:0:
/usr/include/kstartupinfo.h:38:14: error: ‘Display’ has a previous declaration as ‘typedef void Display’
 typedef void Display;
              ^
In file included from /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0/src/kcrash.cpp:58:0:
/usr/include/X11/Xlib.h:487:26: error: conflicting declaration ‘typedef struct _XDisplay Display’
 typedef struct _XDisplay Display;
                          ^
In file included from /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0/src/kcrash.cpp:47:0:
/usr/include/kstartupinfo.h:38:14: error: ‘Display’ has a previous declaration as ‘typedef void Display’
 typedef void Display;
              ^
/var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0/src/kcrash.cpp: In function ‘void KCrash::defaultCrashHandler(int)’:
/var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0/src/kcrash.cpp:462:35: error: ‘applicationDataPointer’ is not a member of ‘KAboutData’
         const KAboutData *about = KAboutData::applicationDataPointer();
                                   ^
/var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0/src/kcrash.cpp:481:32: error: ‘startupId’ is not a member of ‘KStartupInfo’
         QByteArray startupId = KStartupInfo::startupId();
                                ^
src/CMakeFiles/KF5Crash.dir/build.make:54: recipe for target 'src/CMakeFiles/KF5Crash.dir/kcrash.cpp.o' failed
make[2]: *** [src/CMakeFiles/KF5Crash.dir/kcrash.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build'
CMakeFiles/Makefile2:107: recipe for target 'src/CMakeFiles/KF5Crash.dir/all' failed
make[1]: *** [src/CMakeFiles/KF5Crash.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build'
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: kde-frameworks/kcrash-5.8.0::gentoo failed (compile phase):
 *   emake failed

########
[ebuild  N    ] kde-frameworks/kcrash-5.8.0  USE="X nls -debug -doc {-test}" 
other Packet dev-qt/qtx11extras-5.4.1

krash compile without error if USE="-X nls -debug -doc {-test}"
Comment 1 Michael Palimaka (kensington) gentoo-dev 2015-03-25 10:04:36 UTC
What's the output of emerge -pv kwindowsystem?
Comment 2 Andreas G. Filzer 2015-03-25 21:49:33 UTC
[ebuild   R    ] kde-frameworks/kwindowsystem-5.8.0:5/5.8::gentoo  USE="X nls -debug -doc {-test}"
Comment 3 Michael Palimaka (kensington) gentoo-dev 2015-03-27 14:51:16 UTC
Do you have /usr/include/KF5/KWindowSystem/kstartupinfo.h or any stray headers in /usr/local/include?
Comment 4 Andreas G. Filzer 2015-03-28 18:53:46 UTC
Created attachment 399972 [details]
IncludeDir_listing
Comment 5 Andreas G. Filzer 2015-03-28 19:03:19 UTC
Yes. It comes from Package kde-frameworks/kwindowsystem. After reinstall i get the same error as before.

# ls -lh  /usr/include/KF5/KWindowSystem/
insgesamt 264K
-rw-r--r-- 1 root root   24 25. Mär 22:51 KKeyServer
-rw-r--r-- 1 root root   29 25. Mär 22:51 KSelectionOwner
-rw-r--r-- 1 root root   31 25. Mär 22:51 KSelectionWatcher
-rw-r--r-- 1 root root   26 25. Mär 22:51 KStartupInfo
-rw-r--r-- 1 root root   28 25. Mär 22:51 KUserTimestamp
-rw-r--r-- 1 root root   28 25. Mär 22:51 KWindowEffects
-rw-r--r-- 1 root root   25 25. Mär 22:51 KWindowInfo
-rw-r--r-- 1 root root   27 25. Mär 22:51 KWindowSystem
-rw-r--r-- 1 root root   24 25. Mär 22:51 KXMessages
-rw-r--r-- 1 root root   19 25. Mär 22:51 NETWM
-rw-r--r-- 1 root root  331 25. Mär 22:51 config-kwindowsystem.h
-rw-r--r-- 1 root root 6,8K  7. Mär 15:52 fixx11h.h
-rw-r--r-- 1 root root 2,2K  7. Mär 15:52 kkeyserver.h
-rw-r--r-- 1 root root 5,5K  7. Mär 15:52 kkeyserver_x11.h
-rw-r--r-- 1 root root   89  7. Mär 15:52 kmanagerselection.h
-rw-r--r-- 1 root root 7,9K  7. Mär 15:52 kselectionowner.h
-rw-r--r-- 1 root root 5,1K  7. Mär 15:52 kselectionwatcher.h
-rw-r--r-- 1 root root  25K  7. Mär 15:52 kstartupinfo.h
-rw-r--r-- 1 root root 1,5K  7. Mär 15:52 kusertimestamp.h
-rw-r--r-- 1 root root 6,0K  7. Mär 15:52 kwindoweffects.h
-rw-r--r-- 1 root root  20K  7. Mär 15:52 kwindowinfo.h
-rw-r--r-- 1 root root  26K  7. Mär 15:52 kwindowsystem.h
-rw-r--r-- 1 root root 1,1K 25. Mär 22:51 kwindowsystem_export.h
-rw-r--r-- 1 root root 5,5K  7. Mär 15:52 kxmessages.h
-rw-r--r-- 1 root root  52K  7. Mär 15:52 netwm.h
-rw-r--r-- 1 root root  25K  7. Mär 15:52 netwm_def.h

any stray headers: Please look in "IncludeDir_listing" file. Do you know what you're looking for. I don't.
Comment 6 Michael Palimaka (kensington) gentoo-dev 2015-03-31 12:16:24 UTC
(In reply to Andreas G. Filzer from comment #4)
> Created attachment 399972 [details]
> IncludeDir_listing

Is this really the contents of /usr/local/include? Also, could you please attach the full kcrash build log.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2015-03-31 12:34:58 UTC
Also, is /usr/local/include a symlink (or does it contain any symlinks)?
Comment 8 Karol Herbst 2015-03-31 12:59:07 UTC
could you get us the output of "grep /usr/local/include /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build/" ?
Comment 9 Karol Herbst 2015-03-31 12:59:50 UTC
I meant:
"could you get us the output of "grep /usr/local/include /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build/CMakeCache.txt"

note: you have to tried building kcrash before doing so.
Comment 10 Andreas G. Filzer 2015-04-01 00:13:16 UTC
Created attachment 400308 [details]
build_log
Comment 11 Andreas G. Filzer 2015-04-01 00:16:54 UTC
(In reply to Michael Palimaka (kensington) from comment #6)
> (In reply to Andreas G. Filzer from comment #4)
> > Created attachment 399972 [details]
> > IncludeDir_listing
> 
> Is this really the contents of /usr/local/include? Also, could you please
> attach the full kcrash build log.

1)
# ls -lh /usr/local/include
lrwxrwxrwx 1 root root 12 25. Jul 2013  /usr/local/include -> /usr/include

2) build_log
https://bugs.gentoo.org/attachment.cgi?id=400308&action=edit
Comment 12 Andreas G. Filzer 2015-04-01 00:24:18 UTC
(In reply to Karol Herbst from comment #9)
> I meant:
> "could you get us the output of "grep /usr/local/include
> /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build/
> CMakeCache.txt"
> 
> note: you have to tried building kcrash before doing so.

No, problemo ;-)

# grep /usr/local/include /var/tmp/portage/kde-frameworks/kcrash-5.8.0/work/kcrash-5.8.0_build/CMakeCache.txt

X11_ICE_INCLUDE_PATH:PATH=/usr/local/include
X11_SM_INCLUDE_PATH:PATH=/usr/local/include
X11_X11_INCLUDE_PATH:PATH=/usr/local/include
X11_XRes_INCLUDE_PATH:PATH=/usr/local/include
X11_XShm_INCLUDE_PATH:PATH=/usr/local/include
X11_XSync_INCLUDE_PATH:PATH=/usr/local/include
X11_XTest_INCLUDE_PATH:PATH=/usr/local/include
X11_Xaccessrules_INCLUDE_PATH:PATH=/usr/local/include
X11_Xaccessstr_INCLUDE_PATH:PATH=/usr/local/include
X11_Xau_INCLUDE_PATH:PATH=/usr/local/include
X11_Xcomposite_INCLUDE_PATH:PATH=/usr/local/include
X11_Xcursor_INCLUDE_PATH:PATH=/usr/local/include
X11_Xdamage_INCLUDE_PATH:PATH=/usr/local/include
X11_Xdmcp_INCLUDE_PATH:PATH=/usr/local/include
X11_Xfixes_INCLUDE_PATH:PATH=/usr/local/include
X11_Xft_INCLUDE_PATH:PATH=/usr/local/include
X11_Xi_INCLUDE_PATH:PATH=/usr/local/include
X11_Xinerama_INCLUDE_PATH:PATH=/usr/local/include
X11_Xinput_INCLUDE_PATH:PATH=/usr/local/include
X11_Xkb_INCLUDE_PATH:PATH=/usr/local/include
X11_Xkbfile_INCLUDE_PATH:PATH=/usr/local/include
X11_Xkblib_INCLUDE_PATH:PATH=/usr/local/include
X11_Xlib_INCLUDE_PATH:PATH=/usr/local/include
X11_Xmu_INCLUDE_PATH:PATH=/usr/local/include
X11_Xpm_INCLUDE_PATH:PATH=/usr/local/include
X11_Xrandr_INCLUDE_PATH:PATH=/usr/local/include
X11_Xrender_INCLUDE_PATH:PATH=/usr/local/include
X11_Xscreensaver_INCLUDE_PATH:PATH=/usr/local/include
X11_Xshape_INCLUDE_PATH:PATH=/usr/local/include
X11_Xt_INCLUDE_PATH:PATH=/usr/local/include
X11_Xutil_INCLUDE_PATH:PATH=/usr/local/include
X11_Xv_INCLUDE_PATH:PATH=/usr/local/include
X11_dpms_INCLUDE_PATH:PATH=/usr/local/include
X11_xf86vmode_INCLUDE_PATH:PATH=/usr/local/include
FIND_PACKAGE_MESSAGE_DETAILS_X11:INTERNAL=[/usr/lib64/libX11.so][/usr/local/include]
Comment 13 Karol Herbst 2015-04-01 09:50:57 UTC
output of "find /usr/lib/cmake/ -type f -exec grep local/include {} +" would be nice. I am sure that some of the KF5 modules just include /usr/local/include, because there is an entry somewhere.

Also you should remove this /usr/local/include symlink because it can cause troubles like this. Do you know why you needed it in the first place?
Comment 14 Andreas G. Filzer 2015-04-02 01:27:37 UTC
(In reply to Karol Herbst from comment #13)
> output of "find /usr/lib/cmake/ -type f -exec grep local/include {} +" would
> be nice. I am sure that some of the KF5 modules just include
> /usr/local/include, because there is an entry somewhere.
> 
> Also you should remove this /usr/local/include symlink because it can cause
> troubles like this. Do you know why you needed it in the first place?

BINGO!

1)
# find /usr/lib/cmake/ -type f -exec grep local/include {} +
/usr/lib/cmake/TelepathyLoggerQt4/TelepathyLoggerQt4Config.cmake:                                           /usr/local/include/QtGStreamer)
/usr/lib/cmake/KdepimLibs/KdepimLibsConfig.cmake:set(KDEPIMLIBS_INCLUDE_DIRS        "/usr/include" "/usr/include/KDE" "/usr/local/include")
/usr/lib/cmake/KF5WindowSystem/KF5WindowSystemTargets.cmake:  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/KF5/KWindowSystem;/usr/local/include;/usr/local/include;/usr/include/KF5;${_IMPORT_PREFIX}/include/KF5"
/usr/lib/cmake/Vigra/VigranumpyConfig.cmake:foreach(PATH ../../../include;../../python2.7/site-packages/numpy/core/include;../../../include/python2.7;../../../local/include)


2) I removed the symlink /usr/local/include. It was for an old wanpipe project (2013), but the sangoma-hardware have had a bug, so i don't need it any more.
After remove the symlink and re-emerged the kde-frameworks packages kcrash will compile without errors.

# find /usr/lib/cmake/ -type f -exec grep local/include {} +
/usr/lib/cmake/TelepathyLoggerQt4/TelepathyLoggerQt4Config.cmake:                                           /usr/local/include/QtGStreamer)
/usr/lib/cmake/KdepimLibs/KdepimLibsConfig.cmake:set(KDEPIMLIBS_INCLUDE_DIRS        "/usr/include" "/usr/include/KDE" "/usr/local/include")
/usr/lib/cmake/Vigra/VigranumpyConfig.cmake:foreach(PATH ../../../include;../../python2.7/site-packages/numpy/core/include;../../../include/python2.7;../../../local/include)


Michael Palimaka and Karol Herbst,
thanks very much for your help and solution!
Andreas G. Filzer