#68321 closed defect (fixed)
apache2 @2.4.57 mod_proxy_html build failure on sonoma
Reported by: | dazzlee69 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), Schamschula (Marius Schamschula) | |
Port: | apache2 |
Description
Migrating ports to sonoma, port install apache2, fails when trying to build mod_proxy_html. Reports the following errors:
:info:build mod_proxy_html.c:425:51: error: no member named 'attrs_req' in 'struct _htmlElemDesc' :info:build if ((enforce > 0) && (desc != NULL) && (desc->attrs_req != NULL)) :info:build ~~~~ ^ :info:build mod_proxy_html.c:426:24: error: no member named 'attrs_req' in 'struct _htmlElemDesc' :info:build for (a = desc->attrs_req; *a; a++) :info:build ~~~~ ^ :info:build mod_proxy_html.c:433:25: error: call to undeclared function 'htmlAttrAllowed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] :info:build switch (htmlAttrAllowed(desc, (xmlChar*)*a, 2-enforce)) { :info:build ^ :info:build mod_proxy_html.c:434:22: error: use of undeclared identifier 'HTML_INVALID' :info:build case HTML_INVALID: :info:build ^ :info:build mod_proxy_html.c:439:22: error: use of undeclared identifier 'HTML_DEPRECATED' :info:build case HTML_DEPRECATED: :info:build ^ :info:build mod_proxy_html.c:444:22: error: use of undeclared identifier 'HTML_REQUIRED' :info:build case HTML_REQUIRED: :info:build ^ :info:build /opt/local/share/apr-1/build/libtool --silent --mode=link --tag=CC /usr/bin/clang -I/usr/local/include/libxml2 -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -L/opt/local/lib/db48 -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -o mod_ratelimit.la -rpath /opt/local/lib/apache2/modules -module -avoid-version mod_ratelimit.lo :info:build mod_proxy_html.c:894:19: error: use of undeclared identifier 'XML_PARSE_RECOVER' :info:build int xmlopts = XML_PARSE_RECOVER | XML_PARSE_NONET | :info:build ^ :info:build mod_proxy_html.c:894:39: error: use of undeclared identifier 'XML_PARSE_NONET' :info:build int xmlopts = XML_PARSE_RECOVER | XML_PARSE_NONET | :info:build ^ :info:build mod_proxy_html.c:895:19: error: use of undeclared identifier 'XML_PARSE_NOBLANKS' :info:build XML_PARSE_NOBLANKS | XML_PARSE_NOERROR | XML_PARSE_NOWARNING; :info:build ^ :info:build mod_proxy_html.c:895:40: error: use of undeclared identifier 'XML_PARSE_NOERROR' :info:build XML_PARSE_NOBLANKS | XML_PARSE_NOERROR | XML_PARSE_NOWARNING; :info:build ^ :info:build mod_proxy_html.c:895:60: error: use of undeclared identifier 'XML_PARSE_NOWARNING' :info:build XML_PARSE_NOBLANKS | XML_PARSE_NOERROR | XML_PARSE_NOWARNING; :info:build ^ :info:build mod_proxy_html.c:998:31: error: call to undeclared function 'xmlCtxtUseOptions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] :info:build if (xmlopts = xmlCtxtUseOptions(ctxt->parser, xmlopts), xmlopts) :info:build ^ :info:build 12 errors generated.
This is with Xcode 15 on OSX 14.0 Sonoma
If there is a temporary way to build without that module, happy to try that. Other modules appear to compile fine before it gets to that one.
Thanks, Darren
Attachments (1)
Change History (7)
comment:1 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
On my Monterey system I get:
checking whether to enable mod_proxy_html... checking dependencies checking for libxml2... (cached) no checking whether to enable mod_proxy_html... no (disabled)
comment:3 Changed 14 months ago by Schamschula (Marius Schamschula)
I see the same under Sonoma. I got a clean build.
comment:4 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
Your log says:
:info:configure checking for libxml2... checking for libxml2... yes :info:configure setting MOD_CFLAGS to "-I/usr/local/include/libxml2" :info:configure setting MOD_XML2ENC_LDADD to "-lxml2" :info:configure checking whether to enable mod_xml2enc... shared (all) :info:configure checking whether to enable mod_proxy_html... checking dependencies :info:configure checking for libxml2... (cached) yes :info:configure setting MOD_PROXY_HTML_LDADD to "-lxml2" :info:configure checking whether to enable mod_proxy_html... shared (all)
Remove what you have in /usr/local. See wiki:FAQ#usrlocal. Then sudo port clean apache2
and try again.
We should improve the apache2 port so that it does not attempt to find libxml2 there. Or, we should enable mod_proxy_html and have it find MacPorts libxml2 and fix the compile problems, if mod_proxy_html is useful.
comment:5 Changed 14 months ago by dazzlee69
Ah yes, sorry, I have brew, ports and lots of history on my laptop.
Removing that has allowed apache2 to compile and install cleanly.
I would agree that as mac ports should only use /opt/local, it should not look outside of there for other things, but I'm good for now.
Thanks, Darren
comment:6 Changed 14 months ago by Schamschula (Marius Schamschula)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Added libxml2
dependency in [a0b8ba3266b629cc29832d5692552176ba6db406/macports-ports].
Please attach the main.log file.