Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208010 - app-pda/libopensync-plugin-syncml-0.22 compile fails (-Werror)
Summary: app-pda/libopensync-plugin-syncml-0.22 compile fails (-Werror)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Piotr Jaroszyński (RETIRED)
URL:
Whiteboard:
Keywords:
: 208036 217784 (view as bug list)
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2008-01-29 09:34 UTC by Juergen Rose
Modified: 2009-10-12 08:08 UTC (History)
14 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gcc-no-werror.patch (gcc-no-werror.patch,942 bytes, patch)
2008-02-18 20:46 UTC, Fabio Rossi
Details | Diff
All in one file. (libopensync-plugin-syncml-0.22-x86_64-config+build-logs_emergeinfo_environment-2008.05.20_22:12:40,171.69 KB, text/plain)
2008-05-21 05:19 UTC, Xavian-Anderson Macpherson
Details
patch for libopensync-plugin-syncml-0.22 (libopensync-plugin-syncml-deprecation.patch,536 bytes, patch)
2008-10-16 13:56 UTC, Leonid Evdokimov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2008-01-29 09:34:15 UTC
root@condor:/root(38)# emerge -vD libopensync-plugin-syncml
...
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/opensync-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libsyncml-1.0 -I/usr/include/libxml2 -Wall -Werror -I/usr/include/opensync-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libsyncml-1.0 -I/usr/include/libxml2 -march=nocona -O2 -pipe -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 '_manager_event':
syncml_plugin.c:297: warning: 'smlSessionSetReceivingLimit' is deprecated (declared at /usr/include/libsyncml-1.0/libsyncml/sml_session.h:91)
make[2]: *** [syncml_plugin.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-pda/libopensync-plugin-syncml-0.22/work/libopensync-plugin-syncml-0.22/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-pda/libopensync-plugin-syncml-0.22/work/libopensync-plugin-syncml-0.22'
make: *** [all] Error 2


Reproducible: Always




root@condor:/root(40)# emerge --info
 * Overlay eclass overrides eclass from PORTDIR:
 * 
 *   '/usr/portage/local/layman/science/eclass/fortran.eclass'
 * 
 * It is best to avoid overridding eclasses from PORTDIR because it will
 * trigger invalidation of cached ebuild metadata that is distributed with
 * the portage tree. If you must override eclasses from PORTDIR then you
 * are advised to run `emerge --regen` after each time that you run `emerge
 * --sync`. Set PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you
 * would like to disable this warning.
Portage 2.1.4 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.24-gentoo x86_64)
=================================================================
System uname: 2.6.24-gentoo x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Tue, 29 Jan 2008 07:00:08 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.4.4-r8, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages/All"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/local/portage /usr/local/portage/xeffects /usr/local/sci"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amd64 amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount bash-completion beagle berkdb bitmap-fonts bjam blas bluetooth bonobo boo bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli corba cracklib cran crypt cups curl daap dbus device-mapper dga dia divx djvu dlloader dmi dri ds3490 dv dvb dvd dvdr dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo examples exif expat extra fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx galago gd gdal gdbm geos gif gimp gimpprint ginac glade glitz gml gmp gnokii gnome gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened hddtemp hdf hdf5 hlapi http hvm iconv icq id3 imagemagick imap innodb ipv6 irda irmc isdnlog ithreads jabber java jbig john jpeg jpeg2k kerberos kexi keyring ladspa lame lapack latex lcms ldap libgda libsamplerate lirc lm_sensors lua lzo lzw mad maildir math matroska midi mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mudflap musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly ntfs numarray numeric nvidia obex ocaml octave odbc ogdi ogg ole opengl openmp pae pam pcre pda pdf perl plotutils plugins png posix postgres postscript pppd preview-latex proj projectx pstricks python qhull quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl session slang slp smp sndfile snmp soup sox speex spell spl sqlite sse sse2 ssl subtitles subversion suexec svg t1lib tcl tcpd tex theora threads thunderbird tidy tiff tk truetype truetype-fonts type1-fonts unicode userlocales utempter v4l2 vorbis wmf wxwindows xattr xemacs xext xine xml xmlreader xmlrpc xorg xpm xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-29 20:49:21 UTC
*** Bug 208036 has been marked as a duplicate of this bug. ***
Comment 2 Christophe Farges 2008-02-12 21:37:01 UTC
downgrading libsyncml to 0.4.5 allowed me to emerge this plugin correctly
Comment 3 Fabio Rossi 2008-02-18 20:46:04 UTC
Created attachment 143900 [details, diff]
gcc-no-werror.patch

Disabling -Werror is enough :-)
Comment 4 David 'Bombe' Roden 2008-02-21 11:41:09 UTC
Thanks for the patch, if works flawlessly here. :)
Comment 5 Ákos Maróy 2008-03-13 17:25:04 UTC
so when is the ebuild in the main portage tree going to be updated with this patch?
Comment 6 Christian Häßler 2008-04-23 11:39:50 UTC
This patch works for me too. Why isn't it in original tree?
Comment 7 Ruben Faelens 2008-05-17 02:40:53 UTC
*** Bug 217784 has been marked as a duplicate of this bug. ***
Comment 8 Kanstantsin Shautsou 2008-05-18 17:16:10 UTC
same problem on ~x86. This patch works for me too.
Comment 9 Xavian-Anderson Macpherson 2008-05-21 05:19:30 UTC
Created attachment 153831 [details]
All in one file.
Comment 10 Leonid Evdokimov 2008-10-16 13:56:42 UTC
Created attachment 168666 [details, diff]
patch for libopensync-plugin-syncml-0.22

