coolstack/apache and mod_ntlm... the road less traveled...

When you google for ntlm and coolstack, you don't get any hits, and that is usually one of the 1st signs of trouble....

http://modntlm.sourceforge.net/is an apache module that helps with some authentication business in heavy windows/AD type of environments. apxs is used to fire off the compile, and its complains heavily about the compiler. tricking it into using gcc seems to only work temporarily, as it starts complaining about compiler options kPIC etc.

Anyone else have better luck with this package? Is it just that I have to use the exact same compiler to compile this package as was used for the apache-compilation? (studio12?)

thanks -- MikeE

[678 byte] By [mikee11a] at [2007-11-27 10:55:41]
# 1

If you're compiling on sparc, you want to use Studio 11. Not sure if there will be any problems using Studio 12 but apxs should pick the correct compiler flags for you. On x86, you want to use gcc. Don't try to 'trick' to use different compilers - it will probably not work.

Shanti

shantiSa at 2007-7-29 11:58:02 > top of Java-index,Open Source Technologies,OpenSPARC...
# 2

Hi Shanti....

I am trying to do the compile with studio11 (sparc) to see if that goes any better. As you can see below, we don't get any errors during the compile stage, but the module created doesn't seem to function with coolstack-apache. (hmmmm)

any ideas?

thanks -- MikeE

--

/var/tmp/mod_ntlm2-0.1

# ls

ChangeLogMakefileTODOmod_ntlm.hmod_ntlm.lomod_ntlm.slontlmssp.inc.c

Documentation README mod_ntlm.cmod_ntlm.lamod_ntlm.omodules.mksmbval

#

# apxs -n ntlm -g

Creating [DIR] ntlm

Creating [FILE] ntlm/Makefile

Creating [FILE] ntlm/modules.mk

Creating [FILE] ntlm/mod_ntlm.c

Creating [FILE] ntlm/.deps

# mv ntlm/* .

# touch .deps

#

# make

/opt/coolstack/apache2/build/libtool --silent --mode=compile cc-DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -xtarget=generic -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE-I/opt/coolstack/apache2/include -I. -I/space103/crossover/src_opt/httpd-2.2.3/srclib/apr/include -I/space103/crossover/src_opt/httpd-2.2.3/srclib/apr-util/include -I/space103/crossover/src_opt/httpd-2.2.3/srclib/apr-util/xml/expat/lib -I/usr/sfw/include -prefer-pic -c mod_ntlm.c && touch mod_ntlm.slo

/opt/coolstack/apache2/build/libtool --silent --mode=link cc-DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -xtarget=generic -L/space103/crossover/src_opt/httpd-2.2.3/srclib/apr-util/xml/expat/lib -R/usr/sfw/lib -L/opt/coolstack/lib -L/usr/sfw/lib-o mod_ntlm.la -rpath /opt/coolstack/apache2/modules -module -avoid-version mod_ntlm.lo

#

# make install

/opt/coolstack/apache2/build/libtool --silent --mode=install cp mod_ntlm.la /opt/coolstack/apache2/modules/

/opt/coolstack/apache2/build/libtool --silent --mode=install cp mod_ntlm.la /opt/coolstack/apache2/modules/

#

#

# make restart

apachectl restart

httpd: Syntax error on line 119 of /opt/coolstack/apache2/conf/httpd.conf: Can't locate API module structure `mod_ntlm.so' in file /opt/coolstack/apache2/modules/mod_ntlm.so: ld.so.1: httpd: fatal: mod_ntlm.so: can't find symbol

*** Error code 1

make: Fatal error: Command failed for target `restart'

#

# file /opt/coolstack/apache2/modules/mod_ntlm.so

/opt/coolstack/apache2/modules/mod_ntlm.so:ELF 32-bit MSB dynamic lib SPARC32PLUS Version 1, V8+ Required, dynamically linked, not stripped

#

# ldd /opt/coolstack/apache2/modules/mod_ntlm.so

libc.so.1 =>/lib/libc.so.1

libm.so.2 =>/lib/libm.so.2

/platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1

#

# nm /opt/coolstack/apache2/modules/mod_ntlm.so

/opt/coolstack/apache2/modules/mod_ntlm.so:

[Index]ValueSizeType Bind Other ShndxName

[21]| 0|0|SECT |LOCL |0|20|

[2]|148|0|SECT |LOCL |0|1|

[3]|244|0|SECT |LOCL |0|2|

[4]|420|0|SECT |LOCL |0|3|

[5]|588|0|SECT |LOCL |0|4|

[6]|620|0|SECT |LOCL |0|5|

[7]|644|0|SECT |LOCL |0|6|

[8]|680|0|SECT |LOCL |0|7|

[9]|888|0|SECT |LOCL |0|8|

[10]|66492|0|SECT |LOCL |0|9|

[11]|66496|0|SECT |LOCL |0|10|

[12]|66584|0|SECT |LOCL |0|11|

[13]|66768|0|SECT |LOCL |0|12|

[14]|66824|0|SECT |LOCL |0|13|

[15]| 0|0|SECT |LOCL |0|14|

[16]| 0|0|SECT |LOCL |0|15|

[17]| 0|0|SECT |LOCL |0|16|

[18]| 0|0|SECT |LOCL |0|17|

[19]| 0|0|SECT |LOCL |0|18|

[20]| 0|0|SECT |LOCL |0|19|

[1]| 0|0|FILE |LOCL |0|ABS|.libs/mod_ntlm.so

[27]|66768|0|NOTY |LOCL |0|12|Ddata.data

[35]|66584|0|OBJT |GLOB |0|11|_DYNAMIC

[22]|66824|0|OBJT |LOCL |0|13|_END_

[36]|66492|0|OBJT |GLOB |0|9|_GLOBAL_OFFSET_TABLE_

[28]|66496|0|OBJT |GLOB |0|10|_PROCEDURE_LINKAGE_TABLE_

[23]| 0|0|OBJT |LOCL |0|1|_START_

[34]|66824|0|OBJT |GLOB |0|12|_edata

[30]|66824|0|OBJT |GLOB |0|13|_end

[29]|955|0|OBJT |GLOB |0|8|_etext

[37]| 0|0|FUNC |GLOB |0|UNDEF |ap_hook_handler

[32]| 0|0|FUNC |GLOB |0|UNDEF |ap_rputs

[24]| 0|0|FILE |LOCL |0|ABS|mod_ntlm.c

[25]|696|116|FUNC |LOCL |0|7|ntlm_handler

[31]|66768|56|OBJT |GLOB |0|12|ntlm_module

[26]|828|60|FUNC |LOCL |0|7|ntlm_register_hooks

[33]| 0|0|FUNC |GLOB |0|UNDEF |strcmp

#

#

mikee11a at 2007-7-29 11:58:02 > top of Java-index,Open Source Technologies,OpenSPARC...