Bug 38965 - mod_authnz_ldap compile problem. Without it I get HTTPD compile clean
Summary: mod_authnz_ldap compile problem. Without it I get HTTPD compile clean
Status: RESOLVED LATER
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_authz_ldap (show other bugs)
Version: 2.2.0
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-14 18:48 UTC by Alberto Colosi
Modified: 2019-10-15 23:01 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Colosi 2006-03-14 18:48:17 UTC
Is that a bug or a missconfiguration in conf line or something else?
APR and APR-Util has been compilet with ldap sup -- line

./configure --enable-deflate --enable-mime-magic --enable-expires --enable-
usertrack --enable-unique-id --enable-ssl --with-ssl=/usr/local/ssl --enable-
http --enable-mod-info --enable-info --enable-cgi --enable-cgid --enable-
spelling --with-ldap-include=/home/colosi/dev/ldap/openldap-2.3.20/include --
with-ldap-lib=/home/colosi/dev/ldap/openldap-2.3.20/libraries --with-ldap --
enable-authnz-ldap --enable-ldap --enable-module=all --with-apr=./srclib/apr --
with-apr-util=./srclib/apr-util/


/apache/httpd-2.2.0/modules/http -I/home/colosi/dev/apache/httpd-
2.2.0/modules/filters -I/home/colosi/dev/apache/httpd-2.2.0/modules/proxy -
I/home/colosi/dev/apache/httpd-2.2.0/include -I/home/colosi/dev/apache/httpd-
2.2.0/modules/generators -I/home/colosi/dev/apache/httpd-2.2.0/modules/mappers -
I/home/colosi/dev/apache/httpd-2.2.0/modules/database -
I/home/colosi/dev/apache/httpd-2.2.0/srclib/apr/include -
I/home/colosi/dev/apache/httpd-2.2.0/srclib/apr-util/include -
I/usr/local/include -I/home/colosi/dev/apache/httpd-
2.2.0/modules/proxy/../generators -I/usr/local/ssl/include -
I/usr/kerberos/include -I/home/colosi/dev/apache/httpd-2.2.0/modules/ssl -
I/home/colosi/dev/apache/httpd-2.2.0/modules/dav/main  -prefer-non-pic -static -
c modules.c && touch modules.lo
gcc -g -O2 -pthread    -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE    -I/home/colosi/dev/apache/httpd-2.2.0/srclib/pcre -I. -
I/home/colosi/dev/apache/httpd-2.2.0/os/unix -I/home/colosi/dev/apache/httpd-
2.2.0/server/mpm/prefork -I/home/colosi/dev/apache/httpd-2.2.0/modules/http -
I/home/colosi/dev/apache/httpd-2.2.0/modules/filters -
I/home/colosi/dev/apache/httpd-2.2.0/modules/proxy -
I/home/colosi/dev/apache/httpd-2.2.0/include -I/home/colosi/dev/apache/httpd-
2.2.0/modules/generators -I/home/colosi/dev/apache/httpd-2.2.0/modules/mappers -
I/home/colosi/dev/apache/httpd-2.2.0/modules/database -
I/home/colosi/dev/apache/httpd-2.2.0/srclib/apr/include -
I/home/colosi/dev/apache/httpd-2.2.0/srclib/apr-util/include -
I/usr/local/include -I/home/colosi/dev/apache/httpd-
2.2.0/modules/proxy/../generators -I/usr/local/ssl/include -
I/usr/kerberos/include -I/home/colosi/dev/apache/httpd-2.2.0/modules/ssl -
I/home/colosi/dev/apache/httpd-2.2.0/modules/dav/main  -
c /home/colosi/dev/apache/httpd-2.2.0/server/buildmark.c
/home/colosi/dev/apache/httpd-2.2.0/srclib/apr/libtool --silent --mode=link 
gcc -g -O2 -pthread     -L/usr/local/lib -L/usr/local/ssl/lib   -o httpd  
modules.lo buildmark.o -export-dynamic server/libmain.la 
modules/aaa/libmod_authn_file.la modules/aaa/libmod_authn_default.la 
modules/aaa/libmod_authz_host.la modules/aaa/libmod_authz_groupfile.la 
modules/aaa/libmod_authz_user.la modules/aaa/libmod_authnz_ldap.la 
modules/aaa/libmod_authz_default.la modules/aaa/libmod_auth_basic.la 
modules/filters/libmod_include.la modules/filters/libmod_filter.la 
modules/filters/libmod_deflate.la modules/ldap/libmod_ldap.la 
modules/loggers/libmod_log_config.la modules/metadata/libmod_env.la 
modules/metadata/libmod_mime_magic.la modules/metadata/libmod_expires.la 
modules/metadata/libmod_usertrack.la modules/metadata/libmod_unique_id.la 
modules/metadata/libmod_setenvif.la modules/ssl/libmod_ssl.la 
modules/http/libmod_http.la modules/http/libmod_mime.la 
modules/generators/libmod_status.la modules/generators/libmod_autoindex.la 
modules/generators/libmod_asis.la modules/generators/libmod_info.la 
modules/generators/libmod_cgi.la modules/generators/libmod_cgid.la 
modules/mappers/libmod_negotiation.la modules/mappers/libmod_dir.la 
modules/mappers/libmod_actions.la modules/mappers/libmod_userdir.la 
modules/mappers/libmod_alias.la modules/mappers/libmod_so.la 
server/mpm/prefork/libprefork.la os/unix/libos.la -
lm /home/colosi/dev/apache/httpd-
2.2.0/srclib/pcre/libpcre.la /home/colosi/dev/apache/httpd-2.2.0/srclib/apr-
util/libaprutil-1.la -lldap -llber -lgdbm -ldb-4.0 -
lexpat /home/colosi/dev/apache/httpd-2.2.0/srclib/apr/libapr-1.la -luuid -lrt -
lcrypt -lpthread -ldl
server/.libs/libmain.a(exports.o)(.data+0xe4c): undefined reference to 
`apr_ldap_ssl_init'
server/.libs/libmain.a(exports.o)(.data+0xe50): undefined reference to 
`apr_ldap_ssl_deinit'
server/.libs/libmain.a(exports.o)(.data+0xe54): undefined reference to 
`apr_ldap_init'
server/.libs/libmain.a(exports.o)(.data+0xe58): undefined reference to 
`apr_ldap_info'
server/.libs/libmain.a(exports.o)(.data+0xe5c): undefined reference to 
`apr_ldap_get_option'
server/.libs/libmain.a(exports.o)(.data+0xe60): undefined reference to 
`apr_ldap_set_option'
server/.libs/libmain.a(exports.o)(.data+0xe64): undefined reference to 
`apr_ldap_is_ldap_url'
server/.libs/libmain.a(exports.o)(.data+0xe68): undefined reference to 
`apr_ldap_is_ldaps_url'
server/.libs/libmain.a(exports.o)(.data+0xe6c): undefined reference to 
`apr_ldap_is_ldapi_url'
server/.libs/libmain.a(exports.o)(.data+0xe70): undefined reference to 
`apr_ldap_url_parse_ext'
server/.libs/libmain.a(exports.o)(.data+0xe74): undefined reference to 
`apr_ldap_url_parse'
modules/aaa/.libs/libmod_authnz_ldap.a(mod_authnz_ldap.o)(.text+0x140b): In 
function `mod_auth_ldap_parse_url':
/home/colosi/dev/apache/httpd-2.2.0/modules/aaa/mod_authnz_ldap.c:843: 
undefined reference to `apr_ldap_url_parse'
modules/ldap/.libs/libmod_ldap.a(util_ldap.o)(.text+0x269): In function 
`uldap_connection_open':
/home/colosi/dev/apache/httpd-2.2.0/modules/ldap/util_ldap.c:243: undefined 
reference to `apr_ldap_init'
modules/ldap/.libs/libmod_ldap.a(util_ldap.o)
(.text+0x2dd):/home/colosi/dev/apache/httpd-2.2.0/modules/ldap/util_ldap.c:281: 
undefined reference to `apr_ldap_set_option'
modules/ldap/.libs/libmod_ldap.a(util_ldap.o)
(.text+0x322):/home/colosi/dev/apache/httpd-2.2.0/modules/ldap/util_ldap.c:300: 
undefined reference to `apr_ldap_set_option'
modules/ldap/.libs/libmod_ldap.a(util_ldap.o)
(.text+0x351):/home/colosi/dev/apache/httpd-2.2.0/modules/ldap/util_ldap.c:330: 
undefined reference to `apr_ldap_set_option'
modules/ldap/.libs/libmod_ldap.a(util_ldap.o)
(.text+0x3ba):/home/colosi/dev/apache/httpd-2.2.0/modules/ldap/util_ldap.c:268: 
undefined reference to `apr_ldap_set_option'
modules/ldap/.libs/libmod_ldap.a(util_ldap.o)(.text+0x20cd): In function 
`util_ldap_cleanup_module':
/home/colosi/dev/apache/httpd-2.2.0/modules/ldap/util_ldap.c:1782: undefined 
reference to `apr_ldap_ssl_deinit'
modules/ldap/.libs/libmod_ldap.a(util_ldap.o)(.text+0x215a): In function 
`util_ldap_post_config':
/home/colosi/dev/apache/httpd-2.2.0/modules/ldap/util_ldap.c:1894: undefined 
reference to `apr_ldap_info'
modules/ldap/.libs/libmod_ldap.a(util_ldap.o)
(.text+0x218d):/home/colosi/dev/apache/httpd-
2.2.0/modules/ldap/util_ldap.c:1909: undefined reference to `apr_ldap_ssl_init'
modules/ldap/.libs/libmod_ldap.a(util_ldap.o)
(.text+0x21fa):/home/colosi/dev/apache/httpd-
2.2.0/modules/ldap/util_ldap.c:1914: undefined reference to 
`apr_ldap_set_option'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/home/colosi/dev/apache/httpd-2.2.0'
make: *** [all-recursive] Error 1
Comment 1 Brad Nicholes 2006-03-14 22:02:13 UTC
It appears that you are linking with the wrong APR and APR-Util.  It should be 
version 1.2.x or higher.
Comment 2 Alberto Colosi 2006-03-14 22:06:08 UTC
I use the ones shipped with httpd v2.2.0
Comment 3 Alberto Colosi 2006-03-14 22:07:52 UTC
p.s. the system is new with no previous installations of apr and apr-util
Comment 4 Alberto Colosi 2006-03-14 22:10:35 UTC
as you see inside the reported lines:

I/home/colosi/dev/apache/httpd-2.2.0/srclib/apr/include -
I/home/colosi/dev/apache/httpd-2.2.0/srclib/apr-util/include -

are inside the https-2.2.0 srclib and original tarball shipment.
Comment 5 Ruediger Pluem 2006-03-14 22:25:06 UTC
Could you please attach the output of your configure call, such that we can see
that apr-util really detected LDAP?
BTW: If you use the shipped apr / apr-util you do not need to add --with-apr /
--with-apr-util to your configure call.
Comment 6 Alberto Colosi 2006-03-14 22:45:37 UTC
[root@nova5 apr]# /usr/local/apr/bin/apr-1-config --version
1.2.2
[root@nova5 apr]# /usr/local/apr/bin/apu-1-config --version
1.2.2

./configure --enable-deflate --enable-mime-magic --enable-expires --enable-
usertrack --enable-unique-id --enable-ssl --with-ssl=/usr/local/ssl --enable-
http --enable-mod-info --enable-info --enable-cgi --enable-cgid --enable-
spelling --with-ldap-include=/home/colosi/dev/ldap/openldap-2.3.20/include --
with-ldap-lib=/home/colosi/dev/ldap/openldap-2.3.20/libraries --with-ldap --
enable-authnz-ldap --enable-ldap --enable-module=all --with-apr=./srclib/apr --
with-apr-util=./srclib/apr-util/
Comment 7 Alberto Colosi 2006-03-14 22:54:04 UTC
With configure line: ./configure --enable-deflate --enable-mime-magic --enable-
expires --enable-usertrack --enable-unique-id --enable-ssl --with-
ssl=/usr/local/ssl --enable-http --enable-mod-info --enable-info --enable-cgi -
-enable-cgid --enable-spelling --enable-authnz-ldap --enable-
ldap=/usr/local/ldap/openldap2.3.20/ --enable-module=all

I get: mod_authnz_ldap.c:40:2: #error mod_authnz_ldap requires APR-util to 
have LDAP support built in. To fix add --with-ldap to ./configure.

Why it is not passed?


Making all in aaa
make[2]: Entering directory `/home/colosi/dev/apache/httpd-2.2.0/modules/aaa'
make[3]: Entering directory `/home/colosi/dev/apache/httpd-2.2.0/modules/aaa'
/usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread    -
DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE    -
I/home/colosi/dev/apache/httpd-2.2.0/srclib/pcre -I. -
I/home/colosi/dev/apache/httpd-2.2.0/os/unix -I/home/colosi/dev/apache/httpd-
2.2.0/server/mpm/prefork -I/home/colosi/dev/apache/httpd-2.2.0/modules/http -
I/home/colosi/dev/apache/httpd-2.2.0/modules/filters -
I/home/colosi/dev/apache/httpd-2.2.0/modules/proxy -
I/home/colosi/dev/apache/httpd-2.2.0/include -I/home/colosi/dev/apache/httpd-
2.2.0/modules/generators -I/home/colosi/dev/apache/httpd-
2.2.0/modules/mappers -I/home/colosi/dev/apache/httpd-2.2.0/modules/database -
I/usr/local/apr/include/apr-1 -I/usr/local/include -
I/home/colosi/dev/apache/httpd-2.2.0/modules/proxy/../generators -
I/usr/local/ssl/include -I/usr/kerberos/include -
I/home/colosi/dev/apache/httpd-2.2.0/modules/ssl -
I/home/colosi/dev/apache/httpd-2.2.0/modules/dav/main  -prefer-non-pic -
static -c mod_authnz_ldap.c && touch mod_authnz_ldap.lo
mod_authnz_ldap.c:40:2: #error mod_authnz_ldap requires APR-util to have LDAP 
support built in. To fix add --with-ldap to ./configure.
mod_authnz_ldap.c:62: parse error before "deref_options"
mod_authnz_ldap.c:62: warning: no semicolon at end of struct or union
mod_authnz_ldap.c:76: parse error before '}' token
mod_authnz_ldap.c:76: warning: data definition has no type or storage class
mod_authnz_ldap.c:92: parse error before '*' token
mod_authnz_ldap.c:92: warning: data definition has no type or storage class
mod_authnz_ldap.c:93: parse error before '*' token
mod_authnz_ldap.c:93: warning: data definition has no type or storage class
mod_authnz_ldap.c:94: parse error before '*' token
mod_authnz_ldap.c:94: warning: data definition has no type or storage class
mod_authnz_ldap.c:95: parse error before '*' token
mod_authnz_ldap.c:95: warning: data definition has no type or storage class
mod_authnz_ldap.c:96: parse error before '*' token
mod_authnz_ldap.c:96: warning: data definition has no type or storage class
mod_authnz_ldap.c:97: parse error before '*' token
mod_authnz_ldap.c:97: warning: data definition has no type or storage class
mod_authnz_ldap.c:98: parse error before '*' token
mod_authnz_ldap.c:98: warning: data definition has no type or storage class
mod_authnz_ldap.c:177: parse error before "authn_ldap_config_t"
mod_authnz_ldap.c: In function `authn_ldap_build_filter':
mod_authnz_ldap.c:186: `sent_user' undeclared (first use in this function)
mod_authnz_ldap.c:186: (Each undeclared identifier is reported only once
mod_authnz_ldap.c:186: for each function it appears in.)
mod_authnz_ldap.c:187: `r' undeclared (first use in this function)
mod_authnz_ldap.c:192: `sent_filter' undeclared (first use in this function)
mod_authnz_ldap.c:196: `sec' undeclared (first use in this function)
mod_authnz_ldap.c:217: `filtbuf' undeclared (first use in this function)
mod_authnz_ldap.c: In function `create_authnz_ldap_dir_config':
mod_authnz_ldap.c:277: `sec' undeclared (first use in this function)
mod_authnz_ldap.c:278: parse error before ')' token
mod_authnz_ldap.c:295: `always' undeclared (first use in this function)
mod_authnz_ldap.c: In function `authnz_ldap_cleanup_connection_close':
mod_authnz_ldap.c:313: `util_ldap_connection_t' undeclared (first use in this 
function)
mod_authnz_ldap.c:313: `ldc' undeclared (first use in this function)
mod_authnz_ldap.c:314: called object is not a function
mod_authnz_ldap.c: In function `authn_ldap_check_password':
mod_authnz_ldap.c:335: `sec' undeclared (first use in this function)
mod_authnz_ldap.c:336: parse error before ')' token
mod_authnz_ldap.c:338: `util_ldap_connection_t' undeclared (first use in this 
function)
mod_authnz_ldap.c:338: `ldc' undeclared (first use in this function)
mod_authnz_ldap.c:365: called object is not a function
mod_authnz_ldap.c:380: called object is not a function
mod_authnz_ldap.c:387: called object is not a function
mod_authnz_ldap.c:396: called object is not a function
mod_authnz_ldap.c:397: called object is not a function
mod_authnz_ldap.c:400: `LDAP_SERVER_DOWN' undeclared (first use in this 
function)
mod_authnz_ldap.c:407: `LDAP_SUCCESS' undeclared (first use in this function)
mod_authnz_ldap.c:413: `LDAP_NO_SUCH_OBJECT' undeclared (first use in this 
function)
mod_authnz_ldap.c: In function `authz_ldap_check_user_access':
mod_authnz_ldap.c:472: `sec' undeclared (first use in this function)
mod_authnz_ldap.c:473: parse error before ')' token
mod_authnz_ldap.c:475: `util_ldap_connection_t' undeclared (first use in this 
function)
mod_authnz_ldap.c:475: `ldc' undeclared (first use in this function)
mod_authnz_ldap.c:503: called object is not a function
mod_authnz_ldap.c:560: called object is not a function
mod_authnz_ldap.c:563: `LDAP_SUCCESS' undeclared (first use in this function)
mod_authnz_ldap.c:599: called object is not a function
mod_authnz_ldap.c:601: `LDAP_COMPARE_TRUE' undeclared (first use in this 
function)
mod_authnz_ldap.c:619: called object is not a function
mod_authnz_ldap.c:645: called object is not a function
mod_authnz_ldap.c:694: called object is not a function
mod_authnz_ldap.c:728: called object is not a function
mod_authnz_ldap.c:765: called object is not a function
mod_authnz_ldap.c:773: called object is not a function
mod_authnz_ldap.c:784: `LDAP_FILTER_ERROR' undeclared (first use in this 
function)
mod_authnz_ldap.c: In function `mod_auth_ldap_parse_url':
mod_authnz_ldap.c:835: `apr_ldap_url_desc_t' undeclared (first use in this 
function)
mod_authnz_ldap.c:835: `urld' undeclared (first use in this function)
mod_authnz_ldap.c:836: `apr_ldap_err_t' undeclared (first use in this function)
mod_authnz_ldap.c:836: `result' undeclared (first use in this function)
mod_authnz_ldap.c:838: `sec' undeclared (first use in this function)
mod_authnz_ldap.c:859: `LDAP_SCOPE_SUBTREE' undeclared (first use in this 
function)
mod_authnz_ldap.c:860: `LDAP_SCOPE_BASE' undeclared (first use in this 
function)
mod_authnz_ldap.c:861: `LDAP_SCOPE_ONELEVEL' undeclared (first use in this 
function)
mod_authnz_ldap.c:916: `APR_LDAP_NONE' undeclared (first use in this function)
mod_authnz_ldap.c:919: `APR_LDAP_SSL' undeclared (first use in this function)
mod_authnz_ldap.c:922: `APR_LDAP_STARTTLS' undeclared (first use in this 
function)
mod_authnz_ldap.c:935: `LDAPS_PORT' undeclared (first use in this function)
mod_authnz_ldap.c:941: `LDAP_PORT' undeclared (first use in this function)
mod_authnz_ldap.c: In function `mod_auth_ldap_set_deref':
mod_authnz_ldap.c:953: `sec' undeclared (first use in this function)
mod_authnz_ldap.c:956: `never' undeclared (first use in this function)
mod_authnz_ldap.c:959: `searching' undeclared (first use in this function)
mod_authnz_ldap.c:962: `finding' undeclared (first use in this function)
mod_authnz_ldap.c:965: `always' undeclared (first use in this function)
mod_authnz_ldap.c: In function `mod_auth_ldap_add_group_attribute':
mod_authnz_ldap.c:977: `sec' undeclared (first use in this function)
mod_authnz_ldap.c: At top level:
mod_authnz_ldap.c:1023: parse error before ')' token
mod_authnz_ldap.c:1023: initializer element is not constant
mod_authnz_ldap.c:1023: (near initialization for `authnz_ldap_cmds
[1].cmd_data')
mod_authnz_ldap.c:1023: initializer element is not constant
mod_authnz_ldap.c:1023: (near initialization for `authnz_ldap_cmds[1]')
mod_authnz_ldap.c:1027: initializer element is not constant
mod_authnz_ldap.c:1027: (near initialization for `authnz_ldap_cmds[2].func')
mod_authnz_ldap.c:1027: parse error before ')' token
mod_authnz_ldap.c:1027: initializer element is not constant
mod_authnz_ldap.c:1027: (near initialization for `authnz_ldap_cmds
[2].cmd_data')
mod_authnz_ldap.c:1027: initializer element is not constant
mod_authnz_ldap.c:1027: (near initialization for `authnz_ldap_cmds[2]')
mod_authnz_ldap.c:1033: initializer element is not constant
mod_authnz_ldap.c:1033: (near initialization for `authnz_ldap_cmds[3].func')
mod_authnz_ldap.c:1033: parse error before ')' token
mod_authnz_ldap.c:1033: initializer element is not constant
mod_authnz_ldap.c:1033: (near initialization for `authnz_ldap_cmds
[3].cmd_data')
mod_authnz_ldap.c:1033: initializer element is not constant
mod_authnz_ldap.c:1033: (near initialization for `authnz_ldap_cmds[3]')
mod_authnz_ldap.c:1038: initializer element is not constant
mod_authnz_ldap.c:1038: (near initialization for `authnz_ldap_cmds[4].func')
mod_authnz_ldap.c:1038: parse error before ')' token
mod_authnz_ldap.c:1038: initializer element is not constant
mod_authnz_ldap.c:1038: (near initialization for `authnz_ldap_cmds
[4].cmd_data')
mod_authnz_ldap.c:1038: initializer element is not constant
mod_authnz_ldap.c:1038: (near initialization for `authnz_ldap_cmds[4]')
mod_authnz_ldap.c:1045: initializer element is not constant
mod_authnz_ldap.c:1045: (near initialization for `authnz_ldap_cmds[5].func')
mod_authnz_ldap.c:1045: parse error before ')' token
mod_authnz_ldap.c:1045: initializer element is not constant
mod_authnz_ldap.c:1045: (near initialization for `authnz_ldap_cmds
[5].cmd_data')
mod_authnz_ldap.c:1045: initializer element is not constant
mod_authnz_ldap.c:1045: (near initialization for `authnz_ldap_cmds[5]')
mod_authnz_ldap.c:1049: initializer element is not constant
mod_authnz_ldap.c:1049: (near initialization for `authnz_ldap_cmds[6].func')
mod_authnz_ldap.c:1049: initializer element is not constant
mod_authnz_ldap.c:1049: (near initialization for `authnz_ldap_cmds[6]')
mod_authnz_ldap.c:1055: initializer element is not constant
mod_authnz_ldap.c:1055: (near initialization for `authnz_ldap_cmds[7].func')
mod_authnz_ldap.c:1055: parse error before ')' token
mod_authnz_ldap.c:1055: initializer element is not constant
mod_authnz_ldap.c:1055: (near initialization for `authnz_ldap_cmds
[7].cmd_data')
mod_authnz_ldap.c:1055: initializer element is not constant
mod_authnz_ldap.c:1055: (near initialization for `authnz_ldap_cmds[7]')
mod_authnz_ldap.c:1060: initializer element is not constant
mod_authnz_ldap.c:1060: (near initialization for `authnz_ldap_cmds[8].func')
mod_authnz_ldap.c:1060: initializer element is not constant
mod_authnz_ldap.c:1060: (near initialization for `authnz_ldap_cmds[8]')
mod_authnz_ldap.c:1070: initializer element is not constant
mod_authnz_ldap.c:1070: (near initialization for `authnz_ldap_cmds[9].func')
mod_authnz_ldap.c:1070: initializer element is not constant
mod_authnz_ldap.c:1070: (near initialization for `authnz_ldap_cmds[9]')
mod_authnz_ldap.c:1072: initializer element is not constant
mod_authnz_ldap.c:1072: (near initialization for `authnz_ldap_cmds[10]')
mod_authnz_ldap.c: In function `ImportULDAPOptFn':
mod_authnz_ldap.c:1165: `apr_OFN_uldap_connection_close_t' undeclared (first 
use in this function)
mod_authnz_ldap.c:1165: parse error before ')' token
mod_authnz_ldap.c:1166: `apr_OFN_uldap_connection_find_t' undeclared (first 
use in this function)
mod_authnz_ldap.c:1166: parse error before ')' token
mod_authnz_ldap.c:1167: `apr_OFN_uldap_cache_comparedn_t' undeclared (first 
use in this function)
mod_authnz_ldap.c:1167: parse error before ')' token
mod_authnz_ldap.c:1168: `apr_OFN_uldap_cache_compare_t' undeclared (first use 
in this function)
mod_authnz_ldap.c:1168: parse error before ')' token
mod_authnz_ldap.c:1169: `apr_OFN_uldap_cache_checkuserid_t' undeclared (first 
use in this function)
mod_authnz_ldap.c:1169: parse error before ')' token
mod_authnz_ldap.c:1170: `apr_OFN_uldap_cache_getuserdn_t' undeclared (first 
use in this function)
mod_authnz_ldap.c:1170: parse error before ')' token
mod_authnz_ldap.c:1171: `apr_OFN_uldap_ssl_supported_t' undeclared (first use 
in this function)
mod_authnz_ldap.c:1171: parse error before ')' token
make[3]: *** [mod_authnz_ldap.lo] Error 1
make[3]: Leaving directory `/home/colosi/dev/apache/httpd-2.2.0/modules/aaa'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/colosi/dev/apache/httpd-2.2.0/modules/aaa'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/colosi/dev/apache/httpd-2.2.0/modules'
make: *** [all-recursive] Error 1
Comment 8 Alberto Colosi 2006-03-14 23:00:55 UTC
followed your sugestion and taked out --with-apr and apr-util
corrected the path with-ldap=
but I get out the same.

Conf line:
./configure --enable-deflate --enable-mime-magic --enable-expires --enable-
usertrack --enable-unique-id --enable-ssl --with-ssl=/usr/local/ssl --enable-
http --enable-mod-info --enable-info --enable-cgi --enable-cgid --enable-
spelling --enable-authnz-ldap --enable-ldap=/home/colosi/dev/ldap/openldap-
2.3.20/ --enable-module=all --with-ldap
Comment 9 Alberto Colosi 2006-03-15 01:01:59 UTC
Compiled in modules:
  core.c
  mod_authn_file.c
  mod_authn_default.c
  mod_authz_host.c
  mod_authz_groupfile.c
  mod_authz_user.c
  mod_authnz_ldap.c
  mod_authz_default.c
  mod_auth_basic.c
  mod_include.c
  mod_filter.c
  mod_deflate.c
  util_ldap.c
  mod_log_config.c
  mod_env.c
  mod_mime_magic.c
  mod_expires.c
  mod_usertrack.c
  mod_unique_id.c
  mod_setenvif.c
  mod_ssl.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_info.c
  mod_cgi.c
  mod_cgid.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c

./configure --enable-deflate --enable-mime-magic --enable-expires --enable-
usertrack --enable-unique-id --enable-ssl --with-ssl=/usr/local/ssl --enable-
http --enable-mod-info --enable-info --enable-cgi --enable-cgid --enable-
spelling --enable-module=all --with-ldap --enable-ldap --enable-auth-ldap --
enable-authnz-ldap --with-ldap-include=/home/colosi/dev/ldap/novell-cldap-
devel-2006.02.20-1linux/include/ --with-ldap-lib=/home/colosi/dev/ldap/novell-
cldap-devel-2006.02.20-1linux/lib/ --prefix=/usr/local/apache220

With openldap-2.3.20.tgz or Netscape  ldapcsdk5.06-
Linux2.2_x86_glibc_PTH_OPT.OBJ.tar.gz         I DON'T COMPILE

With novell-cldap-devel-2006.02.20-1linux.tar.gz I compile HTTPD 2.2.0 FINE!
With this LIBS is OK!.


Why not with OpenLDAP and Netscape?
Comment 10 Ruediger Pluem 2006-03-15 09:15:32 UTC
(In reply to comment #6)
> [root@nova5 apr]# /usr/local/apr/bin/apr-1-config --version
> 1.2.2
> [root@nova5 apr]# /usr/local/apr/bin/apu-1-config --version
> 1.2.2

This is confusing. You said you had no other installation of apr on your box.
The bundled ones do install in subdirs of the httpd directories, so from where
do you get these apr versions?

> 
> ./configure --enable-deflate --enable-mime-magic --enable-expires --enable-
> usertrack --enable-unique-id --enable-ssl --with-ssl=/usr/local/ssl --enable-
> http --enable-mod-info --enable-info --enable-cgi --enable-cgid --enable-
> spelling --with-ldap-include=/home/colosi/dev/ldap/openldap-2.3.20/include --
> with-ldap-lib=/home/colosi/dev/ldap/openldap-2.3.20/libraries --with-ldap --
> enable-authnz-ldap --enable-ldap --enable-module=all --with-apr=./srclib/apr 

I am still missing what configure printed out in the case where it did not work.
Please attach this output.

Comment 11 Alberto Colosi 2006-03-16 19:58:11 UTC
the apr on that dirs are the binaries builted with the sources inside apache. 
Is strange you ask :)

The other you ask is there in the ticket or we don't keep in touch in what you 
want in real.

Owever I said that with Novell LDAP SDK I succesfully compiled HTTPD but not 
with sun and OpenLDAP libs.
Comment 12 Alberto Colosi 2006-03-16 20:00:33 UTC
a question if you can that is not related to the ticket:
there is no way to transfer some info of the authenticated user from LDAP 
server like email address or other informations?. I need some info to be 
evaluated by CGI done by me.

I have seen the filters but are not my target becouse simply I need to 
transfer to ENV vars some variables/info from the ldap entry from the 
authenticate user.
Comment 13 Ruediger Pluem 2006-03-16 20:29:15 UTC
(In reply to comment #11)
> the apr on that dirs are the binaries builted with the sources inside apache. 
> Is strange you ask :)

But they do not get installed in separate directories by default. The .so and .h
files of apr get installed in subdirectories below the prefix of httpd. As you
specified no --prefix option to configure it should be below /usr/local/apache2.
Do you compile and install the bundled apr / apr-util separately, before
compiling httpd?

> 
> The other you ask is there in the ticket or we don't keep in touch in what you 
> want in real.

I miss the output of configure's test result. This is not in the ticket. You
pasted much output from your make call, but not from the configure call.
Comment 14 Alberto Colosi 2006-03-16 22:35:31 UTC
(In reply to comment #13)
> (In reply to comment #11)
> > the apr on that dirs are the binaries builted with the sources inside 
apache. 
> > Is strange you ask :)
> But they do not get installed in separate directories by default. The .so 
and .h
> files of apr get installed in subdirectories below the prefix of httpd. As 
you
> specified no --prefix option to configure it should be 
below /usr/local/apache2.
> Do you compile and install the bundled apr / apr-util separately, before
> compiling httpd?

Ya, tried it too! tried many ways. Owever I WANT to repeat that the same 
source tree as compiled fine with Novell LDAP LIBS. The problem is only with 
Netscape and OpenLDAP LDAP SDK LIBs

> > The other you ask is there in the ticket or we don't keep in touch in what 
you 
> > want in real.
> I miss the output of configure's test result. This is not in the ticket. You
> pasted much output from your make call, but not from the configure call.

OK, now I understood. I'll paste tomorrow GMT+1 Italy Time (ASAP)
Comment 15 Alberto Colosi 2006-03-23 21:41:47 UTC
With this configure line now httpd 2.2.0 compile fine even with iPlanet SDK:
Question: But what was wrong with past configure line?

./configure --enable-deflate --enable-mime-magic --enable-expires --enable-
usertrack --enable-unique-id --enable-ssl --with-ssl=/usr/local/ssl --enable-
http --enable-mod-info --enable-info --enable-cgi --enable-cgid --enable-
spelling --enable-module=all --with-ldap --enable-ldap --enable-auth-ldap --
enable-authnz-ldap --with-ldap-include=../../ldap/iplanet/include --with-ldap-
lib=../../ldap/iplanet/lib/

=================================================================
              iPlanet LDAP SDK for C, version 5.x
=================================================================

Documentation for this release of the LDAP SDK for C is located
at the following URL:

   http://docs.iplanet.com/docs/manuals/directory.html#SDKC

The documentation set includes the "Release Notes" (in HTML
format) and the "Netscape LDAP SDK for C Programmer's Guide."
The Programmer's Guide is available in PDF and HTML formats.

Please note that the LDAP SDK for C library is most of the time
ahead of our official documentation.  For example, we currently
don't have a 5.0 branded version of the documentation, however,
using the latest 4.1 version should be sufficient.

Portions of this LDAP SDK are also available in source code form
as part of the Mozilla.org open source project under the terms of
the Netscape Public License.  Please Refer to the following site
for more information on how you can get that source code:

   http://www.mozilla.org/directory.

Any terms of Sun's license agreement covering this LDAP SDK which
are different from the Netscape Public License are offered by Sun
alone and not by any other party.
Comment 16 Peter Buki 2006-06-13 12:39:51 UTC
Hope it helps:
"./configure" \
"--enable-mods-shared=all" \
"--enable-ssl=shared" \
"--enable-ssl" \
"--with-ssl=/oracle/home/peter.buki/mis/ssl" \
"--enable-proxy" \
"--enable-so" \
"--enable-authnz-ldap" \
"--enable-authn-dbd" \
"--enable-ldap" \
"--prefix=/oracle/home/peter.buki/mis" \
"--with-ldap" \
"--with-apr=./srclib/apr" \
"--with-apr-util=./srclib/apr-util/" 

Output:
Configuring Apache Portable Runtime library ...

checking for APR... configure: error: the --with-apr parameter is incorrect. It
must specify an install prefix, a build directory, or an apr-config file.
Comment 17 Peter Buki 2006-06-13 12:45:52 UTC
(Without "--with-apr-util")
With:
"./configure" \
"--enable-mods-shared=all" \
"--enable-ssl=shared" \
"--enable-ssl" \
"--with-ssl=/oracle/home/peter.buki/mis/ssl" \
"--enable-proxy" \
"--enable-so" \
"--enable-authnz-ldap" \
"--enable-authn-dbd" \
"--enable-ldap" \
"--prefix=/oracle/home/peter.buki/mis" \
"--with-ldap" \
"--with-apr=./srclib/apr" \

Output:
Configuring Apache Portable Runtime Utility library...

checking for APR-util... reconfig
configure: error: Cannot use an external APR with the bundled APR-util