You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Blair Zajac <bl...@orcaware.com> on 2002/12/11 05:29:29 UTC

apr_ldap_url.h parse error with latest commit

I'm getting the following compile error with apr/apr-util HEAD and httpd-2.0
APACHE_2_0_BRANCH

/bin/sh /tmp/h/srclib/apr/libtool --silent --mode=compile gcc  -pthread  -g -O2
-Wl,-rpath,/opt/i386-linux/db-4.1/lib  -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER 
-I/tmp/h/srclib/apr/include -I/tmp/h/srclib/apr-util/include
-I/opt/i386-linux/db-4.1/include -I. -I/tmp/h/os/unix -I/tmp/h/server/mpm/prefork
-I/tmp/h/modules/http -I/tmp/h/modules/filters -I/tmp/h/modules/proxy -I/tmp/h/include
-I/usr/include/openssl -I/tmp/h/modules/dav/main -prefer-non-pic -static -c
/tmp/h/server/exports.c && touch /tmp/h/server/exports.lo
In file included from /tmp/h/server/exports.c:88:
/tmp/h/srclib/apr-util/include/apr_ldap_url.h:106: parse error before "char"
/tmp/h/srclib/apr-util/include/apr_ldap_url.h:108: parse error before "char"
/tmp/h/srclib/apr-util/include/apr_ldap_url.h:110: parse error before "char"
/tmp/h/srclib/apr-util/include/apr_ldap_url.h:112: parse error before "char"
make[2]: *** [/tmp/h/server/exports.lo] Error 1
make[2]: Leaving directory `/tmp/h/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/h/server'
make: *** [all-recursive] Error 1

When running configure in httpd, here's the ldap portion of the configure
output:

checking for unistd.h... yes
checking for ldap support...
checking gdbm.h usability... yes

Doing a recursive grep on LDAP_CONST doesn't show it being #defined anywhere.

This is on RedHat 8.0.

Best,
Blair

-- 
Blair Zajac <bl...@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/

Re: apr_ldap_url.h parse error with latest commit

Posted by Graham Leggett <mi...@sharp.fm>.
Blair Zajac wrote:

> configure | grep ldap:
> 
> checking for ldap support...
> config.status: creating include/apr_ldap.h
> config.status: creating ldap/Makefile
> checking whether to enable mod_auth_ldap... no
> checking whether to enable mod_ldap... no
> Making depend in ldap

Instead of using grep ldap, look for the section of apr-util's configure 
that deals with ldap. It should look something like this:

checking for ldap support...
checking for ldap_init in -lldap50... no
checking for ldap_init in -lldapssl41... no
checking for ldap_init in -lldapssl40... no
checking for ldap_init in -lldapssl30... no
checking for ldap_init in -lldapssl20... no
checking for ldap_init in -lldap... yes
   setting APRUTIL_EXPORT_LIBS to "-lldap -llber"
   setting APRUTIL_LIBS to "-lldap -llber"
checking for ldapssl_install_routines in -lldap... no
checking for ldap_start_tls_s in -lldap... yes
checking for ber_init in -llber... yes
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking lber.h usability... yes
checking lber.h presence... yes
checking for lber.h... yes
checking ldap_ssl.h usability... no
checking ldap_ssl.h presence... no
checking for ldap_ssl.h... no

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."


Re: apr_ldap_url.h parse error with latest commit

Posted by Blair Zajac <bl...@orcaware.com>.
"William A. Rowe, Jr." wrote:
> 
> At 12:37 AM 12/11/2002, Blair Zajac wrote:
> >"William A. Rowe, Jr." wrote:
> >>
> >> Do you have ldap installed and detected?  I have an experimental fix
> >> that should work on it's way in about 5 minutes.
> >
> >% rpm -qa|grep ldap
> >openldap-2.0.25-1
> >openldap-clients-2.0.25-1
> >openldap-devel-2.0.25-1
> >openldap-servers-2.0.25-1
> >nss_ldap-198-3
> >
> >configure | grep ldap:
> >
> >checking for ldap support...
> >config.status: creating include/apr_ldap.h
> >config.status: creating ldap/Makefile
> >checking whether to enable mod_auth_ldap... no
> >checking whether to enable mod_ldap... no
> >Making depend in ldap
> 
> Ok... no ldap detected; so...
> 
...
> We obviously can't use the apr_ldap_parse_url code right now without
> substantially replacing those ldap symbols.  Since we can't go further
> with it, I'm enclosing both apr_ldap_url.h and apr_ldap_url.c an outer
> #if APR_HAS_LDAP.  This should now build for you.
> 
> Thanks for hanging in there.

OK.  It compiled all the way through.

Thanks,
Blair

-- 
Blair Zajac <bl...@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/

Re: apr_ldap_url.h parse error with latest commit

Posted by "William A. Rowe, Jr." <wr...@apache.org>.
At 12:37 AM 12/11/2002, Blair Zajac wrote:
>"William A. Rowe, Jr." wrote:
>> 
>> Do you have ldap installed and detected?  I have an experimental fix
>> that should work on it's way in about 5 minutes.
>
>% rpm -qa|grep ldap
>openldap-2.0.25-1
>openldap-clients-2.0.25-1
>openldap-devel-2.0.25-1
>openldap-servers-2.0.25-1
>nss_ldap-198-3
>
>configure | grep ldap:
>
>checking for ldap support...
>config.status: creating include/apr_ldap.h
>config.status: creating ldap/Makefile
>checking whether to enable mod_auth_ldap... no
>checking whether to enable mod_ldap... no
>Making depend in ldap

Ok... no ldap detected; so...

>Updating to the latest HEAD with the Makefile.in changes, I now get this:
>
>/bin/sh /tmp/h/srclib/apr/libtool --silent --mode=compile gcc -pthread
>-g -O2 -Wl,-rpath,/opt/i386-linux/db-4.1/lib -DHAVE_CONFIG_H -DLINUX=2
>-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
>-I/tmp/h/srclib/apr-util/include -I/tmp/h/srclib/apr-util/include/private
>-I/tmp/h/srclib/apr/include  -I/opt/i386-linux/db-4.1/include  -c
>apr_ldap_url.c && touch apr_ldap_url.lo
>apr_ldap_url.c:153: parse error before "apr_ldap_is_ldap_url"
>apr_ldap_url.c:169: parse error before "apr_ldap_is_ldaps_url"
>apr_ldap_url.c:185: parse error before "apr_ldap_is_ldapi_url"
>apr_ldap_url.c: In function `str2scope':
>apr_ldap_url.c:260: `LDAP_SCOPE_ONELEVEL' undeclared (first use in this function)
>apr_ldap_url.c:260: (Each undeclared identifier is reported only once
>apr_ldap_url.c:260: for each function it appears in.)
>apr_ldap_url.c:266: `LDAP_SCOPE_BASE' undeclared (first use in this function)
>apr_ldap_url.c:269: `LDAP_SCOPE_SUBTREE' undeclared (first use in this function)
>apr_ldap_url.c: At top level:
>apr_ldap_url.c:280: parse error before "apr_ldap_url_desc_t"
>apr_ldap_url.c: In function `ldap_url_parse_ext':
>apr_ldap_url.c:285: `apr_ldap_url_desc_t' undeclared (first use in this function)
>apr_ldap_url.c:285: `ludp' undeclared (first use in this function)
>apr_ldap_url.c:292: `url_in' undeclared (first use in this function)
>apr_ldap_url.c:292: `ludpp' undeclared (first use in this function)
>apr_ldap_url.c:293: `LDAP_URL_ERR_PARAM' undeclared (first use in this function)
>apr_ldap_url.c:301: `LDAP_URL_ERR_BADSCHEME' undeclared (first use in this function)
>apr_ldap_url.c:307: `LDAP_URL_ERR_MEM' undeclared (first use in this function)
>apr_ldap_url.c:315: `LDAP_URL_ERR_BADENCLOSURE' undeclared (first use in this function)
>apr_ldap_url.c:322: parse error before ')' token
>apr_ldap_url.c:331: `LDAP_PORT' undeclared (first use in this function)
>apr_ldap_url.c:365: `LDAP_URL_ERR_BADURL' undeclared (first use in this function)
>apr_ldap_url.c:430: `LDAP_URL_SUCCESS' undeclared (first use in this function)
>apr_ldap_url.c:479: `LDAP_URL_ERR_BADATTRS' undeclared (first use in this function)
>apr_ldap_url.c:507: `LDAP_URL_ERR_BADSCOPE' undeclared (first use in this function)
>apr_ldap_url.c:535: `LDAP_URL_ERR_BADFILTER' undeclared (first use in this function)
>apr_ldap_url.c:572: `LDAP_URL_ERR_BADEXTS' undeclared (first use in this function)
>apr_ldap_url.c: At top level:
>apr_ldap_url.c:597: parse error before "apr_ldap_url_parse"
>apr_ldap_url.c:598: parse error before "apr_ldap_url_desc_t"
>apr_ldap_url.c: In function `apr_ldap_url_parse':
>apr_ldap_url.c:600: `url_in' undeclared (first use in this function)
>apr_ldap_url.c:600: `ludpp' undeclared (first use in this function)
>apr_ldap_url.c:602: `LDAP_URL_SUCCESS' undeclared (first use in this function)
>apr_ldap_url.c:607: `LDAP_SCOPE_BASE' undeclared (first use in this function)
>apr_ldap_url.c: At top level:
>apr_ldap_url.c:618: parse error before "apr_ldap_free_urldesc"
>apr_ldap_url.c:618: parse error before '*' token
>apr_ldap_url.c: In function `apr_ldap_free_urldesc':
>apr_ldap_url.c:620: `ludp' undeclared (first use in this function)

