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 2018/03/28 21:59:08 UTC

[Bug 62228] New: Compiler error in mod_proxy.c:2675

https://bz.apache.org/bugzilla/show_bug.cgi?id=62228

            Bug ID: 62228
           Summary: Compiler error in mod_proxy.c:2675
           Product: Apache httpd-2
           Version: 2.4.33
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Build
          Assignee: bugs@httpd.apache.org
          Reporter: nortonwarner@gmail.com
  Target Milestone: ---

Particulars
---
OS: FreeBSD 8.4 p4
C version: gcc version 4.2.1 20070831 patched [FreeBSD]
OpenSSL: 1.0.2o
Last Successful Apache Compile: 2.4.29

Problem
---
Compilation halts with the following problem:

mod_proxy.c && touch mod_proxy.slo
mod_proxy.c:2675: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
mod_proxy.c: In function 'ap_proxy_ssl_engine':
mod_proxy.c:2709: error: 'proxy_ssl_engine' undeclared (first use in this
function)
mod_proxy.c:2709: error: (Each undeclared identifier is reported only once
mod_proxy.c:2709: error: for each function it appears in.)
mod_proxy.c:2710: warning: implicit declaration of function 'proxy_ssl_engine'
mod_proxy.c: In function 'proxy_post_config':
mod_proxy.c:2760: error: 'proxy_ssl_engine' undeclared (first use in this
function)
mod_proxy.c:2760: error: 'apr_OFN_ssl_engine_set_t' undeclared (first use in
this function)
mod_proxy.c:2760: error: expected expression before ')' token
*** Error code 1

Stop in /usr/src/httpd-2.4.33/modules/proxy.
*** Error code 1


My guess is the first error is causing the rest. It looks like a function
prototype is not matching the header of the actual function. This particular
function (proxy_ssl_engine) is new to 2.4.33. It wasn't in 2.4.29
(mod_proxy.c).

Do I need a compiler --option to get this to work? or do I need an updated
compiler? and if so, which version?

Thanks for any help!

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #11 from Rainer Jung <ra...@kippdata.de> ---
APR-UTIL has dropped the bundled "expat" dependency in 1.6.0 because it wasn't
correctly maintained. We now support standard "expat". So there's now one more
dependency you need to provide befor you can compile (just like OpenSSL or
pcre). Grab an expat download, e.g. version 2.2.5 from
https://libexpat.github.io/, compile and install it (to a separate directory
not mixing header files) and point your httpd "configure" to it using
"--with-expat=DIR". Note that in fact this is not an httpd configure flag,
instead it belongs to apr-util, but httpd configure will pass it down when it
calls apr-util's configure.

If you build apr-util 1.6+ standalone you would need to provide the
"--with-expat=DIR" flag to the ocnfigure of apr-util.

Regards,

