You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2013/11/17 08:01:49 UTC

[Bug 55789] New: compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

            Bug ID: 55789
           Summary: compile fails in server/exports.c at line 445 with
                    error: undefined symbol: ap_condition_if_match
           Product: Apache httpd-2
           Version: 2.4.6
          Hardware: Sun
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
          Assignee: bugs@httpd.apache.org
          Reporter: dclarke@blastwave.org

On Solaris 10 SPARC thus : 

node002$ cat /etc/release 
                   Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
  Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
                            Assembled 23 August 2011
node002$ psrinfo -pv
The physical processor has 64 virtual processors (0-63)
  UltraSPARC-T2+ (chipid 0, clock 1582 MHz)
The physical processor has 64 virtual processors (64-127)
  UltraSPARC-T2+ (chipid 1, clock 1582 MHz)

Using Oracle Studio 12.3 compiler tools thus : 

node002$ which cc
/opt/solarisstudio12.3/bin/cc
node002$ cc -V
cc: Sun C 5.12 SunOS_sparc 2011/11/16


Configure is fine thus : 


./configure --prefix=/usr/local --sysconfdir=/usr/local/www/conf \
--localstatedir=/usr/local/www/var --datadir=/usr/local/www/data \
--htmldir=/usr/local/www/docs --with-crypto --enable-auth-digest \
--enable-so --enable-ratelimit --enable-include --enable-logio \
--enable-expires --enable-ident --enable-usertrack --enable-unique-id \
--enable-ssl --enable-privileges --enable-dav --enable-info \
--enable-suexec --enable-cgid --enable-negotiation --enable-imagemap \
--enable-rewrite --with-ssl=/usr/local/ssl --enable-authn-dbd \
--enable-auth-form --enable-auth-digest --enable-data --enable-ratelimit \
--enable-include --enable-deflate --enable-log-debug --enable-log-forensic \
--enable-session --enable-session-cookie --enable-session-crypto \
--enable-unixd --enable-privileges --with-pcre=/usr/local \
--with-z=/usr/local --with-libxml2=/usr/local


Shortly into the compile the following occurs : 

.
.
.
"exports.c", line 445: error: undefined symbol: ap_condition_if_match
"exports.c", line 445: error: non-constant initializer involving a cast
"exports.c", line 446: error: undefined symbol:
ap_condition_if_unmodified_since
"exports.c", line 446: error: non-constant initializer involving a cast
"exports.c", line 447: error: undefined symbol: ap_condition_if_none_match
"exports.c", line 447: error: non-constant initializer involving a cast
"exports.c", line 448: error: undefined symbol: ap_condition_if_modified_since
"exports.c", line 448: error: non-constant initializer involving a cast
"exports.c", line 449: error: undefined symbol: ap_condition_if_range
"exports.c", line 449: error: non-constant initializer involving a cast
"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


The only source files which refer to ap_condition_if_match are : 

    modules/cache/cache_storage.c
    modules/http/http_protocol.c

and of course server/exports.c

The function seems to be defined in line 309 of modules/http/http_protocol.c
thus :


AP_DECLARE(ap_condition_e) ap_condition_if_match(request_rec *r,
        apr_table_t *headers)
{
    const char *if_match, *etag;

    /* A server MUST use the strong comparison function (see section 13.3.3)
     * to compare the entity tags in If-Match.
     */
    if ((if_match = apr_table_get(r->headers_in, "If-Match")) != NULL) {
        if (if_match[0] == '*'
                || ((etag = apr_table_get(headers, "ETag")) == NULL
                        && !ap_find_etag_strong(r->pool, if_match, etag))) {
            return AP_CONDITION_STRONG;
        }
        else {
            return AP_CONDITION_NOMATCH;
        }
    }

    return AP_CONDITION_NONE;
}


There seems to be no header file which has the function prototype.  Perhaps
this is a configure/autoconf/automake error ? 

Dennis Clarke
dclarke@blastwave.org

-- 
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


[Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #3 from Jeff Trawick <tr...@apache.org> ---
Dennis, I wonder if the problem is that the /usr/local/include directory is
getting searched before the 2.4.6 source directory and the exports generation
and compilation is mismatched (old .h files included when exports.c is
compiled, new .h files scanned when exports.c was generated).  At least some of
the symbols with the problem were added after 2.4.4.

-- 
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


[Bug 55789] wrong headers found in directory /usr/local/include because it is too early in EXTRA_INCLUDES within build/config_vars.mk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #15 from Dennis Clarke <dc...@blastwave.org> ---
Same problem exists in httpd 2.4.7 also.

I think I will need to go looking in the unvarnished source tarball and 
find where the order of directories is determined in build/config_vars.mk
or this won't go away.

-- 
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


[Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #5 from Jeff Trawick <tr...@apache.org> ---
I think httpd's configure must have a place where it sticks the include
directory for some support library (e.g., PCRE's include directory
/usr/local/include, from your "--with-pcre=/usr/local" configure option) in
front of the include directories in the httpd source tree.  That needs to be
fixed.  But copying the magic set of .h files to /usr/local/include much
earlier than "make install" should let it build.

-- 
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


[Bug 55789] wrong headers found in directory /usr/local/include because it is too early in EXTRA_INCLUDES within build/config_vars.mk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

Dennis Clarke <dc...@blastwave.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|compile fails in            |wrong headers found in
                   |server/exports.c at line    |directory
                   |445 with error: undefined   |/usr/local/include because
                   |symbol:                     |it is too early in
                   |ap_condition_if_match       |EXTRA_INCLUDES within
                   |                            |build/config_vars.mk
           Severity|normal                      |blocker

--- Comment #13 from Dennis Clarke <dc...@blastwave.org> ---
Changed the bug title to more correctly identify where the problem lay. Also 
I have made this ia "blocker" class bug as it does cause the entire build
process to fail. Perhaps "critical" is more reasonable but that should be a
matter for a triage team to consider. 

Dennis Clarke
dclarke@blastwave.org
Fri Nov 22 04:04:01 GMT 2013

-- 
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


[Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #9 from Dennis Clarke <dc...@blastwave.org> ---
(In reply to Jeff Trawick from comment #7)
> Finding declarations for ap_hook_FOO, ap_run_FOO:
> The ap_hook_ and ap_run_ portions are generated from macros.  You need to
> look for just FOO
> 
> include/http_request.h:AP_DECLARE_HOOK(int,post_perdir_config,(request_rec
> *r))
> 
> Maybe this is the right path:
> 
> Look in build/config_vars.mk for the definition of EXTRA_INCLUDES.  Mine
> looks like this:
> 
> EXTRA_INCLUDES = -I. -I$(top_srcdir)/os/$(OS_DIR) -I$(top_srcdir)/include
> -I/home/trawick/inst/apr15-64/include/apr-1 -I$(top_srcdir)/modules/aaa
> -I$(top_srcdir)/modules/cache -I$(top_srcdir)/modules/core
> -I$(top_srcdir)/modules/database -I$(top_srcdir)/modules/filters
> -I$(top_srcdir)/modules/ldap -I$(top_builddir)/server
> -I$(top_srcdir)/modules/loggers -I$(top_srcdir)/modules/lua
> -I$(top_srcdir)/modules/proxy -I$(top_srcdir)/modules/session
> -I$(top_srcdir)/modules/ssl -I$(top_srcdir)/modules/test
> -I$(top_srcdir)/server -I$(top_srcdir)/modules/arch/unix
> -I$(top_srcdir)/modules/dav/main -I$(top_srcdir)/modules/generators
> -I$(top_srcdir)/modules/mappers
> 
> Yours surely has /usr/local somewhere.  Move any -I/usr/local/include to the
> end of the list.

I see.

At this moment I do have a build running and I want to let it complete and then
yes, I think I will re-do the whole process and search into
build/config_vars.mk
to find an offending EXTRA_INCLUDES with /usr/local too early in the path list
there. 

Yes .. that would be a smarter way forwards than my hunt and peck and loop. 

However ... I do have a build running and it seems to *still* be running if
you know what I mean. 

dc

-- 
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


[Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #1 from Mike Rumph <mi...@oracle.com> ---
Hello Dennis,

I don't have access to a Solaris system,
but on my Linux system ap_condition_if_match() is prototyped in
include/http_protocol.h.

Does your server/exports.c have an include for http_protocol.h?

Thanks,

Mike Rumph

-- 
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


[Bug 55789] wrong headers found in directory /usr/local/include because it is too early in EXTRA_INCLUDES within build/config_vars.mk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

Rainer Jung <ra...@kippdata.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian@south-border.com

--- Comment #14 from Rainer Jung <ra...@kippdata.de> ---
*** Bug 55825 has been marked as a duplicate of this bug. ***

-- 
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


[Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #10 from Dennis Clarke <dc...@blastwave.org> ---
My method, while hardly elegant, is working slowly. 

I have reached this point : 

/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.002/os/unix
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/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.002/modules/aaa
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/cache
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/core
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/database
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/filters
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/ldap
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/server
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/loggers
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/lua
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/proxy
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/session
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/ssl
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/test
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/server
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/arch/unix
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/dav/main
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/generators
-I/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/mappers
-prefer-pic -c mod_lbmethod_heartbeat.c && touch mod_lbmethod_heartbeat.slo
"mod_lbmethod_heartbeat.c", line 410: error: undefined symbol:
DEFAULT_HEARTBEAT_STORAGE
"mod_lbmethod_heartbeat.c", line 410: warning: improper pointer/integer
combination: arg #2
cc: acomp failed for mod_lbmethod_heartbeat.c
gmake[4]: *** [mod_lbmethod_heartbeat.slo] Error 1
gmake[4]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/proxy/balancers'
gmake[3]: *** [shared-build-recursive] Error 1
gmake[3]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules/proxy/balancers'
gmake[2]: *** [shared-build-recursive] Error 1
gmake[2]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002/modules'
gmake[1]: *** [shared-build-recursive] Error 1
gmake[1]: Leaving directory
`/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.002'
gmake: *** [all-recursive] Error 1


node002$ find . -type f | xargs grep "DEFAULT_HEARTBEAT_STORAGE" | cut -f1 -d\: 
./modules/cluster/mod_heartmonitor.c
./modules/proxy/balancers/mod_lbmethod_heartbeat.c
./include/heartbeat.h

node002$ ls -lap /usr/local/include/heartbeat.h 
-rw-r--r--   1 dclarke  adbs        1399 Feb 28  2013
/usr/local/include/heartbeat.h


So I move that aside : 


node002$ mv /usr/local/include/heartbeat.h /usr/local/include/heartbeat.h_2.4.4

The building continues. 

Really I need to go through this from top to bottom again and check the
build/config_vars.mk for an offending EXTRA_INCLUDES.

I think this is a valid build bug however.

-- 
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


[Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #12 from Dennis Clarke <dc...@blastwave.org> ---
okay .. after a lot of loops in the build process I have a running 2.4.6
instance now and http://www.mytld.com/server-info reports thus : 

Server Settings

Server Version: Apache/2.4.6 (Unix) PHP/5.4.22 OpenSSL/1.0.1e
Server Built: Nov 19 2013 20:45:29
Server loaded APR Version: 1.4.8
Compiled with APR Version: 1.4.8
Server loaded APU Version: 1.5.2
Compiled with APU Version: 1.5.2
Module Magic Number: 20120211:23
Hostname/port: www.mytld.com:443
Timeouts: connection: 300    keep-alive: 15
MPM Name: event
MPM Information: Max Daemons: 1 Threaded: yes Forked: yes
Server Architecture: 64-bit
Server Root: /usr/local
Config File: /usr/local/www/conf/httpd.conf
Server Built With: -D APR_HAS_SENDFILE -D APR_HAS_MMAP 
-D APR_USE_PROC_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT 
-D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS 
-D HTTPD_ROOT="/usr/local" -D SUEXEC_BIN="/usr/local/bin/suexec" 
-D DEFAULT_PIDLOG="www/var/logs/httpd.pid" 
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status" 
-D DEFAULT_ERRORLOG="logs/error_log" 
-D AP_TYPES_CONFIG_FILE="www/conf/mime.types" 
-D SERVER_CONFIG_FILE="www/conf/httpd.conf" 


Thta looks good and I will do some testing. 

I will now go back around in a circle and try a rebuild while checking
build/config_vars.mk for an offending EXTRA_INCLUDES.

That should isolate the problem and make for a useful bug report. 

The downside is that I now have all the correct headers in /usr/local/inlcude
and thus I would not hit these snags until 2.4.X for X>6 releases. 

Let's leave bug 55789 stand on its own merits as a build bug. 

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


[Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #8 from Dennis Clarke <dc...@blastwave.org> ---
I have located a number of header files in /usr/local/include that are being
looked at first in the build process and they are from Apache 2.4.4 and thus
not correct for 2.4.6. 

I have renamed them to /usr/local/include/foobar_2.4.4.h and then I try a 
rebuild of 2.4.6 until I hit another snag. 

Then I locate the next offending header file and rename it and do this loop
over and over. 

HOWEVERR this reaises the concern in my mind that there may be a subtle code
change in a header between 2.4.4 and 2.4.6 such that the build of 2.4.6 does
continue however I do NOT have the correct header being used because the wrong
header is in /usr/local/include and I could not detect it. 

This is a concern as the only way forward for me would be to do a full build of
2.4.6, assuming that I get there using my hunt and peck loop above, and then
install and then rebuild 2.4.6 again. 

After a second or possibly third build loop I would have all the correct header 
versions in /usr/local/ and then no problem. 

This is akin to the three stage GCC bootstrap process. 

dc

-- 
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


[Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #7 from Jeff Trawick <tr...@apache.org> ---
Finding declarations for ap_hook_FOO, ap_run_FOO:
The ap_hook_ and ap_run_ portions are generated from macros.  You need to look
for just FOO

include/http_request.h:AP_DECLARE_HOOK(int,post_perdir_config,(request_rec *r))

Maybe this is the right path:

Look in build/config_vars.mk for the definition of EXTRA_INCLUDES.  Mine looks
like this:

EXTRA_INCLUDES = -I. -I$(top_srcdir)/os/$(OS_DIR) -I$(top_srcdir)/include
-I/home/trawick/inst/apr15-64/include/apr-1 -I$(top_srcdir)/modules/aaa
-I$(top_srcdir)/modules/cache -I$(top_srcdir)/modules/core
-I$(top_srcdir)/modules/database -I$(top_srcdir)/modules/filters
-I$(top_srcdir)/modules/ldap -I$(top_builddir)/server
-I$(top_srcdir)/modules/loggers -I$(top_srcdir)/modules/lua
-I$(top_srcdir)/modules/proxy -I$(top_srcdir)/modules/session
-I$(top_srcdir)/modules/ssl -I$(top_srcdir)/modules/test -I$(top_srcdir)/server
-I$(top_srcdir)/modules/arch/unix -I$(top_srcdir)/modules/dav/main
-I$(top_srcdir)/modules/generators -I$(top_srcdir)/modules/mappers

Yours surely has /usr/local somewhere.  Move any -I/usr/local/include to the
end of the list.

-- 
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


[Bug 55789] wrong headers found in directory /usr/local/include because it is too early in EXTRA_INCLUDES within build/config_vars.mk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

Yann Ylavic <yl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #18 from Yann Ylavic <yl...@gmail.com> ---
Thanks for reporting the misconfiguration.
Marked as invalid.

-- 
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


[Bug 55789] wrong headers found in directory /usr/local/include because it is too early in EXTRA_INCLUDES within build/config_vars.mk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

Dennis Clarke <dc...@blastwave.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4
                 CC|                            |dclarke@blastwave.org
            Version|2.4.6                       |2.4.7
           Severity|blocker                     |trivial

--- Comment #17 from Dennis Clarke <dc...@blastwave.org> ---
Well its long overdue to make my apologies and request this bug be closed 
and perhaps marked as "user error".  As Mike Rumph pointed out back on
2013-12-11 00:40:17 UTC that fault may be in CPPFLAGS which has
"-I/usr/local/include -I/usr/local/ssl/include" as well as the reasonable
"-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE".

This explains the include order seen. 

I just built the most recent release all in one smooth pass with no errors
at all :

# /usr/local/bin/httpd -V 
Server version: Apache/2.4.9 (Unix)
Server built:   Mar 26 2014 03:50:32
Server's Module Magic Number: 20120211:31
Server loaded:  APR 1.5.0, APR-UTIL 1.5.3
Compiled using: APR 1.5.0, APR-UTIL 1.5.3
Architecture:   64-bit
Server MPM:     event
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_USE_PROC_PTHREAD_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/usr/local"
 -D SUEXEC_BIN="/usr/local/bin/suexec"
 -D DEFAULT_PIDLOG="www/var/logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="www/conf/mime.types"
 -D SERVER_CONFIG_FILE="www/conf/httpd.conf"

runs like a charm. 

All I need to do now is figure out why my initial SSL_SESSION_ID env var in cgi
is blank despite having "SSLOptions +StdEnvVars" set. However that is another
matter entirely. 

Thanks for epic patience and endless support while I fumbled through this. 

I changed this to P4 trivial because I couldn't find P9 'user-error'.

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


[Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #4 from Dennis Clarke <dc...@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


[Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #2 from Dennis Clarke <dc...@blastwave.org> ---
Therein lay the problem, not many people have access to Solaris servers 
anymore and Oracle has done a fine job of making life miserable to anyone
that want to keep open source software running up to date.  Or port work
etc etc.  

So let's stay focused on this problem for now. 

Yes, I have this : 

node002$ pwd
/usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001

node002$ find . -type f -name http_protocol.h 
./include/http_protocol.h

node002$ grep "ap_condition_if_match" ./include/http_protocol.h
AP_DECLARE(ap_condition_e) ap_condition_if_match(request_rec *r,

node002$ ls -lap server/exports.c
-rw-r--r--   1 dclarke  adbs      113880 Nov 17 06:29 server/exports.c

node002$ grep http_protocol server/exports.c
#include "http_protocol.h"
 * /usr/local/build/httpd-2.4.6_SunOS5.10_sparcv9.001/include/http_protocol.h

So there we see yes I have the #include and yes the http_protocol.h has
the function prototype. 

This raises the question, what changed from 2.4.4 to 2.4.6 ?  There was no
release of 2.4.5 so let's not look there.  I was perfectly able to build 2.4.4
and I have it running for quite a while wonderfully well as a 64-bit Sparc 
binary on Solaris 10.   The following is from http://myserver.com/server-info :


Server Settings

Server Version: Apache/2.4.4 (Unix) OpenSSL/1.0.1e PHP/5.4.22
Server Built: Feb 28 2013 10:46:58
Server loaded APR Version: 1.4.8
Compiled with APR Version: 1.4.6
Server loaded APU Version: 1.5.2
Compiled with APU Version: 1.5.1
Module Magic Number: 20120211:11
Hostname/port: node002.mytld.com:443
Timeouts: connection: 300    keep-alive: 15
MPM Name: event
MPM Information: Max Daemons: 2 Threaded: yes Forked: yes
Server Architecture: 64-bit
Server Root: /usr/local
Config File: /usr/local/www/conf/httpd.conf
Server Built With: -D APR_HAS_SENDFILE -D APR_HAS_MMAP 
-D APR_USE_PROC_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT 
-D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS 
-D HTTPD_ROOT="/usr/local" 
-D SUEXEC_BIN="/usr/local/bin/suexec" 
-D DEFAULT_PIDLOG="www/var/logs/httpd.pid" 
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status" 
-D DEFAULT_ERRORLOG="logs/error_log" -D
AP_TYPES_CONFIG_FILE="www/conf/mime.types" 
-D SERVER_CONFIG_FILE="www/conf/httpd.conf" 


So this is a great build and I have piles of production sites running with
it.  I used the exact same build server, the same build environment and 
saw the problem I posted here.  

This feels as if there is a GNU C extension that has crept into place and 
perhaps the new codebase for 2.4.6 can only be built with GCC ? 

I hope that is not the case or a lot of patches will happen to get this back
to fully cross platform. 

In any case I am at a bit of a loss and need to keep digging.

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


[Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #6 from Dennis Clarke <dc...@blastwave.org> ---
I have extracted the sources from the 2.4.6 release tarball and am now
very sure that http_protocol.h is correctly in /usr/local/include
as well as in $MY_BUILD_DIR/include and after this configure : 


node002$ ./configure --prefix=/usr/local --sysconfdir=/usr/local/www/conf \
> --localstatedir=/usr/local/www/var --datadir=/usr/local/www/data \
> --htmldir=/usr/local/www/docs --with-crypto --enable-auth-digest \
> --enable-so --enable-ratelimit --enable-include --enable-logio \
> --enable-expires --enable-ident --enable-usertrack --enable-unique-id \
> --enable-ssl --enable-privileges --enable-dav --enable-info \
> --enable-suexec --enable-cgid --enable-negotiation --enable-imagemap \
> --enable-rewrite --with-ssl=/usr/local/ssl --enable-authn-dbd \
> --enable-auth-form --enable-auth-digest --enable-data --enable-ratelimit \
> --enable-include --enable-deflate --enable-log-debug --enable-log-forensic \
> --enable-session --enable-session-cookie --enable-session-crypto \
> --enable-unixd --enable-privileges --with-pcre=/usr/local \
> --with-z=/usr/local --with-libxml2=/usr/local
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
configure: 
configure: Configuring Apache Portable Runtime library...
configure: 
checking for APR... yes
  setting CPP to "/opt/solarisstudio12.3/bin/cc -E"
  adding "-DSOLARIS2=10" to CPPFLAGS
  adding "-D_REENTRANT" to CPPFLAGS
  setting LDFLAGS to " "
configure: 
configure: Configuring Apache Portable Runtime Utility library...
configure: 
checking for APR-util... yes
  adding "-L/usr/local/ssl/lib" to LDFLAGS
  adding "-L/usr/local/lib" to LDFLAGS
checking for gcc... /opt/solarisstudio12.3/bin/cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether /opt/solarisstudio12.3/bin/cc accepts -g... yes
checking for /opt/solarisstudio12.3/bin/cc option to accept ISO C89... none
needed
checking how to run the C preprocessor... /opt/solarisstudio12.3/bin/cc -E
checking for /opt/solarisstudio12.3/bin/cc option to accept ISO C99...
-D_STDC_C99=
checking for pcre-config... /usr/local/bin/pcre-config
configure: Using external PCRE library from /usr/local/bin/pcre-config
  setting PCRE_INCLUDES to "-I/usr/local/include"
  setting PCRE_LIBS to "-L/usr/local/lib -R/usr/local/lib -lpcre"
configure: 
configure: Configuring Apache httpd...
configure: 
  setting INCLUDES to "-I."
  adding "-I$(top_srcdir)/os/$(OS_DIR)" to INCLUDES
  adding "-I$(top_srcdir)/include" to INCLUDES
  adding "-I/usr/local/include/apr-1" to INCLUDES
  adding "-I/usr/local/ssl/include" to INCLUDES
  adding "-I/usr/local/include" to INCLUDES
configure: 
configure: Applying OS-specific hints for httpd...
configure: 
  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to "1"
  forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to "1"
checking for rm... /usr/xpg4/bin/rm
checking for pkg-config... /usr/bin/pkg-config
checking for rsync... no
checking for gawk... gawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for lynx... no
checking for links... no
checking for elinks... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for APR version 1.3.0 or later... yes
checking for APR-util version 1.3.0 or later... yes
checking if /opt/solarisstudio12.3/bin/cc -D_STDC_C99= -MM can create proper
make dependencies... no
checking if /opt/solarisstudio12.3/bin/cc -D_STDC_C99= -M can create proper
make dependencies... no
checking if /opt/solarisstudio12.3/bin/cc -E -MM can create proper make
dependencies... no
checking if /opt/solarisstudio12.3/bin/cc -E -M can create proper make
dependencies... no
checking if cpp -M can create proper make dependencies... no
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for strings.h... (cached) yes
checking sys/prctl.h usability... no
checking sys/prctl.h presence... no
checking for sys/prctl.h... no
checking sys/processor.h usability... yes
checking sys/processor.h presence... yes
checking for sys/processor.h... yes
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sys/sdt.h usability... yes
checking sys/sdt.h presence... yes
checking for sys/sdt.h... yes
checking sys/loadavg.h usability... yes
checking sys/loadavg.h presence... yes
checking for sys/loadavg.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for an ANSI C-conforming const... yes
checking for library containing sqrt... -lm
checking for library containing crypt... none required
checking for getpwnam... yes
checking for getgrnam... yes
checking for initgroups... yes
checking for bindprocessor... no
checking for prctl... no
checking for timegm... no
checking for getpgid... yes
checking for fopen64... no
checking for getloadavg... yes
checking for void pointer length... no
checking for gettid()... no
checking for tm_gmtoff in struct tm... no
checking whether to enable mod_authn_file... shared
checking whether to enable mod_authn_dbm... shared (most)
checking whether to enable mod_authn_anon... shared (most)
checking whether to enable mod_authn_dbd... shared
checking whether to enable mod_authn_socache... shared (most)
checking whether to enable mod_authn_core... shared
checking whether to enable mod_authz_host... shared
checking whether to enable mod_authz_groupfile... shared
checking whether to enable mod_authz_user... shared
checking whether to enable mod_authz_dbm... shared (most)
checking whether to enable mod_authz_owner... shared (most)
checking whether to enable mod_authz_dbd... shared (most)
checking whether to enable mod_authz_core... shared
checking whether to enable mod_authnz_ldap... checking dependencies
checking for ldap support in apr/apr-util... no
configure: WARNING: apr/apr-util is compiled without ldap support
checking whether to enable mod_authnz_ldap... no (disabled)
checking whether to enable mod_access_compat... shared
checking whether to enable mod_auth_basic... shared
checking whether to enable mod_auth_form... shared
checking whether to enable mod_auth_digest... checking dependencies
checking whether to enable mod_auth_digest... shared
checking whether to enable mod_allowmethods... shared (most)
  adding "-I$(top_srcdir)/modules/aaa" to INCLUDES
checking whether to enable mod_isapi... no
checking whether to enable mod_file_cache... shared (most)
checking whether to enable mod_cache... shared (most)
checking whether to enable mod_cache_disk... checking dependencies
checking whether to enable mod_cache_disk... shared (most)
checking whether to enable mod_cache_socache... shared (most)
checking whether to enable mod_socache_shmcb... shared (most)
checking whether to enable mod_socache_dbm... shared (most)
checking whether to enable mod_socache_memcache... shared (most)
checking whether to enable mod_socache_dc... no
  adding "-I$(top_srcdir)/modules/cache" to INCLUDES
  setting HTTPD_LDFLAGS to "-export-dynamic"
checking whether to enable mod_so... static
  setting AP_LIBS to "$(MOD_SO_LDADD)"
checking whether to enable mod_watchdog... no
checking whether to enable mod_macro... shared (most)
  adding "-I$(top_srcdir)/modules/core" to INCLUDES
checking whether to enable mod_dbd... shared (most)
  adding "-I$(top_srcdir)/modules/database" to INCLUDES
checking whether to enable mod_bucketeer... no
checking whether to enable mod_dumpio... shared (most)
checking whether to enable mod_echo... no
checking whether to enable mod_example_hooks... no
checking whether to enable mod_case_filter... no
checking whether to enable mod_case_filter_in... no
checking whether to enable mod_example_ipc... no
checking whether to enable mod_buffer... shared (most)
checking whether to enable mod_data... shared
checking whether to enable mod_ratelimit... shared
checking whether to enable mod_reqtimeout... shared
checking whether to enable mod_ext_filter... shared (most)
checking whether to enable mod_request... shared (most)
checking whether to enable mod_include... shared
checking whether to enable mod_filter... shared
checking whether to enable mod_reflector... no
checking whether to enable mod_substitute... shared (most)
checking whether to enable mod_sed... checking dependencies
  setting MOD_SED_LDADD to "-export-symbols-regex sed_module"
checking whether to enable mod_sed... shared (most)
checking whether to enable mod_charset_lite... no
checking whether to enable mod_deflate... checking dependencies
  setting MOD_INCLUDES to "-I/usr/local/include"
  setting ap_zlib_ldflags to "-L/usr/local/lib"
  adding "-R/usr/local/lib" to LDFLAGS
  adding "-R/usr/local/lib" to ap_zlib_ldflags
  setting LIBS to "-lz"
checking for zlib library... found
  setting MOD_DEFLATE_LDADD to "-L/usr/local/lib -R/usr/local/lib -lz"
  nulling LIBS
checking whether to enable mod_deflate... shared
checking whether to enable mod_xml2enc... no
checking whether to enable mod_proxy_html... no
  adding "-I$(top_srcdir)/modules/filters" to INCLUDES
checking whether to enable mod_http... static
  adding "$(MOD_HTTP_LDADD)" to AP_LIBS
checking whether to enable mod_mime... shared
checking whether to enable mod_ldap... checking dependencies
checking for ldap support in apr/apr-util... (cached) no
configure: WARNING: apr/apr-util is compiled without ldap support
checking whether to enable mod_ldap... no (disabled)
  adding "-I$(top_srcdir)/modules/ldap" to INCLUDES
checking whether to enable mod_log_config... shared
checking whether to enable mod_log_debug... shared
checking whether to enable mod_log_forensic... shared
  adding "-I$(top_builddir)/server" to INCLUDES
checking whether to enable mod_logio... shared
  adding "-I$(top_srcdir)/modules/loggers" to INCLUDES
checking whether to enable mod_lua... no
  adding "-I$(top_srcdir)/modules/lua" to INCLUDES
checking whether to enable mod_env... shared
checking whether to enable mod_mime_magic... no
checking whether to enable mod_cern_meta... no
checking whether to enable mod_expires... shared
checking whether to enable mod_headers... shared
checking whether to enable mod_ident... shared
checking whether to enable mod_usertrack... checking dependencies
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for times... yes
checking whether to enable mod_usertrack... shared
checking whether to enable mod_unique_id... shared
checking whether to enable mod_setenvif... shared
checking whether to enable mod_version... shared
checking whether to enable mod_remoteip... shared (most)
checking whether to enable mod_proxy... shared (most)
checking whether to enable mod_proxy_connect... checking dependencies
checking whether to enable mod_proxy_connect... shared (most)
checking whether to enable mod_proxy_ftp... checking dependencies
checking whether to enable mod_proxy_ftp... shared (most)
checking whether to enable mod_proxy_http... checking dependencies
checking whether to enable mod_proxy_http... shared (most)
checking whether to enable mod_proxy_fcgi... checking dependencies
checking whether to enable mod_proxy_fcgi... shared (most)
checking whether to enable mod_proxy_scgi... checking dependencies
checking whether to enable mod_proxy_scgi... shared (most)
checking whether to enable mod_proxy_fdpass... no
checking whether to enable mod_proxy_wstunnel... checking dependencies
checking whether to enable mod_proxy_wstunnel... shared (most)
checking whether to enable mod_proxy_ajp... checking dependencies
checking whether to enable mod_proxy_ajp... shared (most)
checking whether to enable mod_proxy_balancer... checking dependencies
checking whether to enable mod_proxy_balancer... shared (most)
checking whether to enable mod_proxy_express... checking dependencies
checking whether to enable mod_proxy_express... shared (most)
  adding "-I$(top_srcdir)/modules/proxy" to INCLUDES
checking whether to enable mod_session... shared
checking whether to enable mod_session_cookie... checking dependencies
checking whether to enable mod_session_cookie... shared
checking whether to enable mod_session_crypto... checking dependencies
checking whether to enable mod_session_crypto... shared
checking whether to enable mod_session_dbd... checking dependencies
checking whether to enable mod_session_dbd... shared
  adding "-I$(top_srcdir)/modules/session" to INCLUDES
checking whether to enable mod_slotmem_shm... shared (most)
checking whether to enable mod_slotmem_plain... no
checking whether to enable mod_ssl... checking dependencies
checking for OpenSSL... checking for user-provided OpenSSL base directory...
/usr/local/ssl
  setting MOD_CFLAGS to "-I/usr/local/ssl/include  "
  setting ab_CFLAGS to "-I/usr/local/ssl/include  "
  setting MOD_LDFLAGS to "-L/usr/local/ssl/lib  "
checking for OpenSSL version >= 0.9.7... OK
  adding "-lssl" to MOD_LDFLAGS
  adding "-lcrypto" to MOD_LDFLAGS
  adding "-lresolv" to MOD_LDFLAGS
  adding "-luuid" to MOD_LDFLAGS
  adding "-lsendfile" to MOD_LDFLAGS
  adding "-lrt" to MOD_LDFLAGS
  adding "-lsocket" to MOD_LDFLAGS
  adding "-lnsl" to MOD_LDFLAGS
  adding "-lpthread" to MOD_LDFLAGS
  setting LIBS to "-lssl -lcrypto    -lresolv -luuid -lsendfile -lrt -lsocket
-lnsl  -lpthread"
  forcing ab_LDFLAGS to "-L/usr/local/ssl/lib   -lssl -lcrypto -lresolv -luuid
-lsendfile -lrt -lsocket -lnsl -lpthread"
checking openssl/engine.h usability... yes
checking openssl/engine.h presence... yes
checking for openssl/engine.h... yes
checking for SSLeay_version... yes
checking for SSL_CTX_new... yes
checking for ENGINE_init... yes
checking for ENGINE_load_builtin_engines... yes
yes
  setting MOD_SSL_LDADD to "-export-symbols-regex ssl_module"
checking whether to enable mod_ssl... shared
  adding "-I$(top_srcdir)/modules/ssl" to INCLUDES
checking whether to enable mod_optional_hook_export... no
checking whether to enable mod_optional_hook_import... no
checking whether to enable mod_optional_fn_import... no
checking whether to enable mod_optional_fn_export... no
checking whether to enable mod_dialup... no
  adding "-I$(top_srcdir)/modules/test" to INCLUDES
checking for target platform... unix
checking for rlim_t... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/sem.h... (cached) yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking for setsid... yes
checking for killpg... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking for unistd.h... (cached) yes
checking for syslog... yes
checking for sys/times.h... (cached) yes
checking for times... (cached) yes
  adding "-I$(top_srcdir)/server" to INCLUDES
checking whether APR supports thread-safe pollsets... checking for kqueue... no
checking for port_create... yes
checking for epoll_create... no
yes
checking if event MPM supports this platform... yes
checking if mpmt_os2 MPM supports this platform... no
checking if prefork MPM supports this platform... yes
checking if WinNT MPM supports this platform... no
checking if worker MPM supports this platform... yes
checking whether to enable mod_lbmethod_byrequests... shared (most)
checking whether to enable mod_lbmethod_bytraffic... shared (most)
checking whether to enable mod_lbmethod_bybusyness... shared (most)
checking whether to enable mod_lbmethod_heartbeat... shared (most)
checking which MPM to use by default... event
  adding "$(MOD_MPM_EVENT_LDADD)" to AP_LIBS
checking for pthread_kill... yes
checking whether to enable mod_unixd... shared
checking whether to enable mod_privileges... checking dependencies
checking priv.h usability... yes
checking priv.h presence... yes
checking for priv.h... yes
checking whether to enable mod_privileges... shared
  adding "-I$(top_srcdir)/modules/arch/unix" to INCLUDES
checking whether to enable mod_heartbeat... no
checking whether to enable mod_heartmonitor... no
checking whether to enable mod_dav... shared
  adding "-I$(top_srcdir)/modules/dav/main" to INCLUDES
checking whether to enable mod_status... shared
checking whether to enable mod_autoindex... shared
checking whether to enable mod_asis... no
checking whether to enable mod_info... shared
checking whether to enable mod_suexec... checking dependencies
checking whether to enable mod_suexec... shared
checking whether to enable mod_cgid... checking dependencies
checking for Solaris patch 120664... yes
checking whether to enable mod_cgid... shared
checking whether to enable mod_cgi... no
  adding "-I$(top_srcdir)/modules/generators" to INCLUDES
checking whether to enable mod_dav_fs... checking dependencies
checking whether to enable mod_dav_fs... shared (most)
checking whether to enable mod_dav_lock... no
checking for extra modules... none
checking whether to enable mod_vhost_alias... shared (most)
checking whether to enable mod_negotiation... shared
checking whether to enable mod_dir... shared
checking whether to enable mod_imagemap... shared
checking whether to enable mod_actions... shared (most)
checking whether to enable mod_speling... shared (most)
checking whether to enable mod_userdir... shared (most)
checking whether to enable mod_alias... shared
checking whether to enable mod_rewrite... shared
  adding "-I$(top_srcdir)/modules/mappers" to INCLUDES
configure: 
configure: Restore user-defined environment settings...
configure: 
  restoring CPPFLAGS to "-I/usr/local/include -I/usr/local/ssl/include
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE"
  setting EXTRA_CPPFLAGS to " -DSOLARIS2=10 -D_REENTRANT"
  restoring CFLAGS to "-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"
  setting EXTRA_CFLAGS to ""
  restoring CXXFLAGS to "-dalign -erroff=%none -errtags=yes -ftrap=%none -g
-xcode=pic32 -m64 -mc -xunroll=1 -xbuiltin=%none -xtarget=ultraT2
-xcache=8/16/4:4096/64/16 -xdepend=no -xnolibmopt -xlinkopt=0 -xnolibmil
-xregs=no%appl -xs -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE
-D_TS_ERRNO"
  setting EXTRA_CXXFLAGS to ""
  restoring LDFLAGS to ""
  setting EXTRA_LDFLAGS to "  -L/usr/local/ssl/lib -L/usr/local/lib"
  restoring LIBS to ""
  setting EXTRA_LIBS to ""
  restoring INCLUDES to ""
  setting EXTRA_INCLUDES to "-I. -I$(top_srcdir)/os/$(OS_DIR)
-I$(top_srcdir)/include -I/usr/local/include/apr-1 -I/usr/local/ssl/include
-I/usr/local/include -I$(top_srcdir)/modules/aaa -I$(top_srcdir)/modules/cache
-I$(top_srcdir)/modules/core -I$(top_srcdir)/modules/database
-I$(top_srcdir)/modules/filters -I$(top_srcdir)/modules/ldap
-I$(top_builddir)/server -I$(top_srcdir)/modules/loggers
-I$(top_srcdir)/modules/lua -I$(top_srcdir)/modules/proxy
-I$(top_srcdir)/modules/session -I$(top_srcdir)/modules/ssl
-I$(top_srcdir)/modules/test -I$(top_srcdir)/server
-I$(top_srcdir)/modules/arch/unix -I$(top_srcdir)/modules/dav/main
-I$(top_srcdir)/modules/generators -I$(top_srcdir)/modules/mappers"
configure: 
configure: Construct makefiles and header files...
configure: 
configure: creating config_vars.mk
configure: creating ./config.status
creating modules/aaa/Makefile
creating modules/arch/win32/Makefile
creating modules/cache/Makefile
creating modules/core/Makefile
creating modules/database/Makefile
creating modules/debugging/Makefile
creating modules/echo/Makefile
creating modules/examples/Makefile
creating modules/experimental/Makefile
creating modules/filters/Makefile
creating modules/http/Makefile
creating modules/ldap/Makefile
creating modules/loggers/Makefile
creating modules/lua/Makefile
creating modules/metadata/Makefile
creating modules/proxy/Makefile
creating modules/session/Makefile
creating modules/slotmem/Makefile
creating modules/ssl/Makefile
creating modules/test/Makefile
creating os/unix/Makefile
creating modules/proxy/balancers/Makefile
creating server/mpm/Makefile
creating server/mpm/event/Makefile
creating modules/arch/unix/Makefile
creating modules/cluster/Makefile
creating modules/dav/main/Makefile
creating modules/generators/Makefile
creating modules/dav/fs/Makefile
creating modules/dav/lock/Makefile
creating modules/mappers/Makefile
creating Makefile
creating modules/Makefile
creating srclib/Makefile
creating os/Makefile
creating server/Makefile
creating support/Makefile
creating test/Makefile
config.status: creating docs/conf/httpd.conf
config.status: creating docs/conf/extra/httpd-autoindex.conf
config.status: creating docs/conf/extra/httpd-dav.conf
config.status: creating docs/conf/extra/httpd-default.conf
config.status: creating docs/conf/extra/httpd-info.conf
config.status: creating docs/conf/extra/httpd-languages.conf
config.status: creating docs/conf/extra/httpd-manual.conf
config.status: creating docs/conf/extra/httpd-mpm.conf
config.status: creating docs/conf/extra/httpd-multilang-errordoc.conf
config.status: creating docs/conf/extra/httpd-ssl.conf
config.status: creating docs/conf/extra/httpd-userdir.conf
config.status: creating docs/conf/extra/httpd-vhosts.conf
config.status: creating docs/conf/extra/proxy-html.conf
config.status: creating include/ap_config_layout.h
config.status: creating support/apxs
config.status: creating support/apachectl
config.status: creating support/dbmmanage
config.status: creating support/envvars-std
config.status: creating support/log_server_status
config.status: creating support/logresolve.pl
config.status: creating support/phf_abuse_log.cgi
config.status: creating support/split-logfile
config.status: creating build/rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating build/config_vars.sh
config.status: creating include/ap_config_auto.h
config.status: executing default commands
node002$

I see : 

"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


I search around looking for a header or any file with
"ap_hook_post_perdir_config" in it : 

node002$ find . -type f | xargs grep "ap_hook_post_perdir_config" | cut -f1
-d\: | sort -u 
./server/exports.c

No header file anywhere to be seen. 

Clearly I need to find that defined somewhere. 

The REAL problem is a whole bucket of header files from 2.4.4 in
/usr/local/include and now I need to identify them, isolate them and keep going
forwards trying to figure out which headers are the cause of the issue in
/usr/local/include. 

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


[Bug 55789] wrong headers found in directory /usr/local/include because it is too early in EXTRA_INCLUDES within build/config_vars.mk

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #16 from Mike Rumph <mi...@oracle.com> ---
Hello Dennis,

In your build/config_vars.mk file, what is CPPFLAGS set to?
Also, do you have a CPPFLAGS environment variable set before calling
./configure?

My guess is that you have CPPFLAGS set to "-I/usr/local/include
-I/usr/local/ssl/include -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE".

If so, this explains the include order you are seeing on the compile steps.

Thanks,

Mike Rumph

-- 
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


[Bug 55789] compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55789

--- Comment #11 from Jeff Trawick <tr...@apache.org> ---
>I think this is a valid build bug however.

Definitely!

-- 
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