httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55789] New: compile fails in server/exports.c at line 445 with error: undefined symbol: ap_condition_if_match
Date Sun, 17 Nov 2013 07:01:49 GMT
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


Mime
View raw message