Ticket #604 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

libopensync-plugin-palm does not find libxml2

Reported by: fundawang Owned by: dgollub
Priority: normal Milestone: 0.40
Component: Plugin: palm Version: 0.34
Severity: normal Keywords:
Cc:

Description

http://kenobi.mandriva.com/queue/failure/cooker/contrib/release/20071104165840.fwang.kenobi.18646/log/libopensync-plugin-palm-0.34-1mdv2008.1/

But I don't think it is of use :)

$ rpm -ql libxml2-devel /usr/include/libxml2/libxml/parser.h

$ cat /usr/lib/pkgconfig/libxml-2.0.pc prefix=/usr exec_prefix=/usr libdir=/usr/lib includedir=/usr/include modules=1

Name: libXML Version: 2.6.30 Description: libXML library version2. Requires: Libs: -L${libdir} -lxml2 Libs.private: -lz -lm Cflags: -I${includedir}/libxml2

The same problem happens on evolution plugin, it cannot find e-d-s.

Change History

Changed 13 months ago by fundawang

Plus libopensync-plugin-opie.

Changed 13 months ago by fundawang

In case you cannot read the pkgconfig file:

$ cat /usr/lib/pkgconfig/libxml-2.0.pc
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include
modules=1

Name: libXML
Version: 2.6.30
Description: libXML library version2.
Requires:
Libs: -L${libdir} -lxml2
Libs.private:  -lz  -lm
Cflags: -I${includedir}/libxml2

Changed 13 months ago by fundawang

Patch for palm plguin:

$ cat libopensync-plugin-palm-0.34-find-libxml2.patch
--- CMakeLists.txt~     2007-11-03 06:49:23.000000000 +0800
+++ CMakeLists.txt      2007-11-05 00:26:46.000000000 +0800
@@ -7,6 +7,7 @@
 FIND_PACKAGE( OpenSync REQUIRED )
 FIND_PACKAGE( GLIB2 REQUIRED )
 FIND_PACKAGE( PilotLink REQUIRED )
+FIND_PACKAGE( LibXml2 REQUIRED )

 INCLUDE( OpenSyncInternal )

--- src/CMakeLists.txt~ 2007-11-03 06:49:23.000000000 +0800
+++ src/CMakeLists.txt  2007-11-05 00:32:38.000000000 +0800
@@ -1,4 +1,4 @@
-INCLUDE_DIRECTORIES( ${OPENSYNC_INCLUDE_DIR} ${PILOTLINK_INCLUDE_DIR} ${GLIB2_INCLUDE_DIRS} )
+INCLUDE_DIRECTORIES( ${OPENSYNC_INCLUDE_DIR} ${PILOTLINK_INCLUDE_DIR} ${GLIB2_INCLUDE_DIRS} ${LIBXML2_INCLUDE_DIR} )

 # palm-sync source
 SET( palm_sync_LIB_SRCS
@@ -18,8 +18,8 @@
 OPENSYNC_PLUGIN_ADD( palm-sync ${palm_sync_LIB_SRCS} )
 OPENSYNC_FORMAT_ADD( palm-format ${palm_format_LIB_SRCS} )

-TARGET_LINK_LIBRARIES( palm-sync ${OPENYNC_LIBRARIES} ${PILOTLINK_LIBRARIES} ${GLIB2_LIBRARIES} )
-TARGET_LINK_LIBRARIES( palm-format ${OPENYNC_LIBRARIES} ${PILOTLINK_LIBRARIES} ${GLIB2_LIBRARIES} )
+TARGET_LINK_LIBRARIES( palm-sync ${OPENYNC_LIBRARIES} ${PILOTLINK_LIBRARIES} ${GLIB2_LIBRARIES} ${LIBXML2_LIBRARIES} )
+TARGET_LINK_LIBRARIES( palm-format ${OPENYNC_LIBRARIES} ${PILOTLINK_LIBRARIES} ${GLIB2_LIBRARIES} ${LIBXML2_LIBRARIES} )

 # Install plugins
 OPENSYNC_PLUGIN_INSTALL( palm-sync )

Changed 13 months ago by fundawang

The same applies to irmc plugin. I'll open another bug report on evolution problem, as it seems another problem.

Changed 13 months ago by dgollub

  • status changed from new to closed
  • resolution set to fixed

Should be all fixed with r2737 Feel free to reopen if you find more missing include dirs or libraries.

Note: See TracTickets for help on using tickets.