Build failed in Jenkins: kde4support_master_qt5 #31
David Narvaez
david.narvaez at computer.org
Wed Jan 22 21:48:18 UTC 2014
On Wed, Jan 22, 2014 at 3:28 AM, KDE CI System <null at kde.org> wrote:
> In file included from <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/k3socketaddress.cpp>:45:0:
> <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/netsupp.h>:168:8: error: redefinition of ‘struct addrinfo’
> In file included from <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/netsupp.h>:30:0,
> from <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/k3socketaddress.cpp>:45:
> /usr/include/netdb.h:567:8: error: previous definition of ‘struct addrinfo’
> make[2]: *** [src/CMakeFiles/KF5KDE4Support.dir/kdecore/k3socketaddress.cpp.o] Error 1
> <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/kcmdlineargs.cpp>:654:66: note: #pragma message: KDE5 TODO: Remove this method once it is in Qt5
> <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/kcmdlineargs.cpp>: In static member function ‘static void KCmdLineArgsStatic::parseAllArgs()’:
> <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/kcmdlineargs.cpp>:890:60: note: #pragma message: KDE5 TODO: use kcoreaddons version number
> <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/kcmdlineargs.cpp>: In static member function ‘static void KCmdLineArgs::enable_i18n()’:
> <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/kcmdlineargs.cpp>:1058:55: note: #pragma message: KDE5 NOTE: What about this method ?
> In file included from <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/netsupp.cpp>:45:0:
> <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/netsupp.h>:168:8: error: redefinition of ‘struct addrinfo’
> In file included from <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/netsupp.cpp>:36:0:
> /usr/include/netdb.h:567:8: error: previous definition of ‘struct addrinfo’
> make[2]: *** [src/CMakeFiles/KF5KDE4Support.dir/kdecore/netsupp.cpp.o] Error 1
> <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/kurl.cpp>: In member function ‘void KUrl::setPath(const QString&)’:
> <http://build.kde.org/job/kde4support_master_qt5/ws/src/kdecore/kurl.cpp>:1644:72: note: #pragma message: KDE5 TODO: Remove tildeExpand feature for local paths
> make[1]: *** [src/CMakeFiles/KF5KDE4Support.dir/all] Error 2
> make: *** [all] Error 2
I came across this build error and spent some time trying to fix it.
While I didn't find a proper fix, I'm sharing my findings since I see
it is still red in Jenkins and I have no more time to spend on this:
The addrinfo struct defined in netsupp.h wouldn't be defined if the
addrinfo struct from /usr/include/netdb.h was properly detected, but
it is not properly detected because when CMake tries to find it
through try_compile, the compilation has the -std=iso9899:1990 flag,
which is set in ECM (KDECompilerSettings.cmake). I removed that flag
and reinstalled ECM, then tried building KDE4Support again and it
works.
Questions that are left unanswered are what changed that caused this
error and, of course, how to fix it properly.
David E. Narvaez
More information about the Kde-frameworks-devel
mailing list