Error: ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o): In function `check_ldap': /var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/libs/zbxsysinfo/simple/simple.c:59: undefined reference to `ldap_init' /var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/libs/zbxsysinfo/simple/simple.c:65: undefined reference to `ldap_search_s' /var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/libs/zbxsysinfo/simple/simple.c:67: undefined reference to `ldap_err2string' /var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/libs/zbxsysinfo/simple/simple.c:71: undefined reference to `ldap_first_entry' /var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/libs/zbxsysinfo/simple/simple.c:73: undefined reference to `ldap_err2string' /var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/libs/zbxsysinfo/simple/simple.c:77: undefined reference to `ldap_first_attribute' /var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/libs/zbxsysinfo/simple/simple.c:78: undefined reference to `ldap_get_values' /var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/libs/zbxsysinfo/simple/simple.c:84: undefined reference to `ldap_value_free' /var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/libs/zbxsysinfo/simple/simple.c:86: undefined reference to `ldap_memfree' /var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/libs/zbxsysinfo/simple/simple.c:88: undefined reference to `ber_free' /var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/libs/zbxsysinfo/simple/simple.c:90: undefined reference to `ldap_msgfree' /var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/libs/zbxsysinfo/simple/simple.c:92: undefined reference to `ldap_unbind' collect2: ld returned 1 exit status make[3]: *** [zabbix_server] Error 1 make[3]: Leaving directory `/var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/zabbix_server' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src/zabbix_server' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-analyzer/zabbix-1.8.3/work/zabbix-1.8.3/src' make: *** [all-recursive] Error 1 # emerge --info =net-analyzer/zabbix-1.8.3 Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.1.2, glibc-2.10.1-r1, 2.6.30-gentoo-r8 i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Xeon-R-_CPU_5130_@_2.00GHz-with-gentoo-1.12.11.1 Timestamp of tree: Wed, 18 Aug 2010 21:30:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.10 dev-lang/python: 2.4.4-r13, 2.5.4-r3, 2.6.4-r1 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.1.2, 4.4.3-r2 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=prescott -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--usepkgonly" FEATURES="assume-digests distlocks news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/cncore-server" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic auth_digest authn_file authz_host authz_user autoindex dav dav_fs dav_lock dir env expires log_config mime mime_magic proxy proxy_http rewrite so unique_id vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS # emerge -pqv =net-analyzer/zabbix-1.8.3 [ebuild U ] net-analyzer/zabbix-1.8.3 [1.8.2] USE="curl jabber ldap mysql openipmi proxy server snmp -agent -frontend -ipv6 -oracle -postgres -sqlite3 -ssh%"
Created attachment 243551 [details] build.log
It's need to add zabbix-1.8.2-as-needed.patch patch. As workaround I'm add mkdir -p /etc/portage/env/net-analyzer echo "LDFLAGS=\"-lldap -llber\"" > /etc/portage/env/net-analyzer/zabbix
Created attachment 258946 [details, diff] Patch from upstream for 1.8.3 This patch from upstream bug (ZBX-494) helps. I accidentally attached this patch to another bug #305449 first. It is a resembling problem there.
+ 16 Jan 2011; Patrick Lauer <patrick@gentoo.org> zabbix-1.8.3.ebuild, + +files/zabbix-1.8.3-as-needed.patch: + Fixing as-needed issues #333425 Thanks!