We obviously can't use the apr_ldap_parse_url code right now without
substantially replacing those ldap symbols.  Since we can't go further
with it, I'm enclosing both apr_ldap_url.h and apr_ldap_url.c an outer
#if APR_HAS_LDAP.  This should now build for you.

Thanks for hanging in there.

Bill


Re: apr_ldap_url.h parse error with latest commit

Posted by Blair Zajac <bl...@orcaware.com>.
"William A. Rowe, Jr." wrote:
> 
> Do you have ldap installed and detected?  I have an experimental fix
> that should work on it's way in about 5 minutes.

% rpm -qa|grep ldap
openldap-2.0.25-1
openldap-clients-2.0.25-1
openldap-devel-2.0.25-1
openldap-servers-2.0.25-1
nss_ldap-198-3

configure | grep ldap:

checking for ldap support...
config.status: creating include/apr_ldap.h
config.status: creating ldap/Makefile
checking whether to enable mod_auth_ldap... no
checking whether to enable mod_ldap... no
Making depend in ldap



Updating to the latest HEAD with the Makefile.in changes, I now get this:

/bin/sh /tmp/h/srclib/apr/libtool --silent --mode=compile gcc -pthread
-g -O2 -Wl,-rpath,/opt/i386-linux/db-4.1/lib -DHAVE_CONFIG_H -DLINUX=2
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
-I/tmp/h/srclib/apr-util/include -I/tmp/h/srclib/apr-util/include/private
-I/tmp/h/srclib/apr/include  -I/opt/i386-linux/db-4.1/include  -c
apr_ldap_url.c && touch apr_ldap_url.lo
apr_ldap_url.c:153: parse error before "apr_ldap_is_ldap_url"
apr_ldap_url.c:169: parse error before "apr_ldap_is_ldaps_url"
apr_ldap_url.c:185: parse error before "apr_ldap_is_ldapi_url"
apr_ldap_url.c: In function `str2scope':
apr_ldap_url.c:260: `LDAP_SCOPE_ONELEVEL' undeclared (first use in this function)
apr_ldap_url.c:260: (Each undeclared identifier is reported only once
apr_ldap_url.c:260: for each function it appears in.)
apr_ldap_url.c:266: `LDAP_SCOPE_BASE' undeclared (first use in this function)
apr_ldap_url.c:269: `LDAP_SCOPE_SUBTREE' undeclared (first use in this function)
apr_ldap_url.c: At top level:
apr_ldap_url.c:280: parse error before "apr_ldap_url_desc_t"
apr_ldap_url.c: In function `ldap_url_parse_ext':
apr_ldap_url.c:285: `apr_ldap_url_desc_t' undeclared (first use in this function)
apr_ldap_url.c:285: `ludp' undeclared (first use in this function)
apr_ldap_url.c:292: `url_in' undeclared (first use in this function)
apr_ldap_url.c:292: `ludpp' undeclared (first use in this function)
apr_ldap_url.c:293: `LDAP_URL_ERR_PARAM' undeclared (first use in this function)
apr_ldap_url.c:301: `LDAP_URL_ERR_BADSCHEME' undeclared (first use in this function)
apr_ldap_url.c:307: `LDAP_URL_ERR_MEM' undeclared (first use in this function)
apr_ldap_url.c:315: `LDAP_URL_ERR_BADENCLOSURE' undeclared (first use in this function)
apr_ldap_url.c:322: parse error before ')' token
apr_ldap_url.c:331: `LDAP_PORT' undeclared (first use in this function)
apr_ldap_url.c:365: `LDAP_URL_ERR_BADURL' undeclared (first use in this function)
apr_ldap_url.c:430: `LDAP_URL_SUCCESS' undeclared (first use in this function)
apr_ldap_url.c:479: `LDAP_URL_ERR_BADATTRS' undeclared (first use in this function)
apr_ldap_url.c:507: `LDAP_URL_ERR_BADSCOPE' undeclared (first use in this function)
apr_ldap_url.c:535: `LDAP_URL_ERR_BADFILTER' undeclared (first use in this function)
apr_ldap_url.c:572: `LDAP_URL_ERR_BADEXTS' undeclared (first use in this function)
apr_ldap_url.c: At top level:
apr_ldap_url.c:597: parse error before "apr_ldap_url_parse"
apr_ldap_url.c:598: parse error before "apr_ldap_url_desc_t"
apr_ldap_url.c: In function `apr_ldap_url_parse':
apr_ldap_url.c:600: `url_in' undeclared (first use in this function)
apr_ldap_url.c:600: `ludpp' undeclared (first use in this function)
apr_ldap_url.c:602: `LDAP_URL_SUCCESS' undeclared (first use in this function)
apr_ldap_url.c:607: `LDAP_SCOPE_BASE' undeclared (first use in this function)
apr_ldap_url.c: At top level:
apr_ldap_url.c:618: parse error before "apr_ldap_free_urldesc"
apr_ldap_url.c:618: parse error before '*' token
apr_ldap_url.c: In function `apr_ldap_free_urldesc':
apr_ldap_url.c:620: `ludp' undeclared (first use in this function)

-- 
Blair Zajac <bl...@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/

Re: apr_ldap_url.h parse error with latest commit

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
At 12:18 AM 12/11/2002, you wrote:
>Thanks.  One error down, now a link error:
>
>/bin/sh /tmp/h/srclib/apr/libtool --silent --mode=link gcc  -pthread 
>-g -O2 -Wl,-rpath,/opt/i386-linux/db-4.1/lib  -DLINUX=2 -D_REENTRANT
>-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
>-DAP_HAVE_DESIGNATED_INITIALIZER  -I/tmp/h/srclib/apr/include
>-I/tmp/h/srclib/apr-util/include -I/opt/i386-linux/db-4.1/include
>-I. -I/tmp/h/os/unix -I/tmp/h/server/mpm/prefork -I/tmp/h/modules/http
>-I/tmp/h/modules/filters -I/tmp/h/modules/proxy -I/tmp/h/include
>-I/usr/include/openssl -I/tmp/h/modules/dav/main -export-dynamic
>-L/opt/i386-linux/db-4.1/lib   -o httpd  modules.lo  modules/http/mod_http.la
>modules/mappers/mod_so.la server/mpm/prefork/libprefork.la server/libmain.la
>os/unix/libos.la -lz -lssl -lcrypto /tmp/h/srclib/pcre/libpcre.la
>/tmp/h/srclib/apr-util/libaprutil-0.la -lgdbm -ldb4 -lexpat
>/tmp/h/srclib/apr/libapr-0.la -lm -lcrypt -lnsl -ldl
>server/.libs/libmain.al(exports.lo)(.data+0xd30): undefined reference to `apr_ldap_is_ldap_url'
>server/.libs/libmain.al(exports.lo)(.data+0xd34): undefined reference to `apr_ldap_is_ldaps_url'
>server/.libs/libmain.al(exports.lo)(.data+0xd38): undefined reference to `apr_ldap_is_ldapi_url'
>server/.libs/libmain.al(exports.lo)(.data+0xd3c): undefined reference to `apr_ldap_url_parse'
>server/.libs/libmain.al(exports.lo)(.data+0xd40): undefined reference to `apr_ldap_free_urldesc'

