When I emerge apache (latest or stable) and then try to start it with -D AUTH_LDAP (in /etc/conf.d/apache) it breaks. Reproducible: Always Steps to Reproduce: 1. emerge apache 2. modify your /etc/conf.d/apache to have a line like :APACHE2_OPTS="-D SSL -D AUTH_LDAP" 3. /etc/init.d/apache start Actual Results: # /etc/init.d/apache2 start * Apache2 has detected a syntax error in your configuration files: Syntax error on line 9 of /usr/lib/apache2/conf/modules.d/46_mod_ldap.conf: Cannot load /usr/lib/apache2/extramodules/mod_auth_ldap.so into server: /usr/lib/apache2/extramodules/mod_auth_ldap.so: undefined symbol: util_ldap_connection_close Expected Results: mod_auth_ldap to load and allow me to use ldap authentication # emerge info Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-test) ================================================================= System uname: 2.6.5-test i686 AMD Athlon(tm) XP 2800+ Gentoo Base System version 1.4.10 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -funroll-loops -pipe -O3" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/kde/cvs/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -funroll-loops -pipe -O3" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv" GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.tiscali.nl/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X acl alsa avi berkdb bidi cap cddb cdr chroot crypt cups divx4linux dnsdb doc dvb dvd dvdr encode esd evms2 flac foomaticdb freetype gdbm gif gmp gpm gtk gtk2 idea imap imlib ipv6 java jpeg kde lcd ldap libg++ libwww lmtp mad maildir mikmod mmx mpeg nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses nls nptl odbc oggvorbis opengl pam pcap pcre pda pdflib perl png pthreads pwdb python qt quicktime radeon readline regexp sasl sdl skey slang snmp spell ssl svga tcltk tcpd tetex threads tiff transcode truetype unicode usb vim-with-x x86 xchattext xml2 xmms xv zlib" # emerge -pv apache These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild UD] net-www/apache-2.0.49-r1 [2.0.49-r2] +berkdb +doc +gdbm +ipv6 +ldap +ssl +threads 0 kB Total size of downloads: 0 kB
What openldap version are you using?
2.1.30 but i have the same problem with 2.1.26
Which version of apache?
* net-www/apache Latest version available: 2.0.49-r1 Latest version installed: 2.0.49-r2 Size of downloaded files: 5,780 kB Homepage: http://www.apache.org/ Description: Apache Web Server, Version 2.0. i had the same problem with apache-2.0.49
Can you do a ldd on mod_auth_ldap.so. Thanks
# ldd /usr/lib/apache2-extramodules/mod_auth_ldap.so linux-gate.so.1 => (0xffffe000) libpthread.so.0 => /lib/libpthread.so.0 (0x4d266000) libc.so.6 => /lib/libc.so.6 (0x4d0e0000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) sorry about the delay was away for a bit
This problem is still persisting in the latest ebuilds. Any progress on tracking down what is wrong?
what is in your /etc/conf.d/apache2? chuck
Everything is at the default except for this line: APACHE2_OPTS="-D SSL -D AUTH_LDAP"
Can you post a full emerge log. Thanks
Add -D LDAP to your /etc/conf.d/apache2 before the -D AUTH_LDAP. I was able to reproduce it adding the -D LDAP gets rid of the error message.
- why do i have to install apache1 if i just want to use it w/ apache2? can someone check the ebuild/depends/flags plz ... - maybe we can make a separat ebuild for the apache2 version ... it is a own tar-ball, another version-number - it is just a different package ... - in somehow the mod_auth_ldap-2.4.2 works not for me w/ apache2 - http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap_apache2.html <snip> root@porkoo ~ # ===> emerge -vp mod_auth_ldap These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] dev-libs/mm-1.3.0 220 kB [ebuild N ] net-www/apache-1.3.31-r3 +pam 3,146 kB [ebuild N ] net-www/mod_auth_ldap-2.4.2 18 kB Total size of downloads: 3,385 kB </snap> <snip> root@porkoo ~ # ===> etcat -v apache [ Results for search key : apache ] [ Candidate applications found : 8 ] Only printing found installed programs. * net-www/apache : [ ~ ] 1.3.29-r2 (1) [ ] 1.3.31 (1) [ ] 1.3.31-r1 (1) [ ] 1.3.31-r2 (1) [ ] 1.3.31-r3 (1) [ ] 2.0.49-r3 (2) [ ] 2.0.49-r4 (2) [ I] 2.0.50 (2) </snap> with an 'emerge -O mod_auth_ldap' of course we have this error ... <snip> ... >>> Unpacking source... >>> Unpacking mod_auth_ldap-2.4.2.tar.bz2 to /var/tmp/portage/mod_auth_ldap-2.4.2/work patching file mod_auth_ldap.c >>> Source unpacked. /usr/lib/portage/bin/ebuild.sh: line 29: apxs: command not found !!! ERROR: net-www/mod_auth_ldap-2.4.2 failed. !!! Function src_compile, Line 29, Exitcode 127 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. </snap>
ignore #12 :( - mod_auth_ldap is included in apache since 2.0.41 :) - sorry
this bug should be closed, the original problem that I opened it for was solved by ensuring that the -AUTH_LDAP was preceded by a -LDAP, apart from noting that in the documentation or perhaps in an example line in /etc/conf.d/apache, this bug is closed.