httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match
Date Tue, 19 Nov 2013 19:36:08 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #4 from Dennis Clarke <dclarke@blastwave.org> ---

You Sir are brilliant !  It must be that.  I would not have thought that I 
could not have an Apache 2.4.4 server installed and running on the same 
server where I do my builds and package work. Okay .. let's see the real
issue here is these diffs : 

node002-sparc-SunOS5.10 # diff /usr/local/include/http_protocol.h \
> /usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/include/http_protocol.h 
169a170,176
> typedef enum {
>     AP_CONDITION_NONE,
>     AP_CONDITION_NOMATCH,
>     AP_CONDITION_WEAK,
>     AP_CONDITION_STRONG
> } ap_condition_e;
> 
170a178,236
>  * Tests conditional request rules for the If-Match header.
>  * @param r The current request
>  * @param headers The response headers to check against
>  * @return AP_CONDITION_NONE if the header is missing, AP_CONDITION_NOMATCH
>  *         if the header does not match, AP_CONDITION_STRONG for a strong
>  *         match. Weak matches are not permitted for the If-Match header.
>  */
> AP_DECLARE(ap_condition_e) ap_condition_if_match(request_rec *r,
>         apr_table_t *headers);
> 
> /**
>  * Tests conditional request rules for the If-Unmodified-Since header.
>  * @param r The current request
>  * @param headers The response headers to check against
>  * @return AP_CONDITION_NONE if the header is missing, AP_CONDITION_NOMATCH
>  *         if the header does not match, AP_CONDITION_WEAK if a weak match
>  *         was present and allowed by RFC2616, AP_CONDITION_STRONG for a
>  *         strong match.
>  */
> AP_DECLARE(ap_condition_e) ap_condition_if_unmodified_since(request_rec *r,
>         apr_table_t *headers);
> 
> /**
>  * Tests conditional request rules for the If-None-Match header.
>  * @param r The current request
>  * @param headers The response headers to check against
>  * @return AP_CONDITION_NONE if the header is missing, AP_CONDITION_NOMATCH
>  *         if the header does not match, AP_CONDITION_WEAK if a weak match
>  *         was present and allowed by RFC2616, AP_CONDITION_STRONG for a
>  *         strong match.
>  */
> AP_DECLARE(ap_condition_e) ap_condition_if_none_match(request_rec *r,
>         apr_table_t *headers);
> 
> /**
>  * Tests conditional request rules for the If-Modified-Since header.
>  * @param r The current request
>  * @param headers The response headers to check against
>  * @return AP_CONDITION_NONE if the header is missing, AP_CONDITION_NOMATCH
>  *         if the header does not match, AP_CONDITION_WEAK if a weak match
>  *         was present and allowed by RFC2616, AP_CONDITION_STRONG for a
>  *         strong match.
>  */
> AP_DECLARE(ap_condition_e) ap_condition_if_modified_since(request_rec *r,
>         apr_table_t *headers);
> 
> /**
>  * Tests conditional request rules for the If-Range header.
>  * @param r The current request
>  * @param headers The response headers to check against
>  * @return AP_CONDITION_NONE if either the If-Range or Range header is
>  *         missing, AP_CONDITION_NOMATCH if the header does not match,
>  *         AP_CONDITION_STRONG for a strong match. Weak matches are not
>  *         permitted for the If-Range header.
>  */
> AP_DECLARE(ap_condition_e) ap_condition_if_range(request_rec *r,
>         apr_table_t *headers);
> 
> /**

Well that looks to be the issue right there. 

I will make a backup of the existing http_protocol.h in /usr/local and slide
it to one side and re-run the build. 

This is obscene but I will show you what I am doing : 

node002$ ls -lad /usr/local/include/http_protocol.*
-rw-r--r--   1 dclarke  adbs       24522 Feb 28  2013
/usr/local/include/http_protocol.h

node002$ cp -p /usr/local/include/http_protocol.h
/usr/local/include/http_protocol.h_2.4.4

node002$ rm /usr/local/include/http_protocol.h

This should not be needed however I will do this to be super safe :

node002$ cp -p include/http_protocol.h /usr/local/include/http_protocol.h

Well things progress for exactly two seconds :

node002$ gmake 
Making all in srclib
gmake[1]: Entering directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/srclib'
gmake[1]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/srclib'
Making all in os
gmake[1]: Entering directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/os'
Making all in unix
gmake[2]: Entering directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/os/unix'
gmake[3]: Entering directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/os/unix'
gmake[3]: Nothing to be done for `local-all'.
gmake[3]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/os/unix'
gmake[2]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/os/unix'
gmake[1]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/os'
Making all in server
gmake[1]: Entering directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/server'
Making all in mpm
gmake[2]: Entering directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/server/mpm'
Making all in event
gmake[3]: Entering directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/server/mpm/event'
gmake[4]: Entering directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/server/mpm/event'
gmake[4]: Nothing to be done for `local-all'.
gmake[4]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/server/mpm/event'
gmake[3]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/server/mpm/event'
gmake[2]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/server/mpm'
gmake[2]: Entering directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/server'
/usr/local/build-1/libtool --silent --mode=compile
/opt/solarisstudio12.3/bin/cc -D_STDC_C99=    -errfmt=error -erroff=%none
-errshort=full -xstrconst -xildoff -m64 -xmemalign=8s -xnolibmil -Xa
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -xtarget=ultraT2
-xcache=8/16/4:4096/64/16 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE    -DSOLARIS2=10 -D_REENTRANT  -I/usr/local/include
-I/usr/local/ssl/include -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE   -I.
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/os/unix
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/include
-I/usr/local/include/apr-1 -I/usr/local/ssl/include -I/usr/local/include
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/aaa
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/cache
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/core
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/database
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/filters
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/ldap
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/server
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/loggers
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/lua
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/proxy
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/session
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/ssl
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/test
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/server
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/arch/unix
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/dav/main
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/generators
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/modules/mappers 
-prefer-non-pic -static -c exports.c && touch exports.lo
"exports.c", line 576: error: undefined symbol: ap_hook_post_perdir_config
"exports.c", line 576: error: non-constant initializer involving a cast
"exports.c", line 577: error: undefined symbol: ap_hook_get_post_perdir_config
"exports.c", line 577: error: non-constant initializer involving a cast
"exports.c", line 578: error: undefined symbol: ap_run_post_perdir_config
"exports.c", line 578: error: non-constant initializer involving a cast
"exports.c", line 579: error: undefined symbol: ap_hook_dirwalk_stat
"exports.c", line 579: error: non-constant initializer involving a cast
"exports.c", line 580: error: undefined symbol: ap_hook_get_dirwalk_stat
"exports.c", line 580: error: non-constant initializer involving a cast
"exports.c", line 581: error: undefined symbol: ap_run_dirwalk_stat
"exports.c", line 581: error: non-constant initializer involving a cast
"exports.c", line 626: error: undefined symbol: ap_find_etag_weak
"exports.c", line 626: error: non-constant initializer involving a cast
"exports.c", line 627: error: undefined symbol: ap_find_etag_strong
"exports.c", line 627: error: non-constant initializer involving a cast
"exports.c", line 695: error: undefined symbol: ap_get_exec_line
"exports.c", line 695: error: non-constant initializer involving a cast
"exports.c", line 801: error: undefined symbol: ap_remove_input_filter_byhandle
"exports.c", line 801: error: non-constant initializer involving a cast
"exports.c", line 802: error: undefined symbol:
ap_remove_output_filter_byhandle
"exports.c", line 802: error: non-constant initializer involving a cast
cc: acomp failed for exports.c
gmake[2]: *** [exports.lo] Error 1
gmake[2]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/server'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/server'
gmake: *** [all-recursive] Error 1
node002$ 


There may be other headers I need to go look into in the /usr/local/include 
and I will find them, back them up and then let you know. 

Excellent catch ! 

Dennis

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message