Do you have ldap installed and detected?  I have an experimental fix
that should work on it's way in about 5 minutes.

Bill


Re: apr_ldap_url.h parse error with latest commit

Posted by Blair Zajac <bl...@orcaware.com>.
"William A. Rowe, Jr." wrote:
> 
> At 10:29 PM 12/10/2002, Blair Zajac wrote:
> >I'm getting the following compile error with apr/apr-util HEAD and httpd-2.0
> >APACHE_2_0_BRANCH
> >
> >Doing a recursive grep on LDAP_CONST doesn't show it being #defined anywhere.
> 
> Was in apr_ldap.hw, needed to be in .h.in and .hnw, but in any case
> an undecorated name is pretty useless ... I've backed out that change,
> would you try again?
> 
> Thanks, and my appologies...
> 
> Bill

Thanks.  One error down, now a link error:

/bin/sh /tmp/h/srclib/apr/libtool --silent --mode=link gcc  -pthread 
-g -O2 -Wl,-rpath,/opt/i386-linux/db-4.1/lib  -DLINUX=2 -D_REENTRANT
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
-DAP_HAVE_DESIGNATED_INITIALIZER  -I/tmp/h/srclib/apr/include
-I/tmp/h/srclib/apr-util/include -I/opt/i386-linux/db-4.1/include
-I. -I/tmp/h/os/unix -I/tmp/h/server/mpm/prefork -I/tmp/h/modules/http
-I/tmp/h/modules/filters -I/tmp/h/modules/proxy -I/tmp/h/include
-I/usr/include/openssl -I/tmp/h/modules/dav/main -export-dynamic
-L/opt/i386-linux/db-4.1/lib   -o httpd  modules.lo  modules/http/mod_http.la
modules/mappers/mod_so.la server/mpm/prefork/libprefork.la server/libmain.la
os/unix/libos.la -lz -lssl -lcrypto /tmp/h/srclib/pcre/libpcre.la
/tmp/h/srclib/apr-util/libaprutil-0.la -lgdbm -ldb4 -lexpat
/tmp/h/srclib/apr/libapr-0.la -lm -lcrypt -lnsl -ldl
server/.libs/libmain.al(exports.lo)(.data+0xd30): undefined reference to `apr_ldap_is_ldap_url'
server/.libs/libmain.al(exports.lo)(.data+0xd34): undefined reference to `apr_ldap_is_ldaps_url'
server/.libs/libmain.al(exports.lo)(.data+0xd38): undefined reference to `apr_ldap_is_ldapi_url'
server/.libs/libmain.al(exports.lo)(.data+0xd3c): undefined reference to `apr_ldap_url_parse'
server/.libs/libmain.al(exports.lo)(.data+0xd40): undefined reference to `apr_ldap_free_urldesc'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/tmp/h'
make: *** [all-recursive] Error 1

Best,
Blair

-- 
Blair Zajac <bl...@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/

Re: apr_ldap_url.h parse error with latest commit

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
At 10:29 PM 12/10/2002, Blair Zajac wrote:
>I'm getting the following compile error with apr/apr-util HEAD and httpd-2.0
>APACHE_2_0_BRANCH
>
>Doing a recursive grep on LDAP_CONST doesn't show it being #defined anywhere.

Was in apr_ldap.hw, needed to be in .h.in and .hnw, but in any case
an undecorated name is pretty useless ... I've backed out that change,
would you try again?

Thanks, and my appologies...

Bill