Bug 161005 - kdesdk does not find apr_xlate.h
Summary: kdesdk does not find apr_xlate.h
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: svn (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Mickael Marchand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-19 11:16 UTC by Treeve Jelbert
Modified: 2018-08-24 21:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
fix for the incomplete FindSVN.cmake (925 bytes, patch)
2008-09-26 14:11 UTC, Jaka Kranjc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Treeve Jelbert 2008-04-19 11:16:13 UTC
Version:           4.0.70 (using Devel)
Installed from:    Compiled sources
Compiler:          gcc-4.3.0 
OS:                Linux

[ 47%] Building CXX object kioslave/svn/CMakeFiles/kio_svn.dir/svn.o
In file included from /usr/src/kdesdk-4.0.69/kioslave/svn/svn.cpp:41:
/usr/include/subversion-1/svn_utf.h:27:23: error: apr_xlate.h: No such file or
directory
/usr/src/kdesdk-4.0.69/kioslave/svn/svn.cpp:842:2: warning: #warning "kde4: port dbus
stuff"
/usr/src/kdesdk-4.0.69/kioslave/svn/svn.cpp:840: warning: unused parameter 'message'
/usr/src/kdesdk-4.0.69/kioslave/svn/svn.cpp: In static member function 'static
svn_error_t* kio_svnProtocol::commitLogPrompt(const char**, const char**,
apr_array_header_t*, void*, apr_pool_t*)':
/usr/src/kdesdk-4.0.69/kioslave/svn/svn.cpp:1270: warning: unused variable 'p'
make[2]: *** [kioslave/svn/CMakeFiles/kio_svn.dir/svn.o] Error 1
make[1]: *** [kioslave/svn/CMakeFiles/kio_svn.dir/all] Error 2
make: *** [all] Error 2




but apr-util-1.2.12 installs /usr/include/apr-1/apr_xlate.h


I have the following software installed:
apr         1.2.12
apr-util    1.2.12
subversion  1.4.6
cmake       2.4.8

The locations of the following files may be of use.

/usr/include/subversion-1/svn_config.h
/usr/lib/libsvn_client-1.so

/usr/bin/apr-1-config
/usr/include/apr/apr.h
/usr/lib/libapr.so

/usr/share/cmake/Modules/FindSubversion.cmake
Comment 1 Jaka Kranjc 2008-09-26 13:14:52 UTC
I get the same error with kdesdk 4.1.1.

-I/usr/src/kdesdk-4.1.0/build/kioslave/svn -I/usr/src/kdesdk-4.1.0/kioslave/svn -I/usr/src/kdesdk-4.1.0 -I/usr/src/kdesdk-4.1.0/build -I/opt/include -I/opt/include/KDE -I/usr/include/QtXmlPatterns -I/usr/include/QtWebKit -I/usr/include/QtHelp -I/usr/include/QtAssistant -I/usr/include/QtDBus -I/usr/include/QtTest -I/usr/include/QtUiTools -I/usr/include/QtScript -I/usr/include/QtSvg -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include/QtOpenGL -I/usr/include/QtNetwork -I/usr/include/QtDesigner -I/usr/include/Qt3Support -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/apr

So the wrong apr include dir is detected. But this looks like our problem, since
apr-config --includedir outputs /usr/include/apr instead of /usr/include/apr-0 or /usr/include/apr-1.
Comment 2 Jaka Kranjc 2008-09-26 13:27:01 UTC
ups, that should have been apu-config, which returns the correct path. Maybe the buils system is calling the wrong binary.
Comment 3 Jaka Kranjc 2008-09-26 14:11:34 UTC
Created attachment 27578 [details]
fix for the incomplete FindSVN.cmake

this patch fixes it for me. It doesn't have a fallback like apr-config if apu-config isn't found, nor does it add any linker flags, since they weren't needed.
Comment 4 Nate Graham 2018-08-24 21:49:05 UTC
I'm afraid the SVN KIOSlave was never ported to Frameworks 5, and it's not likely that it ever will be, given the continuously decreasing popularity of SVN. Therefore, I have to close this bug report.