Rainer

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #3 from Eric Covener <co...@gmail.com> ---
(In reply to nortonwarner from comment #2)
> I don't see how. Each of my Apache sources are always in separate
> directories, /usr/src/httpd-2.4.xx
> 
> The contents of /usr/src/httpd-2.4.33/config.nice are:
> 
> #! /bin/sh
> #
> # Created by configure
> 
> "./configure" \
> "--prefix=/usr/local/apache2" \
> "--enable-load-all-modules" \
> "--enable-so" \
> "--with-included-apr" \
> "--with-pcre=/usr/local/apache2/pcre" \
> "--with-mpm=prefork" \
> "--with-ssl=/usr/local/ssl" \
> "$@"

It would be a bad mod_ssl.h , can you show the compiler invocation for
mod_proxy.c?

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #9 from Norton Warner <no...@gmail.com> ---
Concerning the APR mention (I'll give that proxy run a shot in a sec...)

Interesting...because I suspected that APR was the culprit.

So I got the latest v1.6.whatever, and then changed my parameters to
'--with-included-apr', I extracted both APR and APR-util in the following
locations (removing version numbers as per instructed)

CONTENTS OF /usr/src/httpd-2.4.33/srclib:

-rw-r--r--   1 root  wheel     0 Mar 29 13:03 .deps
-rw-r--r--   1 root  wheel   327 Mar 29 13:03 Makefile
-rw-r--r--   1 root  wheel   121 Feb 11  2005 Makefile.in
drwxr-xr-x  28 root  wheel  1536 Mar 29 13:04 apr/
drwxr-xr-x  20 root  wheel  1536 Mar 29 13:04 apr-util/

The following is the result of 'make -d A'

COMPILE CALL
/bin/sh /usr/src/httpd-2.4.33/srclib/apr/libtool --silent --mode=compile gcc -g
-O2   -DHAVE_CONFIG_H     -I/usr/src/httpd-2.4.33/srclib/apr-util/include
-I/usr/src/httpd-2.4.33/srclib/apr-util/include/private 
-I/usr/src/httpd-2.4.33/srclib/apr/include  -o xml/apr_xml.lo -c xml/apr_xml.c
&& touch xml/apr_xml.lo

BEGIN OF FAILURE
xml/apr_xml.lo:> = xml/apr_xml.c .make.dirs
xml/apr_xml.lo:? = xml/apr_xml.c .make.dirs
xml/apr_xml.lo:> = xml/apr_xml.c .make.dirs include/apr_xlate.h
xml/apr_xml.lo:? = xml/apr_xml.c .make.dirs include/apr_xlate.h
xml/apr_xml.lo:> = xml/apr_xml.c .make.dirs include/apr_xlate.h
include/apr_xml.h
xml/apr_xml.lo:? = xml/apr_xml.c .make.dirs include/apr_xlate.h
include/apr_xml.h
xml/apr_xml.c:35:19: error: expat.h: No such file or directory
xml/apr_xml.c:66: error: expected specifier-qualifier-list before 'XML_Parser'
xml/apr_xml.c: In function 'cleanup_parser':
xml/apr_xml.c:364: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:365: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c: At top level:
xml/apr_xml.c:384: error: expected ';', ',' or ')' before '*' token
xml/apr_xml.c: In function 'apr_xml_parser_create':
xml/apr_xml.c:401: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:402: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:410: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:411: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:412: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:424: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:424: error: 'default_handler' undeclared (first use in this
function)
xml/apr_xml.c:424: error: (Each undeclared identifier is reported only once
xml/apr_xml.c:424: error: for each function it appears in.)
xml/apr_xml.c: In function 'do_parse':
xml/apr_xml.c:434: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:438: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:442: error: 'apr_xml_parser' has no member named 'xp_err'
xml/apr_xml.c:442: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c: In function 'apr_xml_parser_geterror':
xml/apr_xml.c:500: error: 'apr_xml_parser' has no member named 'xp_err'
xml/apr_xml.c:500: error: 'apr_xml_parser' has no member named 'xp_err'

*** Error code 1

Stop in /usr/src/httpd-2.4.33/srclib/apr-util.
*** Error code 1

Stop in /usr/src/httpd-2.4.33/srclib/apr-util.
*** Error code 1

Stop in /usr/src/httpd-2.4.33/srclib.
*** Error code 1

Stop in /usr/src/httpd-2.4.33.

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

Norton Warner <no...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED

--- Comment #15 from Norton Warner <no...@gmail.com> ---
YES!!!!

Unreal, you guys were SPOT ON MAN!

Bottom line analysis:

-It didn't like APR 1.5.x headers, so needed to install APR 1.6.x, but that
wouldn't work because of the expat issue.

-Went to https://github.com/libexpat/libexpat/releases and got the latest expat
file 'expat-2.2.5.tar.bz2', installed it to /usr/local/expat

-Added line to -config.nice- file, looks like this:

#! /bin/sh
#
# Created by configure

"./configure" \
"--prefix=/usr/local/apache2" \
"--enable-load-all-modules" \
"--enable-so" \
"--with-expat=/usr/local/expat" \
"--with-included-apr" \
"--with-pcre=/usr/local/apache2/pcre" \
"--with-mpm=prefork" \
"--with-ssl=/usr/local/ssl" \
"$@"

-Then % ./config.nice; make; make install

-Checked version % /usr/local/apache2/bin/httpd -v
   Server version: Apache/2.4.33 (Unix)
   Server built:   Mar 29 2018 14:11:24

I can't thank you guys enough. I've been installing Apaches since v1.3.x on
original BSDI/3.1 boxes (1997). Never had a show-stopping problem...until now.

And I REALLY appreciate the prompt responses!!!!!! I can now get this off my
plate.

Thanks again!

Norton Warner.

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #10 from Norton Warner <no...@gmail.com> ---
Same problem...doing what you suggested as 'one long line'

OUTPUT

mod_proxy.c:2675: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
mod_proxy.c: In function 'ap_proxy_ssl_engine':
mod_proxy.c:2709: error: 'proxy_ssl_engine' undeclared (first use in this
function)
mod_proxy.c:2709: error: (Each undeclared identifier is reported only once
mod_proxy.c:2709: error: for each function it appears in.)
mod_proxy.c:2710: warning: implicit declaration of function 'proxy_ssl_engine'
mod_proxy.c: In function 'proxy_post_config':
mod_proxy.c:2760: error: 'proxy_ssl_engine' undeclared (first use in this
function)
mod_proxy.c:2760: error: 'apr_OFN_ssl_engine_set_t' undeclared (first use in
this function)
mod_proxy.c:2760: error: expected expression before ')' token

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #1 from Eric Covener <co...@gmail.com> ---
Did your ./configure maybe pick up old headers over included headers?

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #13 from Norton Warner <no...@gmail.com> ---
Just wanted to say thanks to both you folks for helping me with this.

You've given me enough ammunition to go firing off solutions.

I'll let you know if I hit the target!

Again, many thanks!

--Norton W.

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #4 from nortonwarner@gmail.com ---
Ok, let me back up a bit. The =config= posted earlier was also not working
because I was attempting to compile in an included-apr. That's another issue.
So, back to the original -config-, here's the one that I've been using. It
references an existing APR 1.5.something...

#! /bin/sh
#
# Created by configure

"./configure" \
"--prefix=/usr/local/apache2" \
"--enable-load-all-modules" \
"--enable-so" \
"--with-pcre=/usr/local/apache2/pcre" \
"--with-apr=/usr/local/apache2/bin" \
"--with-apr-util=/usr/local/apache2/bin" \
"--with-mpm=prefork" \
"--with-ssl=/usr/local/ssl" \
"$@"

Appears to -config- ok, here are the the last few lines:

configure: summary of build options:

    Server Version: 2.4.33
    Install prefix: /usr/local/apache2
    C compiler:     gcc -std=gnu99
    CFLAGS:          -g -O2
    CPPFLAGS:
    LDFLAGS:
    LIBS:
    C preprocessor: gcc -E

Then when I -make-, here is the invocation to mod_proxy.c before it returns
that error message, followed by the error message and final stoppage.

.
.
Building shared: mod_proxy.la mod_proxy_connect.la mod_proxy_ftp.la
mod_proxy_http.la mod_proxy_fcgi.la mod_proxy_scgi.la mod_proxy_uwsgi.la
mod_proxy_fdpass.la mod_proxy_wstunnel.la mod_proxy_ajp.la
mod_proxy_balancer.la mod_proxy_express.la mod_proxy_hcheck.la

/usr/local/apache2/build/libtool --silent --mode=compile gcc -std=gnu99  -g -O2
          -I. -I/usr/src/httpd-2.4.33/os/unix -I/usr/src/httpd-2.4.33/include
-I/usr/local/apache2/include -I/usr/local/apache2/pcre/include
-I/usr/src/httpd-2.4.33/modules/aaa -I/usr/src/httpd-2.4.33/modules/cache
-I/usr/src/httpd-2.4.33/modules/core -I/usr/src/httpd-2.4.33/modules/database
-I/usr/src/httpd-2.4.33/modules/filters -I/usr/src/httpd-2.4.33/modules/ldap
-I/usr/src/httpd-2.4.33/modules/loggers -I/usr/src/httpd-2.4.33/modules/lua
-I/usr/src/httpd-2.4.33/modules/proxy -I/usr/src/httpd-2.4.33/modules/session
-I/usr/src/httpd-2.4.33/modules/ssl -I/usr/src/httpd-2.4.33/modules/test
-I/usr/src/httpd-2.4.33/server -I/usr/src/httpd-2.4.33/modules/md
-I/usr/src/httpd-2.4.33/modules/arch/unix
-I/usr/src/httpd-2.4.33/modules/dav/main
-I/usr/src/httpd-2.4.33/modules/generators
-I/usr/src/httpd-2.4.33/modules/mappers -prefer-pic -c mod_proxy.c && touch
mod_proxy.slo

mod_proxy.c:2675: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
mod_proxy.c: In function 'ap_proxy_ssl_engine':
mod_proxy.c:2709: error: 'proxy_ssl_engine' undeclared (first use in this
function)
mod_proxy.c:2709: error: (Each undeclared identifier is reported only once
mod_proxy.c:2709: error: for each function it appears in.)
mod_proxy.c:2710: warning: implicit declaration of function 'proxy_ssl_engine'
mod_proxy.c: In function 'proxy_post_config':
mod_proxy.c:2760: error: 'proxy_ssl_engine' undeclared (first use in this
function)
mod_proxy.c:2760: error: 'apr_OFN_ssl_engine_set_t' undeclared (first use in
this function)
mod_proxy.c:2760: error: expected expression before ')' token
*** Error code 1

Stop in /usr/src/httpd-2.4.33/modules/proxy.
*** Error code 1

Stop in /usr/src/httpd-2.4.33/modules/proxy.
*** Error code 1

Stop in /usr/src/httpd-2.4.33/modules.
*** Error code 1

Stop in /usr/src/httpd-2.4.33.
*** Error code 1

Stop in /usr/src/httpd-2.4.33.

%

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

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

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

--- Comment #14 from Rainer Jung <ra...@kippdata.de> ---
I'll close this. You can nevertheless report back success or (unexpected)
failure.

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #5 from Eric Covener <co...@gmail.com> ---
You may be able to strip off the --silent and re-run that to see the invocation

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #12 from Rainer Jung <ra...@kippdata.de> ---
(In reply to Norton Warner from comment #10)
> Same problem...doing what you suggested as 'one long line'
> 
> OUTPUT
> 
> mod_proxy.c:2675: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before '*' token
> mod_proxy.c: In function 'ap_proxy_ssl_engine':
> mod_proxy.c:2709: error: 'proxy_ssl_engine' undeclared (first use in this
> function)
> mod_proxy.c:2709: error: (Each undeclared identifier is reported only once
> mod_proxy.c:2709: error: for each function it appears in.)
> mod_proxy.c:2710: warning: implicit declaration of function
> 'proxy_ssl_engine'
> mod_proxy.c: In function 'proxy_post_config':
> mod_proxy.c:2760: error: 'proxy_ssl_engine' undeclared (first use in this
> function)
> mod_proxy.c:2760: error: 'apr_OFN_ssl_engine_set_t' undeclared (first use in
> this function)
> mod_proxy.c:2760: error: expected expression before ')' token

That was expected. What Eric tried to point out is: if you run libtool without
"--silent" the first output you get is the real gcc command that libtool issues
to do the compilation. That's the authoritative information about the final
compilation flags being used. So he would have been interested in the output
directly before the error.

But as I said and commented above: I think we already know the solution.

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #8 from Rainer Jung <ra...@kippdata.de> ---
You can run the command without make in a shell and there simply removve the
"--silent".

Example:

% cd /usr/src/httpd-2.4.33/modules/proxy

# and the following as one long line:

% /usr/local/apache2/build/libtool --mode=compile gcc -std=gnu99  -g -O2
          -I. -I/usr/src/httpd-2.4.33/os/unix -I/usr/src/httpd-2.4.33/include
-I/usr/local/apache2/include -I/usr/local/apache2/pcre/include
-I/usr/src/httpd-2.4.33/modules/aaa -I/usr/src/httpd-2.4.33/modules/cache
-I/usr/src/httpd-2.4.33/modules/core -I/usr/src/httpd-2.4.33/modules/database
-I/usr/src/httpd-2.4.33/modules/filters -I/usr/src/httpd-2.4.33/modules/ldap
-I/usr/src/httpd-2.4.33/modules/loggers -I/usr/src/httpd-2.4.33/modules/lua
-I/usr/src/httpd-2.4.33/modules/proxy -I/usr/src/httpd-2.4.33/modules/session
-I/usr/src/httpd-2.4.33/modules/ssl -I/usr/src/httpd-2.4.33/modules/test
-I/usr/src/httpd-2.4.33/server -I/usr/src/httpd-2.4.33/modules/md
-I/usr/src/httpd-2.4.33/modules/arch/unix
-I/usr/src/httpd-2.4.33/modules/dav/main
-I/usr/src/httpd-2.4.33/modules/generators
-I/usr/src/httpd-2.4.33/modules/mappers -prefer-pic -c mod_proxy.c && touch
mod_proxy.slo

But look at my previous comment. I think we already got enough to understand
your problem.

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #2 from nortonwarner@gmail.com ---
I don't see how. Each of my Apache sources are always in separate
directories, /usr/src/httpd-2.4.xx

The contents of /usr/src/httpd-2.4.33/config.nice are:

#! /bin/sh
#
# Created by configure

"./configure" \
"--prefix=/usr/local/apache2" \
"--enable-load-all-modules" \
"--enable-so" \
"--with-included-apr" \
"--with-pcre=/usr/local/apache2/pcre" \
"--with-mpm=prefork" \
"--with-ssl=/usr/local/ssl" \
"$@"

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #7 from Rainer Jung <ra...@kippdata.de> ---
I think Eric is on the right track here with the order of include files. The
line in which compilation fails uses ssl_engine_set, which is a new symbol
declaredin mod_ssl.h. During compilation time mod_ssl.h lies in
.../modules/ssl.

Now look at your include order:

-I.
-I/usr/src/httpd-2.4.33/os/unix
-I/usr/src/httpd-2.4.33/include
-I/usr/local/apache2/include
-I/usr/local/apache2/pcre/include
-I/usr/src/httpd-2.4.33/modules/aaa
-I/usr/src/httpd-2.4.33/modules/cache
...
-I/usr/src/httpd-2.4.33/modules/proxy
-I/usr/src/httpd-2.4.33/modules/session
-I/usr/src/httpd-2.4.33/modules/ssl
...

I expect the compiler uses mod_ssl.h from the installed include files f your
old version via -I/usr/local/apache2/include and not the later one via
-I/usr/src/httpd-2.4.33/modules/ssl.

As a short term mitigation, you might want to rename /usr/local/apache2/include
while doing the build.

But where does that item "-I/usr/local/apache2/include" come from? It does
*not* come from your choice of "--prefix". Fr instance this is my include list,
also using a --prefix:

-I.
-I/usr/bld/httpd-2.4.33/include
-I/usr/src/httpd-2.4.33/os/unix
-I/usr/src/httpd-2.4.33/include
-I/usr/local/apr/1.5.2-1.solaris10.sparc/include/apr-1
-I/usr/local/apr-util/1.5.4-6.solaris10.sparc/include/apr-1
-I/usr/local/openssl-1.0.2lsp1-1.solaris10.sparc/include
-I/usr/local/expat/2.2.1-1.solaris10.sparc/include
-I/usr/local/pcre/8.41-1.solaris10.sparc/include
-I/usr/src/httpd-2.4.33/modules/aaa
-I/usr/src/httpd-2.4.33/modules/cache
-I/usr/src/httpd-2.4.33/modules/core
-I/usr/src/httpd-2.4.33/modules/database
-I/usr/src/httpd-2.4.33/modules/filters
-I/usr/src/httpd-2.4.33/modules/ldap
-I/usr/bld/httpd-2.4.33/server
-I/usr/src/httpd-2.4.33/modules/loggers
-I/usr/src/httpd-2.4.33/modules/lua
-I/usr/src/httpd-2.4.33/modules/proxy
-I/usr/src/httpd-2.4.33/modules/session
-I/usr/src/httpd-2.4.33/modules/ssl
-I/usr/src/httpd-2.4.33/modules/test
-I/usr/src/httpd-2.4.33/server
-I/usr/src/httpd-2.4.33/modules/md
-I/usr/src/httpd-2.4.33/modules/arch/unix
-I/usr/src/httpd-2.4.33/modules/dav/main
-I/usr/src/httpd-2.4.33/modules/generators
-I/usr/src/httpd-2.4.33/modules/mappers

What I'm pretty sure is, that the bad entry comes from your apr or apr-util.
You have build and installed apr and apr-util originally together with httpd.
So when apr-config is asked, what the include path for using it is, it returns
/usr/local/apache2/include, because that's where its own header files got
installed too.

So I suggest either to rebuild your new httpd using a separate apr and
apr-util, e.g. putting a recent one into the srclib sub directory of httpd
before building it, or building apr and apr-util completely separate and
installing it into a separate target directory, such that its header files get
not mixed with other headers in one directory.

Regards,

Rainer

-- 
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 62228] Compiler error in mod_proxy.c:2675

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

--- Comment #6 from Norton Warner <no...@gmail.com> ---
Pardon my ignorance, I'm not sure how to do that.

I did do a 'make -d A >/tmp/results.txt'

But it still has the --silent option on the libtool call.

/usr/local/apache2/build/libtool --silent --mode=compile gcc -std=gnu99  -g -O2
          -I. -I/usr/src/httpd-2.4.33/os/unix -I/usr/src/httpd-2.4.33/include
-I/usr/local/apache2/include -I/usr/local/apache2/pcre/include
-I/usr/src/httpd-2.4.33/modules/aaa -I/usr/src/httpd-2.4.33/modules/cache
-I/usr/src/httpd-2.4.33/modules/core -I/usr/src/httpd-2.4.33/modules/database
-I/usr/src/httpd-2.4.33/modules/filters -I/usr/src/httpd-2.4.33/modules/ldap
-I/usr/src/httpd-2.4.33/modules/loggers -I/usr/src/httpd-2.4.33/modules/lua
-I/usr/src/httpd-2.4.33/modules/proxy -I/usr/src/httpd-2.4.33/modules/session
-I/usr/src/httpd-2.4.33/modules/ssl -I/usr/src/httpd-2.4.33/modules/test
-I/usr/src/httpd-2.4.33/server -I/usr/src/httpd-2.4.33/modules/md
-I/usr/src/httpd-2.4.33/modules/arch/unix
-I/usr/src/httpd-2.4.33/modules/dav/main
-I/usr/src/httpd-2.4.33/modules/generators
-I/usr/src/httpd-2.4.33/modules/mappers -prefer-pic -c mod_proxy.c && touch
mod_proxy.slo

But I did notice within THat file several entries saying:
LIBTOOL = /usr/local/apache2/build/libtool $(LTFLAGS)
  and
LTFLAGS = --silent

Again, not sure where the --silent option is getting slammed in.

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