AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Installing mod_ntlm into Apache in AIX 6.1

    Posted Thu November 05, 2009 04:07 AM

    Originally posted by: dzodzo


    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?
    #AIX-Forum


  • 2.  Re: Installing mod_ntlm into Apache in AIX 6.1

    Posted Wed November 18, 2009 11:22 AM

    Originally posted by: dzodzo


    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?
    #AIX-Forum


  • 3.  Re: Installing mod_ntlm into Apache in AIX 6.1

    Posted Mon November 23, 2009 08:52 AM

    Originally posted by: dzodzo


    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
    

    #AIX-Forum


  • 4.  Re: Installing mod_ntlm into Apache in AIX 6.1

    Posted Wed December 30, 2009 03:24 PM

    Originally posted by: dzodzo


    IBM support pointed me out to another discussion but in the developers forum so maybe i should've posted my question there but nevermind, if you need the solution check this link http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14068565

    Or if it doesn't work as IBM pages tend to stop working from time to time, you can find the solution here http://alexkernel.bloguje.cz/825451-compiling-shared-objects-in-aix-6-1.php
    #AIX-Forum