Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 495198

Summary: rsyslog USE=zeromq broken by zeromq/czmq dependencies
Product: Gentoo Linux Reporter: Allen Parker <infowolfe>
Component: [OLD] LibraryAssignee: Ultrabug <ultrabug>
Status: RESOLVED FIXED    
Severity: blocker CC: jer, jlec, ultrabug
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Undefined reference to zsocket_* (initial breakage)
rsyslog fails to build against czmq-2.0.3
czmq-1.4.1 doesn't cleanly build against zeromq-4
czmq-1.4.1 builds cleanly against zeromq-3.2.4
rsyslog happily builds against czmq-1.4.1

Description Allen Parker 2013-12-24 09:22:25 UTC
Created attachment 366064 [details]
Undefined reference to zsocket_* (initial breakage)

app-admin/rsyslog-7.4.6 will _not_ build against the in-tree czmq-1.2.0-r1 which also will not build against zeromq-4.0.1-r1.

Working combinations:
zeromq-3.2.4 =~ czmq-1.4.1 <=> rsyslog-7.4.6 compiles cleanly
zeromq-4.0.1-r1 =~ czmq-2.0.3 <=> undefined symbols prevents rsyslog-7.4.6 from building

As per http://czmq.zeromq.org/page:get-the-software
The previous stable package is v1.4.1, from 2013/05/01:
The latest stable release is v2.0.3, from 2013/11/16:

The major change is support for ZeroMQ 4.0's new security infrastructure. The API is compatible with previous stable release (some deprecated methods were removed).

The in-tree ebuild for 1.2.0-r1 _is_ capable of being used for 1.4.1 and 2.0.3 if you remove the 'sed' invocation on line 27 (or comment it out).

freya:/usr/portage/net-libs/zeromq$ emerge --info
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.16.0, 3.10.4-Deco x86_64)
=================================================================
System uname: Linux-3.10.4-Deco-x86_64-Intel-R-_Core-TM-_i5-2400S_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:    32980960 total,  12219992 free
KiB Swap:    4589552 total,   4509988 free
Timestamp of tree: Tue, 24 Dec 2013 02:45:02 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.6, 3.2.5-r2, 3.3.3
dev-util/cmake:           2.8.12.1-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.3.6-r1, 4.6.4, 4.7.3-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo hardened-dev matsuu jtriley isohunt-overlay local perl-gcpan
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -g"
DISTDIR="/home/gentoo/distfiles/"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.easynews.com/linux/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/home/gentoo/packages/build-native"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/hardened-development /var/lib/layman/matsuu /var/lib/layman/jtriley /usr/local/ih-portage /usr/local/portage /usr/local/g-cpan"
SYNC="rsync://b01.yyz.as30085.net/gentoo-portage"
USE="acl acpi adns aio amd64 apache2 apm ares aspell audit aufs avahi bash-completion berkdb bzip2 ccache cgi cli cracklib crypt curl cvs cxx dbus device-mapper dri efiemu eix expat fam fftw fortran fpm fuse gd gdbm geoip git gpg gudev hal hpn hscolour hwdb iconv idn imagemagick injection inotify iproute2 ipv6 jabber jpeg jpeg2k libevent libnl lua lzma lzo madwifi mercurial mhash mmap mmx mod_wsgi modules mount mudflap multilib mysql ncurses network-cron nls nptl ntfsprogs ntp objc objc++ objc-gc offensive openmp pam pcre perl php png policykit profiling pygments python python2 readline rrdtool samba session smi snmp soap sql sqlite sqlite3 sse sse2 ssh ssl subversion sudo suid syslog systemd tcpd threads unicode urandom vim-pager vim-syntax xattr xext xinetd xmlrpc yaml zeroconf zeromq zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-32 efi-64 pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="pypy2_0 python2_7 python3_3" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 2.7-pypy-2.0 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Allen Parker 2013-12-24 09:23:11 UTC
Created attachment 366066 [details]
rsyslog fails to build against czmq-2.0.3
Comment 2 Allen Parker 2013-12-24 09:23:44 UTC
Created attachment 366068 [details]
czmq-1.4.1 doesn't cleanly build against zeromq-4
Comment 3 Allen Parker 2013-12-24 09:24:19 UTC
Created attachment 366070 [details]
czmq-1.4.1 builds cleanly against zeromq-3.2.4
Comment 4 Allen Parker 2013-12-24 09:24:54 UTC
Created attachment 366072 [details]
rsyslog happily builds against czmq-1.4.1
Comment 5 Ultrabug gentoo-dev 2013-12-24 10:51:19 UTC
Ok as seen with @jlec, I started by bumping czmq in tree with specific deps on zeromq versions.

+*czmq-2.0.3 (24 Dec 2013)
+*czmq-1.4.1 (24 Dec 2013)
+
+  24 Dec 2013; Ultrabug <ultrabug@gentoo.org> czmq-1.1.0.ebuild,
+  czmq-1.2.0.ebuild, czmq-1.2.0-r1.ebuild, +czmq-1.4.1.ebuild,
+  +czmq-2.0.3.ebuild:
+  Version bump wrt #495198, fix deps
+
Comment 6 Ultrabug gentoo-dev 2013-12-24 11:34:48 UTC
Ok after testing all combinations I find this the correct answer to this problem :

zeromq? ( >=net-libs/zeromq-3 <net-libs/czmq-2 )

It's fixed in tree on all versions, thanks again Allen !

+  24 Dec 2013; Ultrabug <ultrabug@gentoo.org> rsyslog-7.2.7.ebuild,
+  rsyslog-7.4.3.ebuild, rsyslog-7.4.4.ebuild, rsyslog-7.4.6.ebuild:
+  fix #495198 wrt zeromq dependencies thx to Allen Parker
+