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 > > > > > |