[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: kdeutils in /trunk doesn't build
From: Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date: 2007-05-24 21:51:16
Message-ID: f351ck$cdg$2 () sea ! gmane ! org
[Download RAW message or body]
Matthew Woehlke wrote:
> For several days I have been unable to build kdeutils due to the
> following error:
>
> Linking CXX shared library ../../lib/libsuperkaramba.so
> /usr/lib/python2.3/config/libpython2.3.a(dynload_shlib.o)(.text+0x1be):
> In function `_PyImport_GetDynLoadFunc':
> : undefined reference to `dlopen'
> /usr/lib/python2.3/config/libpython2.3.a(dynload_shlib.o)(.text+0x1fd):
> In function `_PyImport_GetDynLoadFunc':
> : undefined reference to `dlsym'
> /usr/lib/python2.3/config/libpython2.3.a(dynload_shlib.o)(.text+0x276):
> In function `_PyImport_GetDynLoadFunc':
> : undefined reference to `dlerror'
> collect2: ld returned 1 exit status
> make[2]: *** [lib/libsuperkaramba.so.1.0.0] Error 1
> make[1]: *** [superkaramba/src/CMakeFiles/superkaramba.dir/all] Error 2
> make: *** [all] Error 2
>
> Is anyone else having this problem? It seems superkaramba is missing
> -ldl in the link stage (although I suppose it might be my python
> package?). Before I add this, is there an existing "standard" way to add
> libdl to a library's required libs?
I did this:
Index: superkaramba/src/CMakeLists.txt
===================================================================
--- superkaramba/src/CMakeLists.txt (revision 667974)
+++ superkaramba/src/CMakeLists.txt (working copy)
@@ -62,6 +62,11 @@
KDE4_ADD_LIBRARY(superkaramba SHARED ${superkaramba_LIB_SRCS})
set_target_properties(superkaramba PROPERTIES VERSION 1.0.0 SOVERSION 1 )
+FIND_LIBRARY(LIBDL dl)
+IF(LIBDL)
+ LIST(APPEND PYTHON_LIBRARIES ${LIBDL})
+ENDIF(LIBDL)
+
TARGET_LINK_LIBRARIES(superkaramba
${KDE4_KIO_LIBS}
${KDE4_KROSSCORE_LIBS}
It's a hack, but unless someone has a better suggestion, I'll plan to
check it in some time next week.
--
Matthew
"Nobody expects the traditional Bourne shell!"
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic