Homebrew-core: httpd-2.4.34 failed to build on 10.13.6 due to missing suexec

Created on 8 Aug 2018  路  5Comments  路  Source: Homebrew/homebrew-core

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • [X] are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh
  • [X] have a problem with brew install (or upgrade, reinstall) a single, official formula (not cask)? If it's a general brew problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
  • [X] ran brew update and can still reproduce the problem?
  • [X] ran brew doctor, fixed all issues and can still reproduce the problem?
  • [] ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
  • [X] if brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

Attempting to install httpd-2.4.34. Note this is related to #30069 which has been fixed but may be reoccurred due to my configuration. I have run through the troubleshooting process on the brew website.

Install logs attached in httpd.zip

 brew install httpd
==> Downloading https://www.apache.org/dyn/closer.cgi?path=httpd/httpd-2.4.34.tar.bz2
==> Best Mirror http://www-eu.apache.org/dist/httpd/httpd-2.4.34.tar.bz2
######################################################################## 100.0%
==> ./configure --enable-layout=Slackware-FHS --prefix=/Users/gmerrall/homebrew/Cellar/httpd/2.4.34 --sbindir=/Users/gmerrall/homebrew/Cellar/httpd/2.4.34/bin --mandi
==> make
==> make install
Last 15 lines from /Users/gmerrall/Library/Logs/Homebrew/httpd/03.make:
make[4]: Nothing to be done for `local-shared-build'.
Building shared: mod_heartbeat.la mod_heartmonitor.la
make[4]: Nothing to be done for `local-shared-build'.
Building shared: mod_dav.la
make[4]: Nothing to be done for `local-shared-build'.
Building shared: mod_status.la mod_autoindex.la mod_asis.la mod_info.la mod_suexec.la mod_cgid.la mod_cgi.la
make[4]: Nothing to be done for `local-shared-build'.
Building shared: mod_dav_fs.la
make[4]: Nothing to be done for `local-shared-build'.
Building shared: mod_dav_lock.la
make[4]: Nothing to be done for `local-shared-build'.
Building shared: mod_vhost_alias.la mod_negotiation.la mod_dir.la mod_actions.la mod_speling.la mod_userdir.la mod_alias.la mod_rewrite.la
make[4]: Nothing to be done for `local-shared-build'.

make: *** [install-recursive] Error 1

Here's the output from 03.make

Installing error documents
Installing header files
Installing icons
[PRESERVING EXISTING CGI SUBDIR: /Users/gmerrall/homebrew/var/www/cgi-bin]
make[2]: `suexec' is up to date.
chmod: /Users/gmerrall/homebrew/Cellar/httpd/2.4.34/bin/suexec: No such file or directory
make[1]: *** [install-suexec-setuid] Error 1
make[1]: *** Waiting for unfinished jobs....
$ brew config
HOMEBREW_VERSION: 1.7.1-154-g9f370a3
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 9f370a35767f9af94ab2c519770754421a82bcd6
Last commit: 29 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 678657865e8afff20872160152967c1fce1ec8f9
Core tap last commit: 15 hours ago
HOMEBREW_PREFIX: /Users/gmerrall/homebrew
HOMEBREW_REPOSITORY: /Users/gmerrall/homebrew
HOMEBREW_CELLAR: /Users/gmerrall/homebrew/Cellar
HOMEBREW_DEV_CMD_RUN: 1
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.7 => /Users/gmerrall/homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 9.1 build 902
Git: 2.15.2 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_151, 1.8.0_144, 1.8.0_131, 1.8.0_112, 1.8.0_91, 1.8.0_72, 1.8.0_60, 1.8.0_45
macOS: 10.13.6-x86_64
CLT: 9.4.1.0.1.1528165917
Xcode: N/A
XQuartz: 2.7.11 => /opt/X11
$ brew doctor
Unexpected dylibs:
  /usr/local/lib/LibSideSyncOSX9.dylib
  /usr/local/lib/liblzma.5.dylib
  /usr/local/lib/ss_conn_lib.dylib

Unexpected .pc files:
  /usr/local/lib/pkgconfig/fuse-ext2.pc

httpd.zip

outdated stale

Most helpful comment

I was able to successfully build it by running the install with --debug, entering a shell and manually typing 'make install'. Once that completed I ignored the error and the install finished.
Not sure of the significance of a manual install working but perhaps related to environment?

All 5 comments

I was able to successfully build it by running the install with --debug, entering a shell and manually typing 'make install'. Once that completed I ignored the error and the install finished.
Not sure of the significance of a manual install working but perhaps related to environment?

I've been having the same problem - thanks very much for reporting the workaround, which worked for me too. I'm also happy to share info that helps debug the issue.

The error is coming from this code in Makefile.in

install-suexec-setuid:
    @if test -f $(builddir)/support/suexec; then \
        chmod 4755 $(DESTDIR)$(sbindir)/suexec; \
    fi

can you locate suexec in the debugged shell ? As far as I can see DESTDIR should equal homebrew prefix and sbindir translates to {prefix}/opt/bin . @kev have you also installed homebrew in a non-default prefix ?

Yes, I'm in /usr/local/brew. I've currently got /usr/local/brew/bin/suexec and /usr/local/brew/Cellar/httpd/2.4.34/bin/suexec under there.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BluePawDev picture BluePawDev  路  3Comments

dredmorbius picture dredmorbius  路  3Comments

oli-laban picture oli-laban  路  3Comments

tglawless picture tglawless  路  3Comments

ghost picture ghost  路  3Comments