Opened 9 years ago

Closed 9 years ago

#49409 closed defect (fixed)

nginx @1.9.5: error: invalid option "--with-http_spdy_module"

Reported by: zoonman (Philipp) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: nginx

Description

bash-3.2# port info nginx
nginx @1.9.5 (www, mail)
Variants:             addition, dav, davext, debug, degradation, devel_kit, [+]flv, geoip, google_perftools, gzip_static, http_push, image_filter, lua, mail, [+]mp4, perl5, random_index, realip, redis, rtmp,
                      [+]secure_link, spdy, [+]ssl, status, stream, substitution, universal, upload, upload_progress, xslt, zip

Description:          Nginx ("engine x") is a high-performance HTTP(S) server and reverse proxy, as well as an IMAP/POP3 proxy server. Nginx was written by Igor Sysoev for Rambler.ru, Russia's second-most
                      visited website, where it has been running in production for over two and a half years. Igor has released the source code under a BSD-like license. Although still in beta, Nginx is known
                      for its stability, rich feature set, simple configuration, and low resource consumption.
Homepage:             http://nginx.org/

Library Dependencies: pcre, zlib, openssl
Platforms:            darwin
License:              BSD
Maintainers:          cal@macports.org, openmaintainer@macports.org


bash-3.2# port upgrade outdated
--->  Computing dependencies for nginx
--->  Configuring nginx
Error: org.macports.configure for port nginx returned: configure failure: command execution failed
Please see the log file for port nginx for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nginx/nginx/main.log
Error: Unable to upgrade port: 1

bash-3.2# cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nginx/nginx/main.log
version:1
:msg:main --->  Computing dependencies for nginx:info:main .:debug:main nginx has no conflicts
:debug:main Searching for dependency: pcre
:debug:main Found Dependency: receipt exists for pcre
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:debug:main Searching for dependency: openssl
:debug:main Found Dependency: receipt exists for openssl
:msg:main 
:debug:main Executing org.macports.main (nginx)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:main Skipping completed org.macports.archivefetch (nginx)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (nginx)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (nginx)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (nginx)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (nginx)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Fri Oct 23 22:40:47 EDT 2015
:notice:configure --->  Configuring nginx
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (nginx)
:debug:configure Environment: 
CC='/usr/bin/clang'
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nginx/nginx/work/.CC_PRINT_OPTIONS'
CFLAGS='-pipe -Os -arch x86_64'
CPATH='/opt/local/include'
CPPFLAGS='-I/opt/local/include'
CXX='/usr/bin/clang++'
CXXFLAGS='-pipe -Os -arch x86_64 -stdlib=libc++'
F77FLAGS='-m64'
F90FLAGS='-pipe -Os -m64'
FCFLAGS='-pipe -Os -m64'
FFLAGS='-pipe -Os'
INSTALL='/usr/bin/install -c'
LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.10'
OBJC='/usr/bin/clang'
OBJCFLAGS='-pipe -Os -arch x86_64'
OBJCXX='/usr/bin/clang++'
OBJCXXFLAGS='-pipe -Os -arch x86_64 -stdlib=libc++'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nginx/nginx/work/nginx-1.9.5" && ./configure --prefix=/opt/local --with-cc-opt="-I/opt/local/include -Os" --with-ld-opt="-L/opt/local/lib -Wl,-headerpad_max_install_names" --conf-path=/opt/local/etc/nginx/nginx.conf --error-log-path=/opt/local/var/log/nginx/error.log --http-log-path=/opt/local/var/log/nginx/access.log --pid-path=/opt/local/var/run/nginx/nginx.pid --lock-path=/opt/local/var/run/nginx/nginx.lock --http-client-body-temp-path=/opt/local/var/run/nginx/client_body_temp --http-proxy-temp-path=/opt/local/var/run/nginx/proxy_temp --http-fastcgi-temp-path=/opt/local/var/run/nginx/fastcgi_temp --http-uwsgi-temp-path=/opt/local/var/run/nginx/uwsgi_temp --with-ipv6 --with-http_flv_module --with-http_mp4_module --with-http_secure_link_module --with-http_ssl_module --with-http_spdy_module'
:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nginx/nginx/work/nginx-1.9.5" && ./configure --prefix=/opt/local --with-cc-opt="-I/opt/local/include -Os" --with-ld-opt="-L/opt/local/lib -Wl,-headerpad_max_install_names" --conf-path=/opt/local/etc/nginx/nginx.conf --error-log-path=/opt/local/var/log/nginx/error.log --http-log-path=/opt/local/var/log/nginx/access.log --pid-path=/opt/local/var/run/nginx/nginx.pid --lock-path=/opt/local/var/run/nginx/nginx.lock --http-client-body-temp-path=/opt/local/var/run/nginx/client_body_temp --http-proxy-temp-path=/opt/local/var/run/nginx/proxy_temp --http-fastcgi-temp-path=/opt/local/var/run/nginx/fastcgi_temp --http-uwsgi-temp-path=/opt/local/var/run/nginx/uwsgi_temp --with-ipv6 --with-http_flv_module --with-http_mp4_module --with-http_secure_link_module --with-http_ssl_module --with-http_spdy_module 
:info:configure ./configure: error: invalid option "--with-http_spdy_module"
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nginx/nginx/work/nginx-1.9.5" && ./configure --prefix=/opt/local --with-cc-opt="-I/opt/local/include -Os" --with-ld-opt="-L/opt/local/lib -Wl,-headerpad_max_install_names" --conf-path=/opt/local/etc/nginx/nginx.conf --error-log-path=/opt/local/var/log/nginx/error.log --http-log-path=/opt/local/var/log/nginx/access.log --pid-path=/opt/local/var/run/nginx/nginx.pid --lock-path=/opt/local/var/run/nginx/nginx.lock --http-client-body-temp-path=/opt/local/var/run/nginx/client_body_temp --http-proxy-temp-path=/opt/local/var/run/nginx/proxy_temp --http-fastcgi-temp-path=/opt/local/var/run/nginx/fastcgi_temp --http-uwsgi-temp-path=/opt/local/var/run/nginx/uwsgi_temp --with-ipv6 --with-http_flv_module --with-http_mp4_module --with-http_secure_link_module --with-http_ssl_module --with-http_spdy_module 
:info:configure Exit code: 1
:error:configure org.macports.configure for port nginx returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
    while executing
"portconfigure::configure_main org.macports.configure"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:configure Warning: targets not executed for nginx: org.macports.install org.macports.configure org.macports.build org.macports.destroot
:notice:configure Please see the log file for port nginx for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nginx/nginx/main.log


# uname -a
Darwin zmMac.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep  1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64

# xcode-select --version
xcode-select version 2339.

# gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin14.5.0
Thread model: posix


Change History (5)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: nginx removed
Owner: changed from macports-tickets@… to cal@…
Port: @1.9.5 removed
Summary: nginx update fails during port upgrade outdatednginx @1.9.5: error: invalid option "--with-http_spdy_module"

comment:2 Changed 9 years ago by zoonman (Philipp)

Is there any way I could help?

comment:3 Changed 9 years ago by zoonman (Philipp)

I found that option here:

/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/www/nginx/Portfile:218

If I change that file & try re-run upgrade will it help? Or there is different way to debug?

comment:4 Changed 9 years ago by zoonman (Philipp)

It seemed helps. I commented Portfile like this:

#    configure.args-append   --with-http_spdy_module

restarted port upgrade and it built nginx.

comment:5 Changed 9 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

Fixed in r142145 by superseding +spdy with +http2.

Note: See TracTickets for help on using tickets.