From: M. W. <mar...@gm...> - 2005-12-21 09:29:59
|
Hello list! I am running a debian box with the current testing-distribution. I installed the debian pakages from www.opensync.org and want to install and use the syncml-plugin to synchronize my Siemens SX-1. I followed the guide to compile the necessary libraries and the plugin. However, I encountered several problems. In some place the compilation was stopped due to converting warnings into errors. I removed the -Werror option from the Makefiles and than I could compile. In one part I got the error message that in http_servers.c SOUP_SERVER_ASYNC_CONTEXT and in http_clients.c SOUP_CLIENT_ASYNC_CONTEXT were not defined. I found defines in some soup-....h which look like #define SOUP_SERVER_ASYNC_CONTEXT "async-context" and #define SOUP_CLIENT_ASYNC_CONTEXT "async-context" which I added to the respective http_....c files. after that compilation went fine. I installed the plugins (make install). And they are now at the places were the other plugins (from debian packages) are. Also the share/default-entries are there as for the other plugins. However, msynctool --listplugins does not show the syncml-plugin. I have no idea on how to make the plugins visible and hopefully useable. So any help is really appreciated. I want to synchronize my SX-1!!! :-) Markus -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie |
From: Daniel G. <dg...@su...> - 2005-12-21 12:24:27
|
On Wed, 2005-12-21 at 10:29 +0100, M. Wollgarten wrote: > Hello list! >=20 > I am running a debian box with the current testing-distribution. > I installed the debian pakages from www.opensync.org and want to > install and > use the syncml-plugin to synchronize my Siemens SX-1. which version of libsoup do you have?=20 debian testing seems to have libsoup-2.2.6 - right? i think you need the latest cvs snapshot of libsoup to build the syncml plugin. http://cvs.gnome.org/viewcvs/libsoup/libsoup/soup-server.h?rev=3D1.28&vie= w=3Dmarkup : " * configure.in: bump version to 2.2.90. This will not be officially released, but once these patches have gotten some testing they may be pulled up to the gnome-2-12 branch. ----> * libsoup/soup-connection.c: ----> * libsoup/soup-server.c: ----> * libsoup/soup-session.c: ----> * libsoup/soup-socket.c: add an "async-context" property, ----> which gets passed from server to socket, and session to connection ----> to socket, allowing async usage outside the main thread. Based on ----> patches from Armin Bauer and J=FCrg Billeter. [...]" >=20 > I followed the guide to compile the necessary libraries and the > plugin. > However, I encountered several problems. >=20 > In some place the compilation was stopped due to converting warnings > into > errors. > I removed the -Werror option from the Makefiles and than I could > compile. nice try :) >=20 > In one part I got the error message that in http_servers.c=20 > SOUP_SERVER_ASYNC_CONTEXT > and in http_clients.c > SOUP_CLIENT_ASYNC_CONTEXT > were not defined. > I found defines in some soup-....h which look like >=20 > #define SOUP_SERVER_ASYNC_CONTEXT "async-context" >=20 > and >=20 > #define SOUP_CLIENT_ASYNC_CONTEXT "async-context" >=20 > which I added to the respective http_....c files. > after that compilation went fine.=20 I don't think that the single #define helps :/ Update of libsoup to current CVS version will help more. > I installed the plugins (make install). And they are now at the places > were > the other plugins (from debian packages) are. Also the > share/default-entries > are there as for the other plugins. > However, msynctool --listplugins does not show the syncml-plugin. 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. good luck! best regards, Daniel |
From: Markus <132...@gm...> - 2005-12-21 21:34:11
|
Daniel Gollub schrieb: >On Wed, 2005-12-21 at 10:29 +0100, M. Wollgarten wrote: > > >>Hello list! >> >>I am running a debian box with the current testing-distribution. >>I installed the debian pakages from www.opensync.org and want to >>install and >>use the syncml-plugin to synchronize my Siemens SX-1. >> >> > >which version of libsoup do you have? >debian testing seems to have libsoup-2.2.6 - right? > >i think you need the latest cvs snapshot of libsoup to build the syncml >plugin. > >http://cvs.gnome.org/viewcvs/libsoup/libsoup/soup-server.h?rev=1.28&view=markup : >" >* configure.in: bump version to 2.2.90. This will not be > officially released, but once these patches have gotten some > testing they may be pulled up to the gnome-2-12 branch. > >----> * libsoup/soup-connection.c: >----> * libsoup/soup-server.c: >----> * libsoup/soup-session.c: >----> * libsoup/soup-socket.c: add an "async-context" property, >----> which gets passed from server to socket, and session to connection >----> to socket, allowing async usage outside the main thread. Based on >----> patches from Armin Bauer and Jürg Billeter. > >[...]" > > > >>I followed the guide to compile the necessary libraries and the >>plugin. >>However, I encountered several problems. >> >>In some place the compilation was stopped due to converting warnings >>into >>errors. >>I removed the -Werror option from the Makefiles and than I could >>compile. >> >> > >nice try :) > > > >>In one part I got the error message that in http_servers.c >>SOUP_SERVER_ASYNC_CONTEXT >>and in http_clients.c >>SOUP_CLIENT_ASYNC_CONTEXT >>were not defined. >>I found defines in some soup-....h which look like >> >>#define SOUP_SERVER_ASYNC_CONTEXT "async-context" >> >>and >> >>#define SOUP_CLIENT_ASYNC_CONTEXT "async-context" >> >>which I added to the respective http_....c files. >>after that compilation went fine. >> >> > >I don't think that the single #define helps :/ >Update of libsoup to current CVS version will help more. > > > 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 I had to do once the -Werror "trick" for syncml-plugin/src/Makefile.* The define-problems are gone. :-) >>I installed the plugins (make install). And they are now at the places >>were >>the other plugins (from debian packages) are. Also the >>share/default-entries >>are there as for the other plugins. >>However, msynctool --listplugins does not show the syncml-plugin. >> >> > >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??? Thanks again! Markus |
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 > > > > |
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 |
From: Markus <132...@gm...> - 2005-12-24 08:16:20
|
Hello, so, let's do it completely from source. make and make install went fine for libopensync but then for opensync autoreconf2.50 -sfi ./configure --prefix=/usr/local/opensync make which results in: ... gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -I/usr/include/libxml2 -Werror -DOPENSYNC_PLUGINDIR=\"/usr/local/opensync/lib/opensync/plugins\" -DOPENSYNC_CONFIGDIR=\"/usr/local/opensync/share/opensync/defaults\" -DOPENSYNC_FORMATSDIR=\"/usr/local/opensync/lib/opensync/formats\" -g -O2 -MT opensync_env.lo -MD -MP -MF .deps/opensync_env.Tpo -c opensync_env.c -fPIC -DPIC -o .libs/opensync_env.o cc1: warnings being treated as errors opensync_env.c: In function 'osync_file_read': opensync_env.c:706: warning: pointer targets in passing argument 3 of 'g_io_channel_read_to_end' differ in signedness make[2]: *** [opensync_env.lo] Fehler 1 make[2]: Verlasse Verzeichnis »/usr/local/src/opensync/opensync-0.14/opensync« make[1]: *** [all-recursive] Fehler 1 make[1]: Verlasse Verzeichnis »/usr/local/src/opensync/opensync-0.14« make: *** [all] Fehler 2 gcc --version gcc (GCC) 4.0.3 20051201 (prerelease) (Debian 4.0.2-5) Any idea? Thank you and Merry Christmas, Markus Daniel Gollub schrieb: >On Thu, 2005-12-22 at 23:45 +0100, Markus Wollgarten wrote: > > >>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. >> >> > >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=/opt/opensync/ and export >PKG_CONFIG_PATH=/opt/opensync/lib/pkgconfig/:$PKG_CONFIG_PATH and for >the tools export PATH=/opt/opensync/bin/:$PATH (for msynctool or >multisync-gui). ooops offtopic :) > > > >>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 >> >> > >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. > > > >>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) >> >> > >This will also be fine when you build kdepim plugin by your on >in /usr/locale/opensync/. > > > >>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 >> >> > >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: > >=========== SNIP =========== >--- libsyncml/configure.ac 2005-12-23 01:22:56.000000000 +0100 >+++ libsyncml/configure.ac.patched 2005-12-23 01:24:29.000000000 >+0100 >@@ -96,7 +96,7 @@ if test "x${WITH_TRACE}" = "xyes"; then > fi > > #### Check for glib #### >-pkg_modules="glib-2.0 gthread-2.0" >+pkg_modules="glib-2.0 gthread-2.0 libwbxml2" > PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) > AC_SUBST(PACKAGE_CFLAGS) > AC_SUBST(PACKAGE_LIBS) > >========== SNAP ============== > > > > > >>Now the syncml-plugin >>autoreconf2.50 -sfi >>./configure --prefix=/usr (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=/usr/locale/opensync/ >and add it to PKG_CONFIG_PATH and PATH. > > > >>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? >> >> > >_hopefully_ now should everything work :) > > > >best regards, > Daniel > > > > > |
From: Daniel G. <dg...@su...> - 2005-12-24 13:45:41
|
On Sat, 2005-12-24 at 09:16 +0100, Markus wrote: > Hello, >=20 > so, let's do it completely from source. >=20 > make and make install went fine for libopensync >=20 > but then for opensync > autoreconf2.50 -sfi > ./configure --prefix=3D/usr/local/opensync opensync and libopensync are the "same" packages. The package opensync is renamed to libopensync since version 0.15. So you have only to install "libopensync-0.18" and not additional "opensync-0.14". >=20 > make which results in: > ... > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -Wall -I/usr/include/libxml2 -Werror > -DOPENSYNC_PLUGINDIR=3D\"/usr/local/opensync/lib/opensync/plugins\" > -DOPENSYNC_CONFIGDIR=3D\"/usr/local/opensync/share/opensync/defaults\" > -DOPENSYNC_FORMATSDIR=3D\"/usr/local/opensync/lib/opensync/formats\" -g > -O2 -MT opensync_env.lo -MD -MP -MF .deps/opensync_env.Tpo -c > opensync_env.c=C2=A0 -fPIC -DPIC -o .libs/opensync_env.o > cc1: warnings being treated as errors > opensync_env.c: In function 'osync_file_read': > opensync_env.c:706: warning: pointer targets in passing argument 3 of > 'g_io_channel_read_to_end' differ in signedness > make[2]: *** [opensync_env.lo] Fehler 1 > make[2]: Verlasse Verzeichnis > =C2=BB/usr/local/src/opensync/opensync-0.14/opensync=C2=AB > make[1]: *** [all-recursive] Fehler 1 > make[1]: Verlasse Verzeichnis =C2=BB/usr/local/src/opensync/opensync-0.14= =C2=AB > make: *** [all] Fehler 2 >=20 > gcc --version > gcc (GCC) 4.0.3 20051201 (prerelease) (Debian 4.0.2-5) >=20 >=20 > Any idea? >=20 Yes. Only built (lib)opensync in version 0.18 :) Good Luck & Merry Christmas! best regards, Daniel |