You are not logged in.
I needed to recompile nginx with some different options, but since upgrading to gcc 4.7 running passenger-install-nginx-module always gives the following compilation error:
g++ -Iext -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx" -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<hash_fun.h>" -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o ext/common/libboost_oxt/aggregate.o -c ext/common/libboost_oxt/aggregate.cpp
In file included from ext/boost/thread/detail/platform.hpp:17:0,
from ext/boost/thread/once.hpp:12,
from ext/boost/src/pthread/once.cpp:7,
from ext/common/libboost_oxt/aggregate.cpp:5:
ext/boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
Upgrading to latest gems made no difference.
This took me ages to find a workaround so for anyone who has this problem here is a description of the problem and how to resolve the issue (you will need to edit the file /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/ext/boost/config/stdlib/libstdcpp3.hpp):
Offline
Can confirm that this works for passenger-install-apache2-module as well.
Offline
I can confirm that this fixed my issues with passenger-install-apache2-module
Thinkpad T510 running x64 Arch
ThinkServer TS200V running x64 Arch
Offline
Good to know
If you get a "TIME_UTC" compatability issue
Passenger's boost version fails to compile,
read more: Unable to compile applications using boost_thread since updating boost
Offline