From: Markus W. <Mar...@gm...> - 2005-12-22 22:46:09
|
o.k.let's do it again step by step: first I removed everything related to opensync: libraries,includes .. However ,still pkg-config --modversion --cflags --libs libsoup-2.2 2.2.6 -I/usr/include/libsoup-2.2 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -lsoup-2.2 -lgnutls -lxml2 -lz -lm -lglib-2.0 that has to be, since some debian-packages (e.g. evolution depend on it). I leave as it is, we can handle this with the proper sequence of directories in PKG_CONFIG_PATH and ld.so.conf, see below. Now install the debian packages from http://www.opensync.org/wiki/download dpkg -i libopensync_0.14-1_i386.deb dpkg -i multisync-cli_0.90.14-1_i386.deb dpkg -i multisync-gui_0.90.14-1_i386.deb dpkg -i libopensync-plugin-evolution2_0.14-1_i386.deb dpkg -i libopensync-plugin-file_0.14-1_i386.deb install all without problems. However dpkg -i libopensync-plugin-kdepim_0.14-1_i386.deb has dependicies problems: kdelibs4 (>= 4:3.3.2-3) libkcal2a (>= 4:3.3.2) For the moment I want to stay with kde-3.4. So let's forget about kdepim for the moment. So let's see msynctool --listplugins Available plugins: evo2-sync file-sync Now to http://www.opensync.org/wiki/syncml-guide download libsoup and libsyncml as described and in .../libsoup-2.2.7 do patch -p1 < ../libsyncml/misc/libsoup-2.2.7.patch call autoreconf as autoreconf2.50 for my debian distribution ./configure ... make install o.k., fine. install wbxml as described. fine. export PKG_CONFIG_PATH=/usr/local/opensync/lib/pkgconfig pkg-config --modversion --cflags --libs libwbxml2 0.9.0 -I/usr/local/opensync/include -I/usr/include/libxml2 -L/usr/local/opensync/lib -lwbxml2 -lxml2 -lz -lm but during ./configure --prefix=/usr/local/opensync : ... checking for wbxml - version >= 0.9.0... no To enable WBXML communication (for e.g. cell phones) you must have version 0.8.1 or later of libwbxml2. checking WBXML_CFLAGS... -I/usr/include/wbxml2 checking WBXML_LIBS... -lwbxml2 ... strange, did ./configure --prefix=/usr/local/opensync --with-wbxml=/usr/local/opensync/ this went fine including make and make install Now the syncml-plugin autoreconf2.50 -sfi ./configure --prefix=/usr (that's were debian put the packages) make and this ended with mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/opensync/include/libsyncml-1.0 -I/usr/include/opensync-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -Werror -I/usr/local/opensync/include/libsyncml-1.0 -I/usr/include/opensync-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -g -O2 -MT syncml_plugin.lo -MD -MP -MF .deps/syncml_plugin.Tpo -c syncml_plugin.c -fPIC -DPIC -o .libs/syncml_plugin.o cc1: warnings being treated as errors syncml_plugin.c: In function 'syncml_http_server_init': syncml_plugin.c:369: warning: implicit declaration of function 'osync_try_malloc0' syncml_plugin.c:369: warning: initialization makes pointer from integer without a cast syncml_plugin.c:385: warning: implicit declaration of function 'osync_member_get_loop' syncml_plugin.c:385: warning: assignment makes pointer from integer without a cast syncml_plugin.c: In function 'syncml_obex_client_init': syncml_plugin.c:520: warning: initialization makes pointer from integer without a cast syncml_plugin.c:534: warning: assignment makes pointer from integer without a cast syncml_plugin.c: In function 'get_changeinfo': syncml_plugin.c:658: warning: implicit declaration of function 'osync_anchor_retrieve' syncml_plugin.c:658: warning: initialization makes pointer from integer without a cast syncml_plugin.c: In function 'batch_commit': syncml_plugin.c:724: warning: initialization makes pointer from integer without a cast syncml_plugin.c: In function 'get_info': syncml_plugin.c:786: warning: implicit declaration of function 'osync_plugin_new_info' syncml_plugin.c:786: warning: initialization makes pointer from integer without a cast syncml_plugin.c:800: warning: implicit declaration of function 'osync_plugin_set_batch_commit_objformat' syncml_plugin.c:802: warning: assignment makes pointer from integer without a cast make[2]: *** [syncml_plugin.lo] Fehler 1 make[2]: Verlasse Verzeichnis »/usr/local/src/opensync/syncml-plugin/src« make[1]: *** [all-recursive] Fehler 1 make[1]: Verlasse Verzeichnis »/usr/local/src/opensync/syncml-plugin« make: *** [all] Fehler 2 ok. I do not remove "-Werror". :-) pkg-config --modversion --libs --cflags libsoup-2.2 2.2.7 -I/usr/local/opensync/include/libsoup-2.2 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -L/usr/local/opensync/lib -lsoup-2.2 -lgnutls -lxml2 -lz -lm -lglib-2.0 pkg-config --modversion --libs --cflags libsyncml-1.0 0.0.4 -I/usr/local/opensync/include/libsyncml-1.0 -L/usr/local/opensync/lib -lsyncml pkg-config --modversion --libs --cflags opensync-1.0 0.14 -I/usr/include/opensync-1.0 -lopensync What to do? Best wishes, Markus Daniel Gollub schrieb: >On Wed, 2005-12-21 at 22:33 +0100, Markus wrote: > > >>Indeed, much less problems, after downloading the 2.2.90 from >>cvs.gnome.org. >>For the rest I still followed the guide on >>http://www.opensync.org/wiki/syncml-guide >> >> > >Ooops, i didn't read that the syncml guide provide an patched libsoup... > >This patched libsoup seems to be out of date :/ > >I found in the libsyncml source in the sub dir misc/ a patch called >"libsoup-2.2.7.patch" which will also help to build libsyncml when you >patch the latest upstream version of libsoup (2.2.7). >(I will update this in syncml guide, it's easier then an cvs snapshot >build...) > > > >>I had to do once the -Werror "trick" for >>syncml-plugin/src/Makefile.* >> >> > >Don't remove -Werror! Send the warnings/errors of the build. >Fixing the problem is better solution then ignoring :) > >Also helpfully will be the output of: ># pkg-config --modversion --libs --cflags libsoup-2.2 ># pkg-config --modversion --libs --cflags libsyncml-1.0 ># pkg-config --modversion --libs --cflags opensync-1.0 > >--modversion will show the exactly version of your lib*/openync >the other flags will show us if you build your syncml plugin with the >correct linkings. > >if you built your libsoup(patched!)/libsyncml with an special prefix - >such as described in the syncml-guide - then you have to set >PKG_CONFIG_PATH to this prefix. > ># export PKG_CONFIG_PATH="*your-prefix*/lib/pkgconfig:$PKG_CONFIG_PATH" > > > >>The define-problems are gone. :-) >> >> >not really ;) > > > >>>On this case you can turn on the OSYNC_TRACE for more debugging >>>information, but i am sure when you update libsoup to the latest CVS >>>snapshot it will work for you. >>> >>> >>> >>> >>> >>> >>Unforunately, it doesn't. >>Still >> >>msynctool --listplugins >>Available plugins: >>evo2-sync >>kdepim >>file-sync >> >>but >> >>ls -l /usr/lib/opensync/plugins/ >>-rw-r--r-- 1 root root 1497 2005-03-20 21:22 evo2_sync.la >>-rw-r--r-- 1 root root 26464 2005-03-20 21:22 evo2_sync.so >>-rw-r--r-- 1 root root 1056 2005-03-20 21:21 file_sync.la >>-rw-r--r-- 1 root root 14348 2005-03-20 21:21 file_sync.so >>-rw-r--r-- 1 root root 1451 2005-03-20 21:21 kdepim_lib.la >>-rw-r--r-- 1 root root 41512 2005-03-20 21:21 kdepim_lib.so >>-rw-r--r-- 1 root root 821 2005-03-20 21:21 kdepim_sync.la >>-rw-r--r-- 1 root root 7036 2005-03-20 21:21 kdepim_sync.so >>-rw-r--r-- 1 root root 1380 2005-12-21 22:16 syncml_plugin.la >>-rw-r--r-- 1 root root 45977 2005-12-21 22:16 syncml_plugin.so >> >>Hmm, how to turn on the OSYNC_TRACE??? >> >> >http://www.opensync.org/wiki/tracing > > > >good luck! > >best regards, > Daniel > > > > |