Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211477 - net-analyzer/zabbix-1.4.4 fails to compile with USE={agent,server,frontend}
Summary: net-analyzer/zabbix-1.4.4 fails to compile with USE={agent,server,frontend}
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-26 04:51 UTC by Jai
Modified: 2010-01-10 00:24 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jai 2008-02-26 04:51:57 UTC
emerge zabbix
[ebuild   R   ] net-analyzer/zabbix-1.4.4  USE="agent* curl frontend jabber ldap mysql server snmp -oracle -postgres -sqlite3 -vhosts"

ERROR: net-analyzer/zabbix-1.4.4 failed.

Although 
ebuild   R   ] net-analyzer/zabbix-1.4.4  USE="curl frontend jabber ldap mysql server snmp -oracle -postgres -sqlite3 -vhosts -agent"

works fine.




Reproducible: Always

Steps to Reproduce:
1. echo "net-analyzer/zabbix agent server frontend jabber snmp" >> /etc/portage/package.use
2. emerge -av zabbix

Actual Results:  
x86_64-pc-linux-gnu-gcc  -march=nocona -O2 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse   -I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1     -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE -I. -I/usr/include  -I/usr/include  -Wl,-O1 -Wl,--as-needed -L/usr/lib -lldap  -o zabbix_agent  zabbix_agent.o stats.o cpustat.o diskdevices.o interfaces.o perfstat.o zbxconf.o ../../src/libs/zbxsysinfo/libzbxagentsysinfo.a ../../src/libs/zbxsysinfo/linux/libspecsysinfo.a ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a ../../src/libs/zbxlog/libzbxlog.a ../../src/libs/zbxsys/libzbxsys.a ../../src/libs/zbxnix/libzbxnix.a ../../src/libs/zbxcomms/libzbxcomms.a ../../src/libs/zbxconf/libzbxconf.a ../../src/libs/zbxcommon/libzbxcommon.a ../../src/libs/zbxcrypto/libzbxcrypto.a -lm -lresolv 
../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o): In function `check_ldap':
simple.c:(.text+0x220): undefined reference to `ldap_init'
simple.c:(.text+0x251): undefined reference to `ldap_search_s'
simple.c:(.text+0x25c): undefined reference to `ldap_err2string'
simple.c:(.text+0x284): undefined reference to `ber_free'
simple.c:(.text+0x293): undefined reference to `ldap_msgfree'
simple.c:(.text+0x2a3): undefined reference to `ldap_unbind'
simple.c:(.text+0x2bd): undefined reference to `ldap_first_entry'
simple.c:(.text+0x2d5): undefined reference to `ldap_first_attribute'
simple.c:(.text+0x2e6): undefined reference to `ldap_get_values'
simple.c:(.text+0x2fb): undefined reference to `ldap_value_free'
simple.c:(.text+0x30c): undefined reference to `ldap_memfree'
simple.c:(.text+0x33b): undefined reference to `ldap_err2string'
collect2: ld returned 1 exit status
make[2]: *** [zabbix_agent] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/zabbix-1.4.4/work/zabbix-1.4.4/src/zabbix_agent'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/zabbix-1.4.4/work/zabbix-1.4.4/src'
make: *** [all-recursive] Error 1

Expected Results:  
Successfully installed package.

If I remove the "agent" USE flag and emerge, all compiles successfully.

For all I know it's not possible to run the agent on the server, but I think it should be possible.
Comment 1 Patrick Lauer gentoo-dev 2010-01-10 00:24:17 UTC
I cannot reproduce it here with 1.8.