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/02/28 02:17:48 UTC

[Bug 54617] New: util.c, line 2809: error: syntax error before or at: *

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

            Bug ID: 54617
           Summary: util.c, line 2809: error: syntax error before or at: *
           Product: Apache httpd-2
           Version: 2.4.4
          Hardware: Sun
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
          Assignee: bugs@httpd.apache.org
          Reporter: dclarke@blastwave.org
    Classification: Unclassified

Created attachment 29999
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29999&action=edit
as seen on the xterm

A new function ap_get_sload exists in server/util.c which receives a pointer
to a parameter ld of type struct ap_sload_t, which is also new and defined
in include/httpd.h thus : 


/**
 * @struct ap_sload_t
 * @brief  A structure to hold server load params
 */
typedef struct ap_sload_t ap_sload_t;
struct ap_sload_t {
    /* percentage of process/threads ready/idle (0->100)*/
    int idle;
    /* percentage of process/threads busy (0->100) */
    int busy;
    /* total bytes served */
    apr_off_t bytes_served;
    /* total access count */
    unsigned long access_count;
};


My attempt to compile Apache 2.4.4 results in this syntax error : 

/usr/local/build/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    -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.4_SunOS5.10_sparcv9.001/os/unix
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/include
-I/usr/local/include/apr-1 -I/usr/local/include
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/aaa
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/cache
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/core
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/database
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/filters
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/ldap
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/loggers
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/lua
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/proxy
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/session
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/ssl
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/test
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/server
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/arch/unix
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/dav/main
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/generators
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/modules/mappers 
-prefer-non-pic -static -c util.c && touch util.lo
"util.c", line 2809: error: syntax error before or at: *
"util.c", line 2818: error: undefined symbol: ld
"util.c", line 2818: error: undefined struct/union member: idle
"util.c", line 2818: error: left operand of "->" must be pointer to
struct/union
"util.c", line 2819: error: undefined struct/union member: busy
"util.c", line 2819: error: left operand of "->" must be pointer to
struct/union
"util.c", line 2820: error: left operand of "->" must be pointer to
struct/union
"util.c", line 2821: error: left operand of "->" must be pointer to
struct/union
"util.c", line 2851: error: left operand of "->" must be pointer to
struct/union
"util.c", line 2852: error: left operand of "->" must be pointer to
struct/union
"util.c", line 2859: error: left operand of "->" must be pointer to
struct/union
"util.c", line 2860: error: left operand of "->" must be pointer to
struct/union
"util.c", line 2864: error: syntax error before or at: *
"util.c", line 2867: error: undefined symbol: ld
"util.c", line 2867: error: undefined struct/union member: loadavg
"util.c", line 2867: error: left operand of "->" must be pointer to
struct/union
"util.c", line 2868: error: undefined struct/union member: loadavg5
"util.c", line 2868: error: left operand of "->" must be pointer to
struct/union
"util.c", line 2869: error: undefined struct/union member: loadavg15
"util.c", line 2869: error: left operand of "->" must be pointer to
struct/union
cc: acomp failed for util.c
gmake[2]: *** [util.lo] Error 1
gmake[2]: Leaving directory
`/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/server'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.001/server'
gmake: *** [all-recursive] Error 1


A quick diff between 2.4.3 and 2.4.4 on util.c shows : 

$ diff ../../httpd-2.4.3_SunOS5.10_sparcv9.001/server/util.c util.c
64a65,67
> #ifdef HAVE_SYS_LOADAVG_H
> #include <sys/loadavg.h>
> #endif
65a69,70
> #include "ap_mpm.h"
> 
276,277c281,284
< 
<     if (ap_regcomp(preg, pattern, cflags)) {
---
>     int err = ap_regcomp(preg, pattern, cflags);
>     if (err) {
>         if (err == AP_REG_ESPACE)
>             ap_abort_on_oom();
428c435
<         if (vb->buf && vb->strlen == AP_VARBUF_UNKNOWN)
---
>         if (vb->strlen == AP_VARBUF_UNKNOWN)
1095a1103
>     apr_size_t new_len;
1098a1107,1117
>     if (vb->strlen == AP_VARBUF_UNKNOWN)
>         vb->strlen = strlen(vb->buf);
>     if (vb->avail - vb->strlen < 3) {
>         new_len = vb->avail * 2;
>         if (new_len > max_len)
>             new_len = max_len;
>         else if (new_len < 3)
>             new_len = 3;
>         ap_varbuf_grow(vb, new_len);
>     }
> 
1100d1118
<         apr_size_t new_len;
1942a1961,1972
> AP_DECLARE(void) ap_bin2hex(const void *src, apr_size_t srclen, char *dest)
> {
>     const unsigned char *in = src;
>     apr_size_t i;
> 
>     for (i = 0; i < srclen; i++) {
>         *dest++ = c2x_table[in[i] >> 4];
>         *dest++ = c2x_table[in[i] & 0xf];
>     }
>     *dest = '\0';
> }
> 
2585a2616,2617
>     AP_DEBUG_ASSERT(vb->strlen == AP_VARBUF_UNKNOWN || vb->avail >= vb->strlen);
> 
2704a2737,2738
>         if (buf->strlen == AP_VARBUF_UNKNOWN)
>             buf->strlen = strlen(buf->buf);
2706,2707c2740
<         vec[i].iov_len = (buf->strlen == AP_VARBUF_UNKNOWN) ? buf->avail
<                                                             : buf->strlen;
---
>         vec[i].iov_len = buf->strlen;
2773a2807,2887
> }
> 
> AP_DECLARE(void) ap_get_sload(ap_sload_t *ld)
> {
>     int i, j, server_limit, thread_limit;
>     int ready = 0;
>     int busy = 0;
>     int total;
>     ap_generation_t mpm_generation;
> 
>     /* preload errored fields, we overwrite */
>     ld->idle = -1;
>     ld->busy = -1;
>     ld->bytes_served = 0;
>     ld->access_count = 0;
> 
>     ap_mpm_query(AP_MPMQ_GENERATION, &mpm_generation);
>     ap_mpm_query(AP_MPMQ_HARD_LIMIT_THREADS, &thread_limit);
>     ap_mpm_query(AP_MPMQ_HARD_LIMIT_DAEMONS, &server_limit);
> 
>     for (i = 0; i < server_limit; i++) {
>         process_score *ps;
>         ps = ap_get_scoreboard_process(i);
> 
>         for (j = 0; j < thread_limit; j++) {
>             int res;
>             worker_score *ws = NULL;
>             ws = &ap_scoreboard_image->servers[i][j];
>             res = ws->status;
> 
>             if (!ps->quiescing && ps->pid) {
>                 if (res == SERVER_READY && ps->generation == mpm_generation) {
>                     ready++;
>                 }
>                 else if (res != SERVER_DEAD &&
>                          res != SERVER_STARTING && res != SERVER_IDLE_KILL &&
>                          ps->generation == mpm_generation) {
>                     busy++;
>                 }   
>             }
> 
>             if (ap_extended_status && !ps->quiescing && ps->pid) {
>                 if (ws->access_count != 0 
>                     || (res != SERVER_READY && res != SERVER_DEAD)) {
>                     ld->access_count += ws->access_count;
>                     ld->bytes_served += ws->bytes_served;
>                 }
>             }
>         }
>     }
>     total = busy + ready;
>     if (total) {
>         ld->idle = ready * 100 / total;
>         ld->busy = busy * 100 / total;
>     }
> }
> 
> AP_DECLARE(void) ap_get_loadavg(ap_loadavg_t *ld)
> {
>     /* preload errored fields, we overwrite */
>     ld->loadavg = -1.0;
>     ld->loadavg5 = -1.0;
>     ld->loadavg15 = -1.0;
> 
> #if HAVE_GETLOADAVG
>     {
>         double la[3];
>         int num;
> 
>         num = getloadavg(la, 3);
>         if (num > 0) {
>             ld->loadavg = (float)la[0];
>         }
>         if (num > 1) {
>             ld->loadavg5 = (float)la[1];
>         }
>         if (num > 2) {
>             ld->loadavg15 = (float)la[2];
>         }
>     }
> #endif
$ 

Not sure if anyone else has hit this but at the moment I can compile and run
2.4.3 on Solaris 10 with the Oracle Studio 12.3 compilers fine.  Apache HTTP
2.4.4 however stops with syntax error seen above.

-- 
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 54617] util.c, line 2809: error: syntax error before or at: *

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

--- Comment #4 from Dennis Clarke <dc...@blastwave.org> ---
Perhaps we should re-name this bug as "build system includes wrong headers" 
or something similar. Really I can not see anything else needed than a re-order
 or better yet just put a -Ithis_source_path/include first.

What I did as a work around was to do a find in the source tree for all
files that end with .h and then delete those same filenames from the
/usr/local/include directory tree.  A bit of a blunt tool approach but it
worked. 

Then when I was finished the compile and the subsequent install everything
"just works" as I expected. 

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 54617] util.c, line 2809: error: syntax error before or at: *

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

--- Comment #3 from Rainer Jung <ra...@kippdata.de> ---
I agree we should make sure that our build process has the local include
directory listed before any other ones. Looking at my own make output
indicates, that the ordering is broken right now.

-- 
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 54617] util.c, line 2809: error: syntax error before or at: *

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

--- Comment #1 from Rainer Jung <ra...@kippdata.de> ---
Could it be that there is another older httpd.h file somewhere in the include
path, especially in /usr/local/include, so that the one needed to define
ap_sload_t is shadowed?

-- 
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 54617] Build: wrong order of header includes, system installed headers shadow our own

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|util.c, line 2809: error:   |Build: wrong order of
                   |syntax error before or at:  |header includes, system
                   |*                           |installed headers shadow
                   |                            |our own

-- 
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 54617] Build: wrong order of "-I" params, system installed headers shadow our own

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4
           Severity|normal                      |trivial

--- Comment #5 from Dennis Clarke <dc...@blastwave.org> ---
see https://issues.apache.org/bugzilla/show_bug.cgi?id=55789#c17

 Dennis Clarke 2014-03-26 04:36:15 UTC

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 54617] Build: wrong order of "-I" params, system installed headers shadow our own

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Build: wrong order of       |Build: wrong order of "-I"
                   |header includes, system     |params, system installed
                   |installed headers shadow    |headers shadow our own
                   |our own                     |

-- 
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 54617] Build: wrong order of "-I" params, system installed headers shadow our own

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

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

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

--- Comment #6 from Yann Ylavic <yl...@gmail.com> ---
Thanks for reporting the configure error.
The bug is 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 54617] util.c, line 2809: error: syntax error before or at: *

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

--- Comment #2 from Dennis Clarke <dc...@blastwave.org> ---
Excellent observation by Rainer Jung.

There is a copy of httpd.h in /usr/local/include from the existing 2.4.3 
install.  It conflicts with the version in the source tree and, certainly
does lack the required typedef struct ap_loadavg_t.

$ ls -lap /usr/local/include/httpd.h
-rw-r--r--   1 root     root       76610 Feb 26 05:06
/usr/local/include/httpd.h

Not too sure why it is owned by root but that is an install problem from
the previous version. 

furthermore we have these header files to deal with :

/usr/local/include/http_config.h
/usr/local/include/http_connection.h
/usr/local/include/http_core.h
/usr/local/include/http_log.h
/usr/local/include/http_main.h
/usr/local/include/http_protocol.h
/usr/local/include/http_request.h
/usr/local/include/http_vhost.h


The solutions to this problem is, as root : 

# cd /usr/local 
# cp -p include/httpd.h include/httpd.h_backup_2.4.3
# rm include/httpd.h

Then go back to "configure" and start over as the uid/gid doing the compile of
2.4.4.

This then results in a good looking configure : 

$ pwd
/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002
$ env | sort > ../httpd-2.4.4_SunOS5.10_sparcv9.002.env
$ ./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 \
> --enable-mpms-shared 
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_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
  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_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
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
-I/opt/mysql/mysql/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"
  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
$ 

Then GNU make continues for almost 5 minutes and we have a new problem : 

/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    -DSOLARIS2=10 -D_REENTRANT  -I/usr/local/include
-I/usr/local/ssl/include -I/opt/mysql/mysql/include -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE   -I.
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/os/unix
-I/usr/local/build/httpd-2.4.4_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.4_SunOS5.10_sparcv9.002/modules/aaa
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/cache
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/core
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/database
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/filters
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/ldap
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/server
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/loggers
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/lua
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/proxy
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/session
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/ssl
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/test
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/server
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/arch/unix
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/dav/main
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/generators
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/mappers
-prefer-pic -c ajp_utils.c && touch ajp_utils.slo
/usr/local/build-1/libtool --silent --mode=link /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   -L/usr/local/ssl/lib
-L/usr/local/lib      -o mod_proxy_ajp.la -rpath /usr/local/modules -module
-avoid-version  mod_proxy_ajp.lo ajp_header.lo ajp_link.lo ajp_msg.lo
ajp_utils.lo 
ld: warning: option -Q appears more than once, first setting taken
/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    -DSOLARIS2=10 -D_REENTRANT  -I/usr/local/include
-I/usr/local/ssl/include -I/opt/mysql/mysql/include -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE   -I.
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/os/unix
-I/usr/local/build/httpd-2.4.4_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.4_SunOS5.10_sparcv9.002/modules/aaa
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/cache
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/core
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/database
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/filters
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/ldap
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/server
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/loggers
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/lua
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/proxy
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/session
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/ssl
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/test
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/server
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/arch/unix
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/dav/main
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/generators
-I/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/mappers
-prefer-pic -c mod_proxy_balancer.c && touch mod_proxy_balancer.slo
"mod_proxy_balancer.c", line 826: error: undefined struct/union member: fgrab
"mod_proxy_balancer.c", line 826: error: function designator is not of function
type
"mod_proxy_balancer.c", line 826: warning: improper pointer/integer
combination: op "="
"mod_proxy_balancer.c", line 874: error: undefined struct/union member: fgrab
"mod_proxy_balancer.c", line 874: error: function designator is not of function
type
"mod_proxy_balancer.c", line 874: warning: improper pointer/integer
combination: op "="
"mod_proxy_balancer.c", line 906: error: cannot recover from previous errors
cc: acomp failed for mod_proxy_balancer.c
gmake[4]: *** [mod_proxy_balancer.slo] Error 1
gmake[4]: Leaving directory
`/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/proxy'
gmake[3]: *** [shared-build-recursive] Error 1
gmake[3]: Leaving directory
`/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules/proxy'
gmake[2]: *** [shared-build-recursive] Error 1
gmake[2]: Leaving directory
`/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002/modules'
gmake[1]: *** [shared-build-recursive] Error 1
gmake[1]: Leaving directory
`/usr/local/build/httpd-2.4.4_SunOS5.10_sparcv9.002'
gmake: *** [all-recursive] Error 1

I see "mod_proxy_balancer.c", line 826: error: undefined struct/union member:
fgrab

$ grep -n "fgrab" modules/proxy/mod_proxy_balancer.c
826:                if ((rv = storage->fgrab(conf->bslot, index)) !=
APR_SUCCESS) {
827:                    ap_log_error(APLOG_MARK, APLOG_EMERG, rv, s,
APLOGNO(02408) "balancer slotmem_fgrab failed");
874:                    if ((rv = storage->fgrab(balancer->wslot, index)) !=
APR_SUCCESS) {
875:                        ap_log_error(APLOG_MARK, APLOG_EMERG, rv, s,
APLOGNO(02409) "worker slotmem_fgrab failed");

Well storage seems to be of type ap_slotmem_provider_t and it was initialized
up in line 726 of modules/proxy/mod_proxy_balancer.c :

    /*
     * Get slotmem setups
     */
    storage = ap_lookup_provider(AP_SLOTMEM_PROVIDER_GROUP, "shm",
                                 AP_SLOTMEM_PROVIDER_VERSION);

This data type is used in plenty of places : 


./include/ap_mmn.h
./include/ap_slotmem.h
./modules/cluster/mod_heartmonitor.c
./modules/proxy/balancers/mod_lbmethod_heartbeat.c
./modules/proxy/mod_proxy.h
./modules/proxy/mod_proxy_balancer.c
./modules/proxy/proxy_util.c
./modules/slotmem/mod_slotmem_plain.c
./modules/slotmem/mod_slotmem_shm.c

The type is defined in ./include/ap_slotmem.h so is there an "fgrab" in there ?

struct ap_slotmem_provider_t {
    /*
     * Name of the provider method
     */
    const char *name;
.
.
. snip a pile of lines with nice comments and other such
.

    /**
     * forced grab (or alloc) a slot associated with this item_id
     * @param s ap_slotmem_instance_t to use.
     * @param item_id to the specified slot id and marked as in-use
     * @return APR_SUCCESS if all went well
     */
    apr_status_t (* fgrab)(ap_slotmem_instance_t *s, unsigned int item_id);
};

typedef struct ap_slotmem_provider_t ap_slotmem_provider_t;


Is this new to 2.4.4 ? 

$ diff ../httpd-2.4.3_SunOS5.10_sparcv9.001/include/ap_slotmem.h
include/ap_slotmem.h
64a65,67
>  *
>  * AP_SLOTMEM_TYPE_CLEARINUSE: If persisting, clear 'inuse' array before
>  *    storing
66,68c69,72
< #define AP_SLOTMEM_TYPE_PERSIST   (1 << 0)
< #define AP_SLOTMEM_TYPE_NOTMPSAFE (1 << 1)
< #define AP_SLOTMEM_TYPE_PREGRAB   (1 << 2)
---
> #define AP_SLOTMEM_TYPE_PERSIST      (1 << 0)
> #define AP_SLOTMEM_TYPE_NOTMPSAFE    (1 << 1)
> #define AP_SLOTMEM_TYPE_PREGRAB      (1 << 2)
> #define AP_SLOTMEM_TYPE_CLEARINUSE   (1 << 3)
177a182,188
>     /**
>      * forced grab (or alloc) a slot associated with this item_id
>      * @param s ap_slotmem_instance_t to use.
>      * @param item_id to the specified slot id and marked as in-use
>      * @return APR_SUCCESS if all went well
>      */
>     apr_status_t (* fgrab)(ap_slotmem_instance_t *s, unsigned int item_id);
$ 


Yes, it is new. 

Do I have more header files in /usr/local/include from the previous httpd
instance ? 

$ find /usr/local/include -type f | xargs grep ap_slotmem_provider_t | cut -f1
-d\: | sort -u 
/usr/local/include/ap_slotmem.h
/usr/local/include/mod_proxy.h


Yes .. more of the same problem. 

I think perhaps there needs to be some way to tell my build process to look in
the source directory FIRST before looking in /usr/local/include for headers or
this will be a long frustrating process of falling on errors due to new
changes.

Even worse, is NOT falling on the new changes and not seeing some more subtle
flaw in my resultant binaries because of older headers being used.

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