On 05/07/2017 08:37 PM, Yann Ylavic wrote:
On Sun, May 7, 2017 at 4:15 PM, Dennis Clarke <dcla...@blastwave.org> wrote:

node000 $ echo $CPPFLAGS
-I/usr/local/include -I/usr/local/ssl/include -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE
[]

During the compile is where we see every sort of non-portable warning or
error we can possibly imagine.  Let's look at the few seconds that we
managed to get from it. In fact, even with a more relaxed  compiler "cc"
we don't get very far.

/usr/local/bin/bash /usr/local/build-1/libtool --silent --mode=compile
/opt/developerstudio12.5/bin/cc   -errfmt=error -erroff=%none -errshort=full
-xstrconst -xildoff -m64 -xarch=sparc -xmemalign=8s -xnolibmil -Xa
-xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy
-xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H
-DSOLARIS2=10 -D_REENTRANT  -I/usr/local/include -I/usr/local/ssl/include
-I/usr/local/include/apr-1 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE
-I/usr/local/build/apr-util-1.6.0_beta_SunOS5.10_sparcv9.001/include
-I/usr/local/build/apr-util-1.6.0_beta_SunOS5.10_sparcv9.001/include/private
-I/opt/mysql/mysql/include  -I/usr/local/include/apr-1
-I/usr/local/ssl/include -I/usr/local/include  -o
buckets/apr_buckets_file.lo -c buckets/apr_buckets_file.c && touch
buckets/apr_buckets_file.lo
"buckets/apr_buckets_file.c", line 112: error: undefined struct/union
member: read_size

Looks like due to $CCPFLAGS above, an old
"/usr/local/include/apr-1/apr_buckets.h" already exists and is
prioritized over the one in
"/usr/local/build/apr-util-1.6.0_beta_SunOS5.10_sparcv9.001/include".


I setup a fresh beta site to work on the 1.6.x code and the apr seems to
build fine without even a single warning at all from the Oracle Studio
12.5 compilers.  I have thus moved on to apr-util where I see that there
once was an installed expat.h in the default /usr/local/include/apr-1
but it no longer exists. I will build in libexpat separately and then
see if that satisfies the dependency :

