You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Don Fike <fi...@icl.utk.edu> on 2013/07/12 14:53:27 UTC

[users@httpd] error: 'ap_document_root_check' undeclared

Using 2.2.25, when running make I get the following error, would like 
help resolving this,

Thanks,

/sw/build-1/libtool --silent --mode=compile gcc -pthread  -fPIC 
-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/sw/apps/mysql/include/mysql 
-I/sw/apps/apache2/include -I/sw/apps/python/include/python2.7 
-I/sw/include/openssl -I/sw/include -fPIC  
-I/sw/sources/httpd-2.2.25/srclib/pcre -I. 
-I/sw/sources/httpd-2.2.25/os/unix 
-I/sw/sources/httpd-2.2.25/server/mpm/prefork 
-I/sw/sources/httpd-2.2.25/modules/http 
-I/sw/sources/httpd-2.2.25/modules/filters 
-I/sw/sources/httpd-2.2.25/modules/proxy 
-I/sw/sources/httpd-2.2.25/include 
-I/sw/sources/httpd-2.2.25/modules/generators 
-I/sw/sources/httpd-2.2.25/modules/mappers 
-I/sw/sources/httpd-2.2.25/modules/database -I/sw/include/apr-1 
-I/sw/include/ -I/sw/lib/include -I/sw/sources/httpd-2.2.25/server 
-I/sw/sources/httpd-2.2.25/modules/proxy/../generators -I/sw/include 
-I/sw/sources/httpd-2.2.25/modules/ssl 
-I/sw/sources/httpd-2.2.25/modules/dav/main  -prefer-non-pic -static -c 
main.c && touch main.lo
main.c: In function 'main':
main.c:591: error: 'ap_document_root_check' undeclared (first use in 
this function)
main.c:591: error: (Each undeclared identifier is reported only once
main.c:591: error: for each function it appears in.)
make[2]: *** [main.lo] Error 1
make[2]: Leaving directory `/sw/sources/httpd-2.2.25/server'
make[1]: *** [all-recursive] Error 1


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: error: 'ap_document_root_check' undeclared

Posted by drf <fi...@icl.utk.edu>.
This solution worked, thank you



--
View this message in context: http://apache-http-server.18135.x6.nabble.com/error-ap-document-root-check-undeclared-tp5007152p5007209.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] error: 'ap_document_root_check' undeclared

Posted by Mike Rumph <mi...@oracle.com>.
Hello Don,

ap_document_root_check is declared in httpd-2.2.25/include/http_main.h
This was introduced in httpd 2.2.17.
You have several include directories ahead of 
/sw/sources/httpd-2.2.25/include.
Perhaps one of these has an older version of http_main.h.

Thanks,

Mike Rumph

On 7/12/2013 7:27 AM, Mike Rumph wrote:
> Hello Don,
>
> What configure options are you using?
>
> Thanks,
>
> Mike Rumph
>
> On 7/12/2013 5:53 AM, Don Fike wrote:
>> Using 2.2.25, when running make I get the following error, would like 
>> help resolving this,
>>
>> Thanks,
>>
>> /sw/build-1/libtool --silent --mode=compile gcc -pthread  -fPIC 
>> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/sw/apps/mysql/include/mysql 
>> -I/sw/apps/apache2/include -I/sw/apps/python/include/python2.7 
>> -I/sw/include/openssl -I/sw/include -fPIC  
>> -I/sw/sources/httpd-2.2.25/srclib/pcre -I. 
>> -I/sw/sources/httpd-2.2.25/os/unix 
>> -I/sw/sources/httpd-2.2.25/server/mpm/prefork 
>> -I/sw/sources/httpd-2.2.25/modules/http 
>> -I/sw/sources/httpd-2.2.25/modules/filters 
>> -I/sw/sources/httpd-2.2.25/modules/proxy 
>> -I/sw/sources/httpd-2.2.25/include 
>> -I/sw/sources/httpd-2.2.25/modules/generators 
>> -I/sw/sources/httpd-2.2.25/modules/mappers 
>> -I/sw/sources/httpd-2.2.25/modules/database -I/sw/include/apr-1 
>> -I/sw/include/ -I/sw/lib/include -I/sw/sources/httpd-2.2.25/server 
>> -I/sw/sources/httpd-2.2.25/modules/proxy/../generators -I/sw/include 
>> -I/sw/sources/httpd-2.2.25/modules/ssl 
>> -I/sw/sources/httpd-2.2.25/modules/dav/main  -prefer-non-pic -static 
>> -c main.c && touch main.lo
>> main.c: In function 'main':
>> main.c:591: error: 'ap_document_root_check' undeclared (first use in 
>> this function)
>> main.c:591: error: (Each undeclared identifier is reported only once
>> main.c:591: error: for each function it appears in.)
>> make[2]: *** [main.lo] Error 1
>> make[2]: Leaving directory `/sw/sources/httpd-2.2.25/server'
>> make[1]: *** [all-recursive] Error 1
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] error: 'ap_document_root_check' undeclared

Posted by Mike Rumph <mi...@oracle.com>.
Hello Don,

What configure options are you using?

Thanks,

Mike Rumph

On 7/12/2013 5:53 AM, Don Fike wrote:
> Using 2.2.25, when running make I get the following error, would like 
> help resolving this,
>
> Thanks,
>
> /sw/build-1/libtool --silent --mode=compile gcc -pthread  -fPIC 
> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/sw/apps/mysql/include/mysql 
> -I/sw/apps/apache2/include -I/sw/apps/python/include/python2.7 
> -I/sw/include/openssl -I/sw/include -fPIC  
> -I/sw/sources/httpd-2.2.25/srclib/pcre -I. 
> -I/sw/sources/httpd-2.2.25/os/unix 
> -I/sw/sources/httpd-2.2.25/server/mpm/prefork 
> -I/sw/sources/httpd-2.2.25/modules/http 
> -I/sw/sources/httpd-2.2.25/modules/filters 
> -I/sw/sources/httpd-2.2.25/modules/proxy 
> -I/sw/sources/httpd-2.2.25/include 
> -I/sw/sources/httpd-2.2.25/modules/generators 
> -I/sw/sources/httpd-2.2.25/modules/mappers 
> -I/sw/sources/httpd-2.2.25/modules/database -I/sw/include/apr-1 
> -I/sw/include/ -I/sw/lib/include -I/sw/sources/httpd-2.2.25/server 
> -I/sw/sources/httpd-2.2.25/modules/proxy/../generators -I/sw/include 
> -I/sw/sources/httpd-2.2.25/modules/ssl 
> -I/sw/sources/httpd-2.2.25/modules/dav/main  -prefer-non-pic -static 
> -c main.c && touch main.lo
> main.c: In function 'main':
> main.c:591: error: 'ap_document_root_check' undeclared (first use in 
> this function)
> main.c:591: error: (Each undeclared identifier is reported only once
> main.c:591: error: for each function it appears in.)
> make[2]: *** [main.lo] Error 1
> make[2]: Leaving directory `/sw/sources/httpd-2.2.25/server'
> make[1]: *** [all-recursive] Error 1
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org