Kdevplatform compile error

Andreas Pakulat apaku at gmx.de
Mon Feb 28 20:46:10 GMT 2011


On 28.02.11 20:33:17, Robin Atwood wrote:
> Still problems building 1.2.0:
> 
> Building CXX object 
> plugins/subversion/CMakeFiles/kdevsubversion.dir/kdevsvncpp/context.o                                                                                        
> In file included from /usr/include/apr-0/apr_file_io.h:29,                                  
>                  from /usr/include/subversion-1/svn_io.h:33,
>                  from /usr/include/subversion-1/svn_subst.h:33,
>                  from /var/tmp/portage/dev-
> util/kdevplatform-1.2.0/work/kdevplatform-1.2.0/plugins/subversion/kdevsvncpp/context.cpp:46:
> /usr/include/apr-0/apr_file_info.h:121: error: conflicting declaration 
> ‘typedef ino_t apr_ino_t’
> /usr/include/apr-1/apr.h:287: error: ‘apr_ino_t’ has a previous declaration as 
> ‘typedef long unsigned int apr_ino_t’
> 
> I can't blame this one on the compiler!

It looks like you have two versions of apr installed and for some reason
headers from both locations are found. The subversion findmodule uses
apr-config/apr-1-config to get the include-dirs, so check what that one
returns. Possibly thats wrong. Oh and apu-config/apu-1-config is also
used, so check that too.

If thats not the problem, you'll have to debug
FindSubversionLibrary.cmake yourself and check why both
/usr/include/apr-0 and /usr/include/apr-1 end up in the include-dirs.

Andreas





More information about the KDevelop mailing list