kdevplatform:teamwork plugin under Kubuntu

Andreas Pakulat apaku at gmx.de
Wed Jun 18 10:28:27 UTC 2008


On 18.06.08 19:25:43, Andrew Lowe wrote:
> I have tried to get kdevplatform to compile and it will not compile with the 
> teamwork plugin.  (Want to help with some quanta stuff).
> Disabling this plugin lets it compile with no errors.
> 
> svn co from anonsvn last night (version 821406)
> 
> I am running Kubuntu 8.04 with KDE 4.1 beta packages.
> 
> The last lines of the build are below:
> 
> [69%] Built target network Linking CXX shared library 
> ../../../../lib/libdynamictext.so CMakeFiles/dynamictext.dir/dynamictext.o: In 
> function `__exchange_and_add_dispatch': 
> /usr/include/c++/4.2/ext/atomicity.h:83: undefined reference to 
> `pthread_cancel' /usr/include/c++/4.2/ext/atomicity.h:83: undefined reference 
> to `pthread_cancel' /usr/include/c++/4.2/ext/atomicity.h:83: undefined 
> reference to `pthread_cancel' /usr/include/c++/4.2/ext/atomicity.h:83: 
> undefined reference to `pthread_cancel' 
> /usr/include/c++/4.2/ext/atomicity.h:83: undefined reference to 
> `pthread_cancel' 
> CMakeFiles/dynamictext.dir/dynamictext.o:/usr/include/c++/4.2/ext/atomicity.h:83: 
> more undefined references to `pthread_cancel' follow collect2: ld returned 1 
> exit status make[2]: *** [lib/libdynamictext.so] Error 1 make[1]: *** 
> [plugins/teamwork/lib/dynamictext/CMakeFiles/dynamictext.dir/all] Error 2 
> make: *** [all] Error 2
> 
> atomicity.h seems to be provided by libstdc++6-4.2-dev package.  It is also 
> provided by the same package but versions libstdc++6-4.1, and libstdc++5-3.3. 
> 
> My belief is that this indicates that the teamwork plugin is not compatible 
> with g++ version 4.2. (4.2.3 to be exact) (or perhaps the kubuntu version is 
> broken?)

I'm using gcc 4.2 all the time. So yes this looks as if the ubuntu
compiler package is broken. I recall that I had similar problems with
the CommonC++ library in debian and it was fixed in the meantime but I
can't recall how. 

OTOH this might be a case of "underlinking", though AFAIK we shouldn't
need to link against pthread directly, but the same is true apparently
for "dl". Can you try wether adding "pthread" to the
target_link_libraries line in teamwork/lib/dynamictext/ solves your
problem?

Andreas

-- 
You will inherit millions of dollars.




More information about the KDevelop-devel mailing list