Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 333425 - net-analyzer/zabbix-1.8.3[ldap] fails compile
Summary: net-analyzer/zabbix-1.8.3[ldap] fails compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-19 10:38 UTC by Tais P. Hansen
Modified: 2011-01-16 11:30 UTC (History)
9 users (show)

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


Attachments
build.log (build.log,79.35 KB, text/plain)
2010-08-19 10:39 UTC, Tais P. Hansen
Details
Patch from upstream for 1.8.3 (zabbix-1.8.3-as-needed.patch,2.56 KB, patch)
2011-01-05 16:31 UTC, Denis Seleznyov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tais P. Hansen 2010-08-19 10:38:32 UTC
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%"
Comment 1 Tais P. Hansen 2010-08-19 10:39:09 UTC
Created attachment 243551 [details]
build.log
Comment 2 Dmitry S. Kulyabov 2010-09-07 10:13:38 UTC
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
Comment 3 Denis Seleznyov 2011-01-05 16:31:46 UTC
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.
Comment 4 Patrick Lauer gentoo-dev 2011-01-16 11:30:21 UTC
+  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!