Hi,
static build fail with ldap (SVN 1.4.1 rev 4369).
./configure --prefix=/opt/zabbix --enable-server --with-mysql --with-net-snmp --with-ldap --enable-static -q
all works fine without --enable-static
error message:
==================================
CentOS 4.4
mysql 5.0.41
openldap 2.2.13
static build fail with ldap (SVN 1.4.1 rev 4369).
./configure --prefix=/opt/zabbix --enable-server --with-mysql --with-net-snmp --with-ldap --enable-static -q
all works fine without --enable-static
error message:
Code:
make[3]: Entering directory `/root/zabbix/src/1.4.1/src/zabbix_server/utils' make[3]: Rien à faire pour « all ». make[3]: Leaving directory `/root/zabbix/src/1.4.1/src/zabbix_server/utils' make[3]: Entering directory `/root/zabbix/src/1.4.1/src/zabbix_server' gcc -g -O2 -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -I/usr/include/rpm -I/usr/include/rpm -I. -I/usr/include/net-snmp -I/usr/include -static -L/usr/lib/mysql -L/usr/lib -L/usr/lib -L/usr/lib -lldap -llber -lgnutls -lpthread -lsasl2 -o zabbix_server zabbix_server-evalfunc.o zabbix_server-expression.o zabbix_server-actions.o zabbix_server-operations.o zabbix_server-events.o zabbix_server-zlog.o zabbix_server-functions.o zabbix_server-server.o alerter/libzbxalerter.a discoverer/libzbxdiscoverer.a pinger/libzbxpinger.a poller/libzbxpoller.a housekeeper/libzbxhousekeeper.a timer/libzbxtimer.a trapper/libzbxtrapper.a nodewatcher/libzbxnodewatcher.a utils/libzbxutils.a httppoller/libzbxhttppoller.a watchdog/libzbxwatchdog.a ../../src/libs/zbxsysinfo/libzbxserversysinfo.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/zbxnix/libzbxnix.a ../../src/libs/zbxsys/libzbxsys.a ../../src/libs/zbxconf/libzbxconf.a ../../src/libs/zbxemail/libzbxemail.a ../../src/libs/zbxsms/libzbxsms.a ../../src/libs/zbxdbhigh/libzbxdbhigh.a ../../src/libs/zbxdb/libzbxdb.a ../../src/libs/zbxcommon/libzbxcommon.a ../../src/libs/zbxcrypto/libzbxcrypto.a ../../src/libs/zbxcomms/libzbxcomms.a -lsasl2 -lpthread -lgnutls -llber -lm -lresolv -lnsl -lmysqlclient -lz -lcrypt -lnsl -lm -lnetsnmp -lcrypto -lelf -lm -lcrypto /usr/lib/liblber.a(sockbuf.o)(.text+0x15aa): In function `sb_debug_read': : warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead /usr/lib/liblber.a(sockbuf.o)(.text+0x159d): In function `sb_debug_read': : warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead ../../src/libs/zbxnix/libzbxnix.a(daemon.o)(.text+0xfc): In function `daemon_start': /root/zabbix/src/1.4.1/src/libs/zbxnix/daemon.c:98: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x9bb): In function `read_user_name': : warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/mysql/libmysqlclient.a(mf_pack.o)(.text+0x581): In function `unpack_dirname': : warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/libnetsnmp.a(snmpUDPIPv6Domain.o)(.text+0x1075): In function `netsnmp_sockaddr_in6': : warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ../../src/libs/zbxcomms/libzbxcomms.a(comms.o)(.text+0x6c): In function `zbx_gethost': /root/zabbix/src/1.4.1/src/libs/zbxcomms/comms.c:120: warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ../../src/libs/zbxcomms/libzbxcomms.a(comms.o)(.text+0x3c):/root/zabbix/src/1.4.1/src/libs/zbxcomms/comms.c:115: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/mysql/libmysqlclient.a(my_gethostbyname.o)(.text+0x3c): In function `my_gethostbyname_r': : warning: Using 'gethostbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0xad): In function `mysql_server_init': : warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o)(.text+0x48): In function `check_ldap': /root/zabbix/src/1.4.1/src/libs/zbxsysinfo/simple/simple.c:59: undefined reference to `ldap_init' ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o)(.text+0x88):/root/zabbix/src/1.4.1/src/libs/zbxsysinfo/simple/simple.c:65: undefined reference to `ldap_search_s' ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o)(.text+0x9b):/root/zabbix/src/1.4.1/src/libs/zbxsysinfo/simple/simple.c:78: undefined reference to `ldap_first_entry' ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o)(.text+0xb8):/root/zabbix/src/1.4.1/src/libs/zbxsysinfo/simple/simple.c:84: undefined reference to `ldap_first_attribute' ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o)(.text+0xca):/root/zabbix/src/1.4.1/src/libs/zbxsysinfo/simple/simple.c:86: undefined reference to `ldap_get_values' ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o)(.text+0xdf):/root/zabbix/src/1.4.1/src/libs/zbxsysinfo/simple/simple.c:91: undefined reference to `ldap_value_free' ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o)(.text+0xeb):/root/zabbix/src/1.4.1/src/libs/zbxsysinfo/simple/simple.c:92: undefined reference to `ldap_memfree' ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o)(.text+0x10b):/root/zabbix/src/1.4.1/src/libs/zbxsysinfo/simple/simple.c:74: undefined reference to `ldap_err2string' ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o)(.text+0x14d):/root/zabbix/src/1.4.1/src/libs/zbxsysinfo/simple/simple.c:94: undefined reference to `ldap_msgfree' ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o)(.text+0x15c):/root/zabbix/src/1.4.1/src/libs/zbxsysinfo/simple/simple.c:95: undefined reference to `ldap_unbind' ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o)(.text+0x190):/root/zabbix/src/1.4.1/src/libs/zbxsysinfo/simple/simple.c:80: undefined reference to `ldap_err2string' collect2: ld a retourné 1 code d'état d'exécution make[3]: *** [zabbix_server] Erreur 1 make[3]: Leaving directory `/root/zabbix/src/1.4.1/src/zabbix_server' make[2]: *** [all-recursive] Erreur 1 make[2]: Leaving directory `/root/zabbix/src/1.4.1/src/zabbix_server' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/root/zabbix/src/1.4.1/src' make: *** [all-recursive] Erreur 1
CentOS 4.4
mysql 5.0.41
openldap 2.2.13
Comment