Compile errors with Apache2 + mod_ntlm_winbind

Scott Barnett wiggum24 at gmail.com
Tue May 30 04:04:56 GMT 2006


I'm having compile problems with mod_ntlm_winbind when I'm using
Apache 2. I've reproduced the exact problem on Ubuntu and Redhat
Enterprise so hopefully this will help rule out distro specific
problems, ie. I get it when compiling apache from source. I can't use
rpm or deb versions (I've been colouring outside the square a bit too
much).

The compile process basically does not produce an .so file and then
complains that it can't copy it to the modules/ folder. I can get it
to compile if I _don't_ map the binaries to the correct places with
the apache configure script, but only by calling apxs directly ("make
install" doesn't work).

***********************************************************************************

Example 1:
- A fresh apache install with options:
--enable-so
--bindir=/usr/bin
--sbindir=/usr/sbin
--sysconfdir=/etc/httpd
Apached installed ok

- Generic mod_ntlm_winbind install:
autoconf/configure/make/install
Fails:
/usr/sbin/apxs -DAPACHE2 -o mod_auth_ntlm_winbind.so -Wc,-Wall -c
mod_ntlm_winbind.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc
-prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include  -Wall
-DAPACHE2  -c -o mod_ntlm_winbind.lo mod_ntlm_winbind.c && touch
mod_ntlm_winbind.slo
/usr/local/apache2/build/libtool --silent --mode=link gcc -o
mod_auth_ntlm_winbind.la  -rpath /usr/local/apache2/modules -module
-avoid-version    mod_ntlm_winbind.lo
/usr/sbin/apxs -DAPACHE2 -S LIBEXECDIR=//usr/local/apache2/modules -n
auth_ntlm_winbind -i .libs/mod_auth_ntlm_winbind.so
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool'
.libs/mod_auth_ntlm_winbind.so //usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp
.libs/mod_auth_ntlm_winbind.so //usr/local/apache2/modules/
cp .libs/mod_auth_ntlm_winbind.so
//usr/local/apache2/modules/mod_auth_ntlm_winbind.so
cp: cannot stat `.libs/mod_auth_ntlm_winbind.so': No such file or directory
apxs:Error: Command failed with rc=65536

- Tried installing directly with apxs
[root at web02 mod_ntlm_winbind]# apxs -DAPACHE2 -i mod_ntlm_winbind.c
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool' mod_ntlm_winbind.c
/usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp mod_ntlm_winbind.c
/usr/local/apache2/modules/
cp mod_ntlm_winbind.c /usr/local/apache2/modules/mod_ntlm_winbind.c
Warning!  dlname not found in /usr/local/apache2/modules/mod_ntlm_winbind.c.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/mod_ntlm_winbind.so
chmod: cannot access `/usr/local/apache2/modules/mod_ntlm_winbind.so':
No such file or directory
apxs:Error: Command failed with rc=65536


***********************************************************************************

Example 2:
- A fresh apache install with no configure options except the module loader:
--enable-so
Apache installed OK

- Generic mod_ntlm_winbind install:
autoconf/configure/make/install
Failed

- Tried using a configure option:
[root at web02 mod_ntlm_winbind]# ./configure
--with-httpd=/usr/local/apache2/bin/httpd
<snip>
checking for httpd... /usr/sbin/httpd
./configure: line 2747: /usr/sbin/httpd: No such file or directory
<snip>
"httpd" was installed in /usr/local/apache2/bin/httpd because that's
the default location unless you specifically map it, this should be ok
to overide with the configure option which doesn't look like it's
working.

- Tried install with just apxs
/usr/local/apache2/bin/apxs -DAPACHE2 -c -i mod_ntlm_winbind.c
Installed mod_ntlm_winbind.so, .c, .a, and .la in modules/


More information about the samba-technical mailing list