[MacPorts] #40396: apache2 fails to build when configure can't find zlib

MacPorts noreply at macports.org
Thu Sep 5 18:00:23 PDT 2013


#40396: apache2 fails to build when configure can't find zlib
-----------------------------------------+--------------------------------
 Reporter:  cmc@…                        |      Owner:  macports-tickets@…
     Type:  defect                       |     Status:  new
 Priority:  Normal                       |  Milestone:
Component:  ports                        |    Version:  2.2.0
 Keywords:  apache zlib httpd configure  |       Port:  apache2
-----------------------------------------+--------------------------------
 During the configure process, configure dies with
 {{{
 checking whether to enable mod_deflate... configure: error: mod_deflate
 has been requested but can not be built due to prerequisite failures
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_apache2/apache2/work/httpd-2.2.25"
 && ./configure --prefix=/opt/local/apache2 --with-
 apr=/opt/local/bin/apr-1-config --with-apr-
 util=/opt/local/bin/apu-1-config --libdir=/opt/local/lib --with-
 expat=/opt/local --with-pcre=/opt/local --mandir=/opt/local/share/man
 --enable-mods-shared=all --enable-authn-alias=shared --enable-ssl --with-
 ssl=/opt/local --enable-cache --enable-disk_cache --enable-file_cache
 --enable-mem_cache --enable-deflate --enable-proxy --enable-proxy-connect
 --enable-proxy-http --enable-proxy-ftp --with-mpm=prefork
 Exit code: 1
 Error: Failed to configure apache2, consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_apache2/apache2/work/httpd-2.2.25/config.log
 Error: org.macports.configure for port apache2 returned: configure
 failure: command execution failed
 Warning: targets not executed for apache2: org.macports.activate
 org.macports.configure org.macports.build org.macports.destroot
 org.macports.install
 Please see the log file for port apache2 for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_apache2/apache2/main.log
 }}}

 The configure script seems to only be looking in /usr and /usr/local for
 zlib.  Adding `–with-z=/opt/local` allows configure to complete.

-- 
Ticket URL: <https://trac.macports.org/ticket/40396>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list