You are not logged in.

#1 2012-04-07 12:32:23

sammy
Member
Registered: 2011-10-23
Posts: 3

[Solved] gcc 4.7 breaks passenger-install-nginx-module

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):

https://svn.boost.org/trac/boost/ticket/6165

Offline

#2 2012-04-10 19:22:35

jagot
Member
Registered: 2010-06-01
Posts: 3

Re: [Solved] gcc 4.7 breaks passenger-install-nginx-module

Can confirm that this works for passenger-install-apache2-module as well.

Offline

#3 2012-05-21 15:11:15

yellowjk
Member
From: Rhode Island
Registered: 2011-05-16
Posts: 18
Website

Re: [Solved] gcc 4.7 breaks passenger-install-nginx-module

I can confirm that this fixed my issues with passenger-install-apache2-module


Thinkpad T510 running x64 Arch
ThinkServer TS200V running x64 Arch

Offline

#4 2012-08-17 07:05:24

kfl62
Member
From: Luna de Sus, Cluj, Romania
Registered: 2011-10-03
Posts: 4

Re: [Solved] gcc 4.7 breaks passenger-install-nginx-module

Offline

Board footer

Powered by FluxBB