Skip to main content

developerWorks >  AIX and UNIX  >  Forums  >  AIX Forum  >  developerWorks

Installing mod_ntlm into Apache in AIX 6.1    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 2 - Pages: 1 - Last Post: Nov 23, 2009 8:51 AM Last Post By: dzodzo
dzodzo

Posts: 6
Registered: May 14, 2009 04:14:27 AM
Installing mod_ntlm into Apache in AIX 6.1
Posted: Nov 05, 2009 04:06:50 AM
Click to report abuse...   Click to reply to this thread Reply
Hello, i'm trying to compile mod_ntlm into Apache2.2.13 on AIX 6.1 but i'm confused as the apxs utility doesn't create .so file but instead i get .a and .la files, these are in the Apache modules directory as well. Apache is compiled with following options:

./configure --enable-so --enable-cgi --with-included-apr


When i try to create the module it always fails on not being able to find the .so module:

root@r4280 [/.root/build/mod_ntlm2/mod_ntlm2-0.1] make
        /usr/local/apache2/bin/apxs -c -o mod_ntlm.so -Wc,-shared mod_ntlm.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -U__STR__ -D_THREAD_SAFE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -shared  -c -o mod_ntlm.lo mod_ntlm.c && touch mod_ntlm.slo
mod_ntlm.c:44: warning: conflicting types for built-in function 'log'
In file included from mod_ntlm.c:86:
ntlmssp.inc.c: In function 'ntlm_msg3_getusername':
ntlmssp.inc.c:306: warning: cast from pointer to integer of different size
In file included from mod_ntlm.c:102:
smbval/rfcnb-util.inc.c: In function 'RFCNB_IP_Connect':
smbval/rfcnb-util.inc.c:148: warning: incompatible implicit declaration of built-in function 'bzero'
In file included from mod_ntlm.c:106:
smbval/smblib-util.inc.c: In function 'SMB_Negotiate':
smbval/smblib-util.inc.c:92: warning: incompatible implicit declaration of built-in function 'bzero'
In file included from mod_ntlm.c:107:
smbval/smblib.inc.c: In function 'SMB_Logon_Server':
smbval/smblib.inc.c:182: warning: incompatible implicit declaration of built-in function 'bzero'
smbval/smblib.inc.c:246: warning: incompatible implicit declaration of built-in function 'bzero'
/usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_ntlm.la  -rpath /usr/local/apache2/modules -module -avoid-version  -Wl,-brtl  mod_ntlm.lo
Target "all" is up to date.
root@r4280 [/.root/build/mod_ntlm2/mod_ntlm2-0.1] make install
        /usr/local/apache2/bin/apxs -c -o mod_ntlm.so -Wc,-shared mod_ntlm.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -U__STR__ -D_THREAD_SAFE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local/apache2/include  -shared  -c -o mod_ntlm.lo mod_ntlm.c && touch mod_ntlm.slo
mod_ntlm.c:44: warning: conflicting types for built-in function 'log'
In file included from mod_ntlm.c:86:
ntlmssp.inc.c: In function 'ntlm_msg3_getusername':
ntlmssp.inc.c:306: warning: cast from pointer to integer of different size
In file included from mod_ntlm.c:102:
smbval/rfcnb-util.inc.c: In function 'RFCNB_IP_Connect':
smbval/rfcnb-util.inc.c:148: warning: incompatible implicit declaration of built-in function 'bzero'
In file included from mod_ntlm.c:106:
smbval/smblib-util.inc.c: In function 'SMB_Negotiate':
smbval/smblib-util.inc.c:92: warning: incompatible implicit declaration of built-in function 'bzero'
In file included from mod_ntlm.c:107:
smbval/smblib.inc.c: In function 'SMB_Logon_Server':
smbval/smblib.inc.c:182: warning: incompatible implicit declaration of built-in function 'bzero'
smbval/smblib.inc.c:246: warning: incompatible implicit declaration of built-in function 'bzero'
/usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_ntlm.la  -rpath /usr/local/apache2/modules -module -avoid-version  -Wl,-brtl  mod_ntlm.lo
        /usr/local/apache2/bin/apxs -i -a -n 'ntlm' mod_ntlm.so
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' mod_ntlm.so /usr/local/apache2/modules
rm -f /usr/local/apache2/modules/mod_ntlm.so.so
/usr/local/apache2/build/libtool --mode=install cp mod_ntlm.so /usr/local/apache2/modules/ 
cp mod_ntlm.so /usr/local/apache2/modules/mod_ntlm.so
cp: mod_ntlm.so: No such file or directory
apxs:Error: Command failed with rc=65536
.
make: 1254-004 The error code from the last command is 1.
 
 
Stop.


Anyone has similar problem? Or anyone can explain to me the difference between creating .so and .a/.la files?
dzodzo

Posts: 6
Registered: May 14, 2009 04:14:27 AM
Re: Installing mod_ntlm into Apache in AIX 6.1
Posted: Nov 18, 2009 11:22:18 AM   in response to: dzodzo in response to: dzodzo's post
Click to report abuse...   Click to reply to this thread Reply
ok, i found that mod_ntlm is obsolete so now i'm trying to compile the mm_mod_auth_ldap3.11 on the same environment but during compilation i get following error:

***Creating module** mod_auth_ldap v3.11 for Apache 2.2.x *******
        /usr/local/apache2/bin/apxs -c mm_mod_auth_ldap.o -Wl,-G -L/usr/local/apache2//lib -L/opt/freeware//lib -L./libs/libghthash/src/.libs -lghthash -lldap -llber  
/usr/local/apache2/build/libtool --silent --mode=link gcc -o mm_mod_auth_ldap.la  -rpath /usr/local/apache2/modules -module -avoid-version  -Wl,-brtl  mm_mod_auth_ldap.o -Wl,-G -L/usr/local/apache2//lib -L/opt/freeware//lib -L./libs/libghthash/src/.libs -lghthash -lldap -llber
libtool: link: cannot build libtool library `mm_mod_auth_ldap.la' from non-libtool objects on this host: mm_mod_auth_ldap.o
apxs:Error: Command failed with rc=65536
.
make: 1254-004 The error code from the last command is 1.
 
 
Stop.


and during the configure process:

checking whether the gcc linker (/usr/bin/ld) supports shared libraries... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes


and this messages i get even if i specify LDFLAGS to -Wl,-G which should tell the libtool to link dynamic shared object... anyone has similar trouble?
dzodzo

Posts: 6
Registered: May 14, 2009 04:14:27 AM
Re: Installing mod_ntlm into Apache in AIX 6.1
Posted: Nov 23, 2009 08:51:48 AM   in response to: dzodzo in response to: dzodzo's post
Click to report abuse...   Click to reply to this thread Reply
Just a small update on this topic, on AIX 5.3 it works as it should, tried the same compliation:

checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... aix5.3.0.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums