Hello, I had installed OpenVAS from the ebuild sent on https://bugs.gentoo.org/show_bug.cgi?id=402379 and today when I tried to update, got several errors on the openvas-scanner related to libldap, as you can see below: /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libldap-2.4.so.2, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so, not found (try using -rpath or -rpath-link) ; /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_first_attribute' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_get_values_len' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_memfree' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_search_ext_s' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_set_option' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_next_attribute' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_next_entry' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_count_entries' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_value_free_len' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_first_entry' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_start_tls_s' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_initialize' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_msgfree' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ber_free' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_err2string' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_unbind_ext_s' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_sasl_bind_s' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_get_dn' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_str2dn' collect2: ld returned 1 exit status In the pass, when this has happened I would rename the libldap.so files so the ebuild would not detect them and, therefore, no try to compile against them but it has not worked this time. Reproducible: Always Steps to Reproduce: 1. Install a gentoo server configuration with openldap 2. Try to install openvas 3. Actual Results: Errors on emerge: /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libldap-2.4.so.2, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so, not found (try using -rpath or -rpath-link) ; /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_first_attribute' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_get_values_len' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_memfree' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_search_ext_s' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_set_option' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_next_attribute' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_next_entry' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_count_entries' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_value_free_len' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_first_entry' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_start_tls_s' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_initialize' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_msgfree' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ber_free' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_err2string' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_unbind_ext_s' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_sasl_bind_s' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_get_dn' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/libopenvas_misc.so: undefined reference to `ldap_str2dn' collect2: ld returned 1 exit status ; make[2]: *** [src/openvassd] Error 1 &nbs p; make[2]: Leaving directory `/var/tmp/portage/net-analyzer/openvas-scanner-3.4.0/work/openvas-scanner-3.4.0' make[1]: *** [src/CMakeFiles/openvassd.dir/all] Error 2 make[1]: Leaving directory `/var/tmp/portage/net-analyzer/openvas-scanner-3.4.0/work/openvas-scanner-3.4.0' make: *** [all] Error 2 &nbs p; * ERROR: net-analyzer/openvas-scanner-3.4.0::x-portage failed (compile phase): * emake failed ; * &nbs p; * If you need support, post the output of `emerge --info '=net-analyzer/openvas-scanner-3.4.0::x-portage'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/openvas-scanner-3.4.0::x-portage'`. * The complete build log is located at '/var/tmp/portage/net-analyzer/openvas-scanner-3.4.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/openvas-scanner-3.4.0/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/openvas-scanner-3.4.0/work/openvas-scanner-3.4.0' * S: '/var/tmp/portage/net-analyzer/openvas-scanner-3.4.0/work/openvas-scanner-3.4.0' >>> Failed to emerge net-analyzer/openvas-scanner-3.4.0, Log file: >>> '/var/tmp/portage/net-analyzer/openvas-scanner-3.4.0/temp/build.log' * Messages for package net-analyzer/openvas-scanner-3.4.0: * ERROR: net-analyzer/openvas-scanner-3.4.0::x-portage failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-analyzer/openvas-scanner-3.4.0::x-portage'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/openvas-scanner-3.4.0::x-portage'`. * The complete build log is located at '/var/tmp/portage/net-analyzer/openvas-scanner-3.4.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/openvas-scanner-3.4.0/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/openvas-scanner-3.4.0/work/openvas-scanner-3.4.0' * S: '/var/tmp/portage/net-analyzer/openvas-scanner-3.4.0/work/openvas-scanner-3.4.0' Expected Results: Seamless upgrade/install of openvas
below you can see the --info output # emerge --info '=net-analyzer/openvas-scanner-3.4.0::x-portage' Portage 2.2.7 (hardened/linux/amd64, gcc-4.6.4, glibc-2.15-r3, 3.4.59-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.4.59-gentoo-x86_64-Intel-R-_Core-TM-_i3-2100_CPU_@_3.10GHz-with-gentoo-2.2 KiB Mem: 2044764 total, 138656 free KiB Swap: 1048568 total, 957200 free Timestamp of tree: Sun, 19 Jan 2014 23:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-lang/python: 2.7.5-r3, 3.2.5-r3, 3.3.2-r2 dev-util/cmake: 2.8.10.2-r2 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.69 sys-devel/automake: 1.12.6, 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.6.4 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.10 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo x-portage Installed sets: @ostc-core ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=corei7-avx -mtune=generic" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=corei7-avx -mtune=generic" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp.vectranet.pl/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/usr/portage/packages" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://binhost/gentoo-portage" USE="acl amd64 berkdb bzip2 caps cli cracklib crypt curl cxx dri expat gdbm gmp gnutls hardened iconv justify mmx modules mudflap multilib ncurses nls nptl ntp openipmi openmp pam pax_kernel pcre readline session sqlite sse sse2 ssl syslog tcpd threads unicode urandom zlib zsh-completion" 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="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 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 ident proxy proxy_ajp proxy_balancer proxy_connect proxy_http" 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" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Problem occurs also on net-analyzer/openvas-3.6.XX. If libldap.so is renamed
seems openvas-libaries hard-deps on openldap. Now added this as a dep in 7.0.2.