Another way is to patch libopensync-plugin-syncml-0.22, but that'll break compilation against libsyncml-0.4.5 and will require at least libsyncml-0.4.6.
Comment 11 different 2009-09-16 23:27:39 UTC
Hi!

This bug is actual now.

Ebuild patched (append-flags -Wno-error), but inherit flag-o-matic not set by default in portage tree => "append-flags -Wno-error" does not fix problem.

Please, add inherit flag-o-matic to ebuild in main portage tree.

Comment 12 Petteri Räty (RETIRED) gentoo-dev 2009-09-19 16:12:17 UTC
Please test 0.36. It built fine for me. So considering this fixed.
Comment 13 Juergen Rose 2009-09-27 13:30:14 UTC
'emerge libopensync-plugin-syncml' wants to downgrade libsyncml.

root@condor:/root(21)# emerge -pvuDN libopensync-plugin-syncml

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD] app-pda/libsyncml-0.4.6-r1 [0.5.2] USE="bluetooth debug* doc http obex" 164 kB
[ebuild  N    ] app-pda/libopensync-plugin-syncml-0.36  USE="http obex" 0 kB

If I accept this, and emerge libopensync-plugin-syncml-0.36, then the next 'emerge -pvuDN world' complains about conflicting packages:
root@condor:/root(23)# emerge -pvuDN world                    

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sci-mathematics/scilab-4.1.2-r2 [4.1.2] USE="Xaw3d examples%* gtk java ocaml -debug" 0 kB
[ebuild     U ] app-pda/libsyncml-0.5.2 [0.4.6-r1] USE="bluetooth doc http obex -debug*" 0 kB
[ebuild     U ] app-emulation/wine-1.1.30 [1.1.29] USE="X alsa cups esd gecko gphoto2%* jpeg lcms ncurses opengl png samba ssl xml -capi% (-dbus) -fontconfig% (-gnutls) (-gsm) (-hal) -jack (-ldap) (-mp3) (-nas) -openal% -oss (-scanner) -test -win64 -xcomposite -xinerama" 0 kB

Total: 3 packages (3 upgrades), Size of downloads: 0 kB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

app-pda/libsyncml:0

  ('installed', '/', 'app-pda/libsyncml-0.4.6-r1', 'nomerge') pulled in by
    ~app-pda/libsyncml-0.4.6[http,obex] required by ('installed', '/', 'app-pda/libopensync-plugin-syncml-0.36', 'nomerge')
    (and 1 more)

  ('ebuild', '/', 'app-pda/libsyncml-0.5.2', 'merge') pulled in by
    app-pda/libsyncml required by world

  Explanation:

    New USE for 'app-pda/libsyncml:0' are incorrectly set. In order to
    solve this, adjust USE to satisfy '~app-
    pda/libsyncml-0.4.6[http,obex]'.

So I have to erase libopensync-plugin-syncml-0.36 again. Any idea for a solution?
Comment 14 Eckhart Guthöhrlein 2009-09-29 21:29:43 UTC
(In reply to comment #12)
> Please test 0.36. It built fine for me. So considering this fixed.
> 

Using 0.36 is not a solution. Citing the release notes of opensync-0.36:

"Yet another E.X.P.E.R.I.M.E.N.T.A.L. release of OpenSync. This release is intended for developers, testers and for packages. OpenSync 0.3x releases aren't intended to be stable. We don't recommend this release for productive use. We don't recommend this release to be packaged as part of a distribution. ..."

So, btw, libopensync-plugin-syncml-0.22 was removed from the main portage tree, but it should not. Instead, it should finally be fixed in the main tree, and until then, this bug is still a bug and ought to be reopened.
Comment 15 Petteri Räty (RETIRED) gentoo-dev 2009-10-01 13:11:23 UTC
(In reply to comment #14)
> 
> Using 0.36 is not a solution. Citing the release notes of opensync-0.36:
> 

Is 0.2* any better?

http://www.opensync.org/wiki/status

"0.1x and 0.2x versions are not maintained anymore, its development has frozen and bugs are not fixed." Basically they don't seem to have anything that would be good for distribution use from distro point of view.
Comment 16 Eckhart Guthöhrlein 2009-10-12 08:08:48 UTC
(In reply to comment #15)
> Is 0.2* any better?

To be honest: After I finally got 0.22 working, I did never feel the need to switch to another version "targeted for developers and testers" with fundamental API changes.

> http://www.opensync.org/wiki/status
> 
> "0.1x and 0.2x versions are not maintained anymore, its development has frozen
> and bugs are not fixed." Basically they don't seem to have anything that would
> be good for distribution use from distro point of view.

Obviously, the situation is not perfect. But at least: "Releases 0.22 (and 0.2x svn branch) and before are considered stable and suitable for production."