From: Daniel G. <dg...@su...> - 2005-12-23 00:44:13
|
On Thu, 2005-12-22 at 23:45 +0100, Markus Wollgarten wrote: >=20 > o.k.let's do it again step by step: >=20 > first I removed everything related to opensync: libraries,includes .. >=20 > 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=C2=A0 -lsoup-2.2 > -lgnutls > -lxml2 -lz -lm -lglib-2.0 >=20 > 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. good idea! i use it for testing the same way. all opensync packages, plugins and dependency (libsoup, libsyncml, ....) stored in /opt/opensync/ ... everytime when you build an opensync package or somehting for opensync i use the --prefix=3D/opt/opensync/ and export PKG_CONFIG_PATH=3D/opt/opensync/lib/pkgconfig/:$PKG_CONFIG_PATH and for the tools export PATH=3D/opt/opensync/bin/:$PATH (for msynctool or multisync-gui). ooops offtopic :) >=20 > Now install the debian packages from > http://www.opensync.org/wiki/download >=20 > 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 >=20 > dpkg -i libopensync-plugin-evolution2_0.14-1_i386.deb > dpkg -i libopensync-plugin-file_0.14-1_i386.deb The version 0.14 is more then a half year old. The function "osync_try_malloc0" appears in opensync SVN revision 479 the first time. Thats why gcc don't know this function. Thanks to -Werror for give us this hint :) Build the opensync und multisync and other package also by your own. And link your opensync syncml plugin with your homebrew opensync build. >=20 > install all without problems. However >=20 > dpkg -i libopensync-plugin-kdepim_0.14-1_i386.deb >=20 > has dependicies problems: > kdelibs4 (>=3D 4:3.3.2-3) > libkcal2a (>=3D 4:3.3.2) This will also be fine when you build kdepim plugin by your on in /usr/locale/opensync/. >=20 > For the moment I want to stay with kde-3.4. So let's=C2=A0 forget about > kdepim for the moment. > So let's see >=20 > msynctool --listplugins > Available plugins: > evo2-sync > file-sync >=20 > Now to > http://www.opensync.org/wiki/syncml-guide >=20 > download libsoup and libsyncml as described > and in .../libsoup-2.2.7 do >=20 > patch -p1 < ../libsyncml/misc/libsoup-2.2.7.patch >=20 > call autoreconf as autoreconf2.50=C2=A0 for my debian distribution > ./configure ... make install > o.k., fine. >=20 > install wbxml as described. fine. >=20 > export PKG_CONFIG_PATH=3D/usr/local/opensync/lib/pkgconfig >=20 >=C2=A0 pkg-config --modversion --cflags --libs libwbxml2 > 0.9.0 > -I/usr/local/opensync/include -I/usr/include/libxml2=20 > -L/usr/local/opensync/lib -lwbxml2 -lxml2 -lz -lm >=20 >=20 > but during ./configure --prefix=3D/usr/local/opensync : >=20 > ... > checking for wbxml - version >=3D 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 > ... >=20 > strange, did >=C2=A0 ./configure --prefix=3D/usr/local/opensync > --with-wbxml=3D/usr/local/opensync/=20 >=20 > this went fine including make and make install hehe! You found something weak :) The provided patch for wbxml2 add an libwbxml2.pc for pkg-config. But the libsyncml configure script doesn't use this pkg-config entry. That is the reason why the pkg-config flags are correct but the build only works with parameter --with-wbxml. With this patch it should use the pkg-config flags and there should be noneed for --with-wbxml anymore: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D SNIP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- libsyncml/configure.ac=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2005-12-23 01:22:5= 6.000000000 +0100 +++ libsyncml/configure.ac.patched=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2005-12-23= 01:24:29.000000000 +0100 @@ -96,7 +96,7 @@ if test "x${WITH_TRACE}" =3D "xyes"; then =C2=A0fi =C2=A0 =C2=A0#### Check for glib #### -pkg_modules=3D"glib-2.0 gthread-2.0" +pkg_modules=3D"glib-2.0 gthread-2.0 libwbxml2" =C2=A0PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) =C2=A0AC_SUBST(PACKAGE_CFLAGS) =C2=A0AC_SUBST(PACKAGE_LIBS) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D SNAP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >=20 >=20 > Now the syncml-plugin > autoreconf2.50 -sfi=C2=A0=20 > ./configure --prefix=3D/usr=C2=A0=C2=A0=C2=A0 (that's were debian put the= packages) like in the beginning of this reply: build the _latest_ _upstream_ (0.18) opensync base package by your own in your own opensync-enviorment - like --prefix=3D/usr/locale/opensync/ and add it to PKG_CONFIG_PATH and PATH. >=20 > make >=20 > and this ended with >=20 > mkdir .libs >=C2=A0 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=C2=A0 -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 > =C2=BB/usr/local/src/opensync/syncml-plugin/src=C2=AB > make[1]: *** [all-recursive] Fehler 1 > make[1]: Verlasse Verzeichnis =C2=BB/usr/local/src/opensync/syncml-plugin= =C2=AB > make: *** [all] Fehler 2 >=20 > ok. I do not remove "-Werror". :-) >=20 > 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=20 > -L/usr/local/opensync/lib -lsoup-2.2 -lgnutls -lxml2 -lz -lm > -lglib-2.0 >=20 > pkg-config --modversion --libs --cflags libsyncml-1.0 > 0.0.4 > -I/usr/local/opensync/include/libsyncml-1.0=C2=A0 -L/usr/local/opensync/l= ib > -lsyncml >=20 > pkg-config --modversion --libs --cflags opensync-1.0 > 0.14 > -I/usr/include/opensync-1.0=C2=A0 -lopensync >=20 > What to do?=20 _hopefully_ now should everything work :) best regards, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Daniel=20 |