Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpd-2.4.34 failed to build on 10.13.6 due to missing suexec #30884

Closed
5 tasks done
gmerrall opened this issue Aug 8, 2018 · 5 comments
Closed
5 tasks done

httpd-2.4.34 failed to build on 10.13.6 due to missing suexec #30884

gmerrall opened this issue Aug 8, 2018 · 5 comments
Labels
outdated PR was locked due to age stale No recent activity

Comments

@gmerrall
Copy link

gmerrall commented Aug 8, 2018

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.

  • 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
  • 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.
  • ran brew update and can still reproduce the problem?
  • 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?
  • 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

@gmerrall
Copy link
Author

gmerrall commented Aug 8, 2018

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?

@Kev
Copy link

Kev commented Aug 13, 2018

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.

@javian javian mentioned this issue Aug 18, 2018
@javian
Copy link
Contributor

javian commented Aug 18, 2018

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 ?

@Kev
Copy link

Kev commented Aug 18, 2018

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.

@stale
Copy link

stale bot commented Sep 8, 2018

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

@stale stale bot added the stale No recent activity label Sep 8, 2018
@stale stale bot closed this as completed Sep 15, 2018
@lock lock bot added the outdated PR was locked due to age label Oct 15, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Oct 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age stale No recent activity
Projects
None yet
Development

No branches or pull requests

3 participants