/usr/local/bin/bash /usr/local/build-1/libtool --silent --mode=compile /opt/developerstudio12.5/bin/cc -errfmt=error -erroff=%none -errshort=full -xstrconst -xildoff -m64 -xarch=sparc -xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -DSOLARIS2=10 -D_REENTRANT -I/usr/local/include -I/usr/local/ssl/include -I/usr/local/include/apr-1 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -I/usr/local/build/apr-util-1.6.0_SunOS5.10_sparcv9.001/include -I/usr/local/build/apr-util-1.6.0_SunOS5.10_sparcv9.001/include/private -I/opt/mysql/mysql/include -I/usr/local/include/apr-1 -I/usr/local/ssl/include -I/usr/local/include -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo
"xml/apr_xml.c", line 35: cannot find include file: <expat.h>
"xml/apr_xml.c", line 66: error: syntax error before or at: XML_Parser
"xml/apr_xml.c", line 67: error: incomplete struct/union/enum XML_Error: xp_err
"xml/apr_xml.c", line 82: error: improper member use: cur_elem
"xml/apr_xml.c", line 154: error: improper member use: error
"xml/apr_xml.c", line 157: error: improper member use: p
"xml/apr_xml.c", line 160: error: improper member use: p
"xml/apr_xml.c", line 164: error: improper member use: p
"xml/apr_xml.c", line 165: error: improper member use: p
"xml/apr_xml.c", line 166: error: improper member use: p
"xml/apr_xml.c", line 172: error: improper member use: cur_elem
"xml/apr_xml.c", line 174: error: improper member use: cur_elem
"xml/apr_xml.c", line 174: error: improper member use: doc
"xml/apr_xml.c", line 178: error: improper member use: cur_elem
"xml/apr_xml.c", line 192: error: improper member use: cur_elem
"xml/apr_xml.c", line 208: error: improper member use: error
"xml/apr_xml.c", line 220: error: improper member use: p
"xml/apr_xml.c", line 223: error: improper member use: p
"xml/apr_xml.c", line 225: error: improper member use: doc
"xml/apr_xml.c", line 240: error: improper member use: p
"xml/apr_xml.c", line 284: error: improper member use: error
"xml/apr_xml.c", line 315: error: improper member use: error
"xml/apr_xml.c", line 327: error: improper member use: error
"xml/apr_xml.c", line 331: error: improper member use: cur_elem
"xml/apr_xml.c", line 331: error: improper member use: cur_elem
"xml/apr_xml.c", line 342: error: improper member use: error
"xml/apr_xml.c", line 345: error: improper member use: cur_elem
"xml/apr_xml.c", line 346: error: improper member use: p
"xml/apr_xml.c", line 357: error: improper member use: p
"xml/apr_xml.c", line 364: warning: implicit function declaration: XML_ParserFree
"xml/apr_xml.c", line 364: error: undefined struct/union member: xp
"xml/apr_xml.c", line 365: error: improper member use: xp
"xml/apr_xml.c", line 384: warning: no explicit type given
"xml/apr_xml.c", line 384: error: syntax error before or at: *
"xml/apr_xml.c", line 384: warning: undefined or missing type for: int
"xml/apr_xml.c", line 393: error: improper member use: p
"xml/apr_xml.c", line 394: error: improper member use: doc
"xml/apr_xml.c", line 394: error: improper member use: doc
"xml/apr_xml.c", line 394: error: improper member use: doc
"xml/apr_xml.c", line 396: error: improper member use: doc
"xml/apr_xml.c", line 399: error: improper member use: doc
"xml/apr_xml.c", line 401: error: undefined struct/union member: xp
"xml/apr_xml.c", line 401: warning: implicit function declaration: XML_ParserCreate
"xml/apr_xml.c", line 402: error: improper member use: xp
"xml/apr_xml.c", line 410: warning: implicit function declaration: XML_SetUserData
"xml/apr_xml.c", line 410: error: improper member use: xp
"xml/apr_xml.c", line 411: warning: implicit function declaration: XML_SetElementHandler
"xml/apr_xml.c", line 411: error: improper member use: xp
"xml/apr_xml.c", line 412: warning: implicit function declaration: XML_SetCharacterDataHandler
"xml/apr_xml.c", line 412: error: improper member use: xp
"xml/apr_xml.c", line 424: warning: implicit function declaration: XML_SetDefaultHandler
"xml/apr_xml.c", line 424: error: improper member use: xp
"xml/apr_xml.c", line 434: error: undefined struct/union member: xp
"xml/apr_xml.c", line 435: error: improper member use: error
"xml/apr_xml.c", line 438: warning: implicit function declaration: XML_Parse
"xml/apr_xml.c", line 438: error: improper member use: xp
"xml/apr_xml.c", line 441: error: improper member use: error
"xml/apr_xml.c", line 442: warning: implicit function declaration: XML_GetErrorCode
"xml/apr_xml.c", line 442: error: improper member use: xp
"xml/apr_xml.c", line 447: error: improper member use: error
"xml/apr_xml.c", line 464: error: improper member use: p
"xml/apr_xml.c", line 470: error: improper member use: doc
"xml/apr_xml.c", line 478: error: improper member use: error
"xml/apr_xml.c", line 482: error: improper member use: error
"xml/apr_xml.c", line 500: warning: implicit function declaration: XML_ErrorString
cc: acomp failed for xml/apr_xml.c
gmake[1]: *** [xml/apr_xml.lo] Error 1
gmake[1]: Leaving directory `/usr/local/build/apr-util-1.6.0_SunOS5.10_sparcv9.001'
gmake: *** [all-recursive] Error 1
beta $



If I look at my running apache 2.4.25 sites I see :




node000 $ /usr/local/bin/httpd -V
Server version: Apache/2.4.25 (Unix)
Server built:   Feb 15 2017 17:59:55
Server's Module Magic Number: 20120211:67
Server loaded:  APR 1.5.1, APR-UTIL 1.5.3
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
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_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -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"


Wherein :

node000 $ ls -lap /usr/local/include/apr-1/expat.h
-rw-r--r-- 1 root bin 39164 Feb 28 2013 /usr/local/include/apr-1/expat.h


So that seems to be gone from apr-1.6.0 and I hope expat-2.2.0 solves
 the issue.

Dennis


























Reply via email to