trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: October 2011

Re: [trinity-devel] kdelibs SVN FTBFS

From: /dev/ammo42 <mickeytintincolle@...>
Date: Wed, 26 Oct 2011 00:39:53 +0200
Le Wed, 26 Oct 2011 00:26:27 +0200,
Francois Andriot <francois.andriot@...> a �crit :

> Hello, I'm trying to  build Trinity kdelibs SVN revision 1260756 on
> RHEL 6. But I get the following "conflicting types" errors :
> 
> Building C object dcop/KDE-ICE/CMakeFiles/kICE-static.dir/setauth.c.o
> cd /home/albator/rpmbuild/BUILD/kdelibs/build/dcop/KDE-ICE && 
> /usr/lib64/ccache/gcc  -DHAVE_CONFIG_H -DICE_t
> -DTRANS_SERVER -DTRANS_CLIENT -DUNIXCONN -DANSICPP -O2 -g -pipe -Wall 
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -f
> stack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
> -include tqt.h -I/home/albator/rpmbuild/BUILD/
> kdelibs/build -I/home/albator/rpmbuild/BUILD/kdelibs/dcop 
> -I/usr/lib64/qt-3.3/include -I/opt/trinity/include/
> tqt   -fPIC -o CMakeFiles/kICE-static.dir/setauth.c.o   -c 
> /home/albator/rpmbuild/BUILD/kdelibs/dcop/KDE-ICE/
> setauth.c
> /home/albator/rpmbuild/BUILD/kdelibs/kdecore/fakes.c:78: error: 
> conflicting types for 'unsetenv'
> /usr/include/stdlib.h:589: note: previous declaration of 'unsetenv'
> was here /home/albator/rpmbuild/BUILD/kdelibs/kdecore/fakes.c:132:
> error: conflicting types for 'usleep'
> /usr/include/unistd.h:457: note: previous declaration of 'usleep' was
> here /home/albator/rpmbuild/BUILD/kdelibs/kdecore/fakes.c: In
> function
> 'mkdtemp': /home/albator/rpmbuild/BUILD/kdelibs/kdecore/fakes.c:306:
> warning: implicit declaration of function 'mkdir' make[2]: ***
> [kdecore/CMakeFiles/kdefakes-shared.dir/fakes.c.o] Error 1 make[2]:
> Leaving directory `/home/albator/rpmbuild/BUILD/kdelibs/build'
> make[1]: *** [kdecore/CMakeFiles/kdefakes-shared.dir/all] Error 2
> 
> ....
> 
> [  2%] Building CXX object
> kdefx/CMakeFiles/kdefx-shared.dir/kstyle.cpp.o
> cd /home/albator/rpmbuild/BUILD/kdelibs/build/kdefx
> && /usr/lib64/ccache/c++   -Dkdefx_shared_EXPORTS -DHAVE_ CONFIG_H
> -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
> -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT
> -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h
> -fPIC -I/usr/lib64/qt-3.3/include -I/opt/trinity/include/tqt
> -I/home/albator/rpmbuild/BUILD/kdelibs/build/kdefx 
> -I/home/albator/rpmbuild/BUILD/kdelibs/build -I/home/albat
> or/rpmbuild/BUILD/kdelibs/kdefx 
> -I/home/albator/rpmbuild/BUILD/kdelibs/build/kdecore 
> -I/home/albator/rpmbuild
> /BUILD/kdelibs/kdecore   -o CMakeFiles/kdefx-shared.dir/kstyle.cpp.o
> -c /home/albator/rpmbuild/BUILD/kdelibs/
> kdefx/kstyle.cpp
> In file included from 
> /home/albator/rpmbuild/BUILD/kdelibs/kdecore/network/ksocketaddress.cpp:42:
> /home/albator/rpmbuild/BUILD/kdelibs/kdecore/netsupp.h:176: error: 
> redefinition of 'struct addrinfo'
> /usr/include/netdb.h:570: error: previous definition of 'struct
> addrinfo' make[2]: *** 
> [kdecore/network/CMakeFiles/kdecorenetwork-static.dir/ksocketaddress.cpp.o] 
> Error 1
> 
> 
> What should I inspect to solve it ?
Figure out why your generated config.h is completely broken because of
some (POSIX!) features not detected. If there are conflicting
definitions, this is because the configuration results make your system
appear broken and makes KDE redefine some functions/structures already
provided by glibc.
> 
> Thanks
> Francois Andriot
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> trinity-devel-unsubscribe@... For additional
> commands, e-mail: trinity-devel-help@... Read
> list messsages on the Web archive:
> http://trinity-devel.pearsoncomputing.net/ Please remember not to
> top-post:
> http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
>