[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

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

Similar Messages

  • HOW TO SOLVE THE R6034 ERROR IN ITUNES INSTALATION

    I need toknow how to solve the R6034 error in itunes instalation becouse y can´t buk up muy phone

    How to solve this ?
    #import <UIKit/UIKit.h>
    int main(int argc, char *argv[]) {
        NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
       -> int retVal = UIApplicationMain(argc, argv, nil, nil);
        [pool release];
        return retVal;

  • Will the penfailure be solved after changing the cartridges? Installing printer again did not help.

    Hp Print Diagnnostic Utility detected 'Pen Failure' I tried reinstalling printer driver again, checked cartridges installation for correctness, cleaned contact points but they did not help. Will the penfailure be solved after changing the cartridges? Installing printer again did not help.
    Rajein

    Yes, I did try it.
    I completely uninstalled Firefox (including personal settings, bookmarks, add-ons etc.) and then I installed Firefox 24 from scratch. The outcome is unchanged. Namely, it installs it and then right when it is about to start for the very first time, it hangs. If I run the task manager I can see the process firefox32. It shows as if it is running. But in fact it is hanging doing nothing. It is almost as if the process is waiting for something to happen and that never occurs. Note that this should not have anything to do with, say, an incompatible add-on/plug in because I had them all removed. I also removed adobe flash prior to the installation and run the malware removal program too.

  • How to solve this soft will be not installed because hp recovery cannot be found in your system

    how to solve this soft will be not installed because hp recovery cannot be found in your system
    i dont know how to solve this and i dont know how big company like HP didnot make solution for this problem 
    i hope to find solution for this problem 
    ( HP Pavilion dv6-6120se )  this is my computer name

    Hi,
    I can't see the image and may be won't be able to see it fox next 24hrs. You need Admin/moderator of this forum to approve it before other can see and today is a public holiday in the US.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • [SOLVED] Dualboot w7 + Arch ( where to install grub )

    Hello,
    I have win 7 already installed,
    now i want to install Archlinux on same disk, but on other partitions.
    My currently partiotion schema ( MBR ) looks like:
    /dev/sda1 win7
    /dev/sda2 reserverd for linux boot part
    /dev/sda3 reserverd for linux root
    I readed beginners guide, and the only one thing is not clear for me,
    beginners guide advises not to install grub on any partiorion only on disk's mbr /dev/sda
    I can not do that, because it will destroy my win7's mbr( partion table and so on )
    Earlier with this configuration i had sabayon linux installed,
    with grub on /dev/sda2, both systems booted with bcdedit and all worked fine.
    How can I solve this ( grub2 can not be installed in /dev/sdaX )
    Thanks for any help.
    Last edited by tangram (2013-11-18 09:55:29)

    tangram wrote:
    henk wrote:... Why do you personally think grub will update to /dev/sda? Do you know how grub works that well? ...
    I do not know, I felt it so, earlier linux experiences, maybe better I should write "I suppose".
    It is not a question of knowing grub. It is a question of knowing Arch. When pacman updates grub, it does not reinstall to disk, it does not generate a new configuration file and it does not, therefore, touch either the MBR or the BIOS boot partition or any installation to a partition or anything else. The most pacman will do is remind you to do these things, as necessary. And sometimes it does not even do that.
    This is why, for example, it is possible to maintain grub.cfg manually in Arch but not in most other distros. Because the system will never, ever run grub-mkconfig unless you tell it to. So a manually maintained configuration file will never be overwritten unless you overwrite it.
    The only boot manager/loader I know of where this is not the case is gummiboot and IMNSHO, that makes the gummiboot package a badly behaved one which fails to properly respect the local customs. (And I won't install gummiboot for essentially this reason.)
    That said, installing grub to a partition is not recommended because it is very easily broken. So I don't think you should do that. I'm just saying that if you did do it, no pacman upgrade would ever write to the MBR. Nor, for that matter, would it update the installation on the partition. It would do zilch to upgrade the actual installation of the boot loader - it would just update the package files in your system.
    Last edited by cfr (2013-11-03 03:15:34)

  • Fail installing perl modules in new sparc server

    Hi,
    I'm trying to install the perl modules needed by my applications in a sparc server SunFire V210 with solaris 9 64bit. All the attempts fail because the interpreter is compiled with forte, this is the explanation i got. I found a solution in CPAN called perlgcc but it doesn't work it build a bad Makefile, the file has a lot of mistakes. Perl.com people tell me to change parameters in the makefiles and Config.pm but it's very hard to find the correct values, i'm not sure i fix the correct things.still it doesn't work.
    I need an urgent solution it permits me to add modules without correction in the each makefile. I hope there is a standar procedure to solve it.
    Thanks!

    Hi,
    Here is your solution (I hope). I've being doing this this week and worked.
    Look the stuff is connected with the compilers used to complie perl and as you see later other stuff on the sun. At the sun the stuff is compiled with sun compiler which is not provided on the solaris 8, 9 nor 10. Fortunately there is gcc installed on the sol10.
    -bash-3.00# gcc --version<br />
    gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
    Copyright (C) 2004 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    -bash-3.00#
    The perl is compiled with sun compiler cc
    -bash-3.00# perl -V | more
    More
    Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
    More
    Platform:
    osname=solaris, osvers=2.10, archname=sun4-solaris-64int
    uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2'
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=unde
    f
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    Compiler:
    cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_T
    S_ERRNO',
    optimize='-xO3 -xspace -xildoff',
    cppflags=''
    ccversion='Sun WorkShop', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lsee
    ksize=8
    alignbytes=8, prototype=define
    Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
    Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.8.
    4/lib/sun4-solaris-64int/CORE'
    cccdlflags='-KPIC', lddlflags='-G'
    What to do??? Yes - you are on sol10 - then do it
    1. Logon as a root
    2. Check your path and compare with
    -bash-3.00# echo $PATH
    /usr/sbin:/usr/bin:/usr/sfw:/usr/sfw/bin:/usr/sfw/lib:/usr/s fw/include:/opt/sfw:
    /opt/sfw/bin:/opt/sfw/lib:/opt/sfw/include:/usr/ccs/bin:/usr /ccs/lib
    -bash-3.00#
    if differs upto the last /usr/ccs/lib modify your profile file ( anthing ofter the last /usr/ccs/lib can be aded).
    3. Check out the the comands
    gcc --version<br />
    perl -V
    4. If everything upto this step is ok you can proceed
    5. You may do the installation of the perl modules in two ways:
    a.) with CPAN module - Internet connection MANDATORY
    b.) with perl and downloaded tar.gz module
    5.a) With CPAN module
    5.a.1) Launch the command to configure the CPAN module
    perl -MCPAN -e shell
    you will be asked to give the answers inorder to configure CPAN
    5.a.2) When you see cpan> prompt do the following:
    o conf makepl_arg 'CC=gcc CCCDLFLAGS=-fPIC CCFLAGS=" " OPTIMIZE=" " LD=gcc' press return
    5.a.3) Type "o conf commit" press return. You may install your modules now with the install command e.g. install HTML::Parser for example.
    5.b.1) Download your modules from http://www.cpan.org to your server to /var/tmp/packed or whatever folder you want.
    5.b.2) unzip then untar and cd into subfolder
    5.b.3) type ./Makefile.PL -t 'CC=gcc CCCDLFLAGS=-fPIC CCFLAGS=" " OPTIMIZE=" " LD=gcc'
    5.b.4) Type make install
    6.) In both methods you have to check if the modules are installed by issuing the commnad:
    perl -e 'use Your::Module' e.g.
    perl -e 'use HTTP::Parser'
    if no error message on the term you are ready
    Rem. The differrences are in the flags used to compile and link with these two compilers sun cc and gnu cc. There are of course problems with 64bit values on sun64bit e.g. SPARC and Intel stuff cause Perl does not support real 64bit values yet. The Perl modules should use only floating point represetnation with around 53~bit precision. But this issue depends on the module creator not you if you do not want to do the remedy.
    I hope it will help you
    good luck

  • How to install memory modules on a macbook pro 15"

    I run Windows 7 via parallels desktop on my macbook pro. How do I type special characters on a Word document using the mac keyboard?

    how to install memory modules on a macbook pro 15"
    Read the manual / user guide that came with your comptuer or download it from http://support.apple.com/manuals/
    I run Windows 7 via parallels desktop on my macbook pro. How do I type special characters on a Word document using the mac keyboard?
    Post your question on the Paralells forums:  http://forums.parallels.com

  • Bridge cc 64bit ,can't install Output Module ,help

    hi
    why is so hard to install output module
    i did everything Install Adobe Output Module
    and when i close bridge and restart it asked me if i want to add the output module , i asnwer yes
    i have the outpot workspace ,but when i click on it , nothing ,,,
    i tried to delete the files of the output module , re-load brige cc ,close ->re -install the output module
    nothing i can't have the output module
    why is so hard to let it work ?
    may i ask ?
    do you think reset the preferences could help ?
    in this case, how can i backup them ?
    i run the last version of bridge cc ,photoshop cc 64bit under w8,1 pro 64bit
    thanks

    hi
    after reading around the forum without luck
    i found the solution  at least for windows
    well inside the AOM_Package_Win64  in my case because i installed only bridge 64bit
    there is
    Adobe Output Module
    AdobeOutputModule.workspace
    copy/extract the folder Adobe Output Module -> C:\Program Files\Common Files\Adobe\Bridge CC Extensions
    copy/extract the file AdobeOutputModule.workspace ->  C:\Program Files\Common Files\Adobe\Bridge CC Extensions\Workspaces
    start bridge

  • How to install Apache module mod_rewrite

    Kindly tell me, how to install Apache module mod_rewrite which is a standard module in the Oracle HTTP Server (OHS).. I have installed OAS(10.1.2) but mod_rewrite module is missing..
    Edited by: SrinivasanSeniorDBA on 26 Feb, 2010 2:42 PM

    Got it

  • Uninstall all CPAN-installed Perl modules

    A while back, there was a large perl upgrade which required rebuilding of manually-installed Perl modules. At the time, I did not take much of any action as I did not use any applications which depended on CPAN-installed modules -- all I did was to uninstall some older Perl apps which I no longer used.
    Unfortunately, that has recently changed.
    Though I know exactly which modules I need to have on my system when all is said and done, I have no idea how to uninstall all of the old ones which came from the CPAN shell. Does anyone know how to do so?

    rowdog wrote:
    Well, modules are just files so, if you're lucky, the easy way is to find the directory where the modules were installed and delete them.
    If you're unlucky, you've intermingled CPAN modules with those installed by Arch. If that's the case, you might be able to delete each module by hand but you need to be careful not to wipe out Arch's modules. This is slow and hazardous work so please be careful.
    My guess would be that the files are installed in /usr/lib/perl5/site_perl, because mine's empty and that's what it's for. The exact location is controlled by whatever you used to install the modules. (cpan probably, but there are others.)
    If you're really lucky, you can get away with
    cd /usr/lib/perl5/site_perl
    rm -rf .
    Yes, I do have such bad luck. I have used the CPAN.pm shell, the AUR, and pacman to install Perl modules. I shall do more research regarding exactly what goes where during a CPAN.pm-based install. I am not at my own computer so I cannot do all of this now. I will get back to you on this tomorrow. Thank you for your response.
    Last edited by Bushman (2011-07-31 13:10:00)

  • Install error "could not install some modules:"

    After I finsihed install I got some errors one was saying somthing exception related to Zip and then after second run I get
    Warning - could not install some modules:
         Core Modeling Library - The module named com.tomsawyer.module/1 was needed and not found.
         Core Modeling Library - The module named org.antlr.module/1 was needed and not found.
    I try to reinstall with the option "repair install" and after that I still get the same error.
    by the way I installed both jdk and the ide. I have an older jdk still on my computer.

    Thanks for response!
    To start the Application Server, open a terminal
    window
    or command prompt and execute the following:
    asadmin start-domain --verbose domain1 The comand window starts with C:\documents and settings\administrator, should I firstly change it to C:\ ? and how to change to C:\ ?
    Or, on Windows, you can choose
    Programs -> Sun Microsystems -> J2EE 1.4 SDK -> Start
    Default Server No, in my Programs menue, there's no Sun Microsystems.
    Says Starting and Stopping the Application Server
    chapter of The J2EE 1.4 Tutorial:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
    I browsed the tutorial, it doesn't provide such a trouble shooting.
    Are you sure that you have application server
    installed?Ths install procedure was successfully finished without any error message. Also, I can see J2EE is in my Control Pannel\ Add Remove\Program list.
    What should I do? Thanks!
    Jenny

  • How to De-install HRMS module in Oralce EBS 11.5.10.2

    Hi,
    Can some one please guide me, how to How to De-install HRMS module in Oralce EBS 11.5.10.2
    Thanks,

    Oracle Applications does not support deinstalling products once it is installed and licensed. So, there is no supported way to deintall HRMS.

  • How do I install the modules from Business Catalyst into Dreamweaver?

    They have changed things around compared to Dreamweaver 6. I have my website on the B.C. website, but don't know how to add the modules on Dreamweaver.

    Thanks for the reply. I already have the add on installed. I've had it installed and using it for a few months now. The issue is, unlike the previous version before DW CC, I was able to install the modules on my computer and open them up in D.W. and was able to add the modules to my pages through D.W.
    I'll look at the link again and see if that is what it's showing me what to do.

  • Bridge CC stopped working after installing Output Module. Uninstalled Bridge CC App, how reinstall?

    Bridge CC App wont start after installing output module. So uninstalled Bridge CC App and need to reinstall it. Ho to reinstall?

    So uninstalled Bridge CC App and need to reinstall it. Ho to reinstall?
    When having a subscription to Adobe CC you also should have the application Adobe Creative Cloud in you App folder.  Use thi application to download and install Bridge CC again.

  • SQL Developer will not start - could not install some modules

    I just installed the Java JDK 7u51 as well as the JRE 7u51. Following that I extracted SQL Developer to a fresh directory. When I open SQL Developer I get the following error message:
    Warning - could not install some modules:
    JDeveloper/NetBeans Bridge - The module named oracle.ide was needed and not found.
    Extensions Cache - The module named oracle.javaxide was needed and not found.
    Extensions Cache - The module named oracle.ide was needed and not found.
    Actions Bridge - The module named oracle.javatools was needed and not found.
    Actions Bridge - The module named oracle.ide was needed and not found.
    Any idea why I'm getting this message? I installed it on my laptop with no problem.

    What is the directory structure under you SQLDeveloper directory?
    Is should be something like tthe list below.   If it isn't something has gone wrong with your extraction.
    Directory of D:\progs\sqldeveloper-4.0.0.13.80-no-jre
    18/01/2014  11:59    <DIR>          .
    18/01/2014  11:59    <DIR>          ..
    14/12/2013  10:41    <DIR>          configuration
    14/12/2013  10:32    <DIR>          dataminer
    14/12/2013  10:32    <DIR>          dropins
    14/12/2013  10:32    <DIR>          dvt
    14/12/2013  10:32    <DIR>          equinox
    14/12/2013  10:32    <DIR>          external
    10/12/2013  13:28             1,404 icon.png
    14/12/2013  10:32    <DIR>          ide
    14/12/2013  10:32    <DIR>          javavm
    14/12/2013  10:32    <DIR>          jdbc
    14/12/2013  10:32    <DIR>          jdev
    14/12/2013  10:32    <DIR>          jlib
    14/12/2013  10:32    <DIR>          jviews
    14/12/2013  10:33    <DIR>          modules
    14/12/2013  10:33    <DIR>          netbeans
    14/12/2013  10:33    <DIR>          rdbms
    10/12/2013  13:28            23,580 readme.html
    14/12/2013  10:33    <DIR>          sleepycat
    10/12/2013  13:28               835 sqlcli
    10/12/2013  13:28               741 sqlcli.bat
    14/12/2013  10:33    <DIR>          sqldeveloper
    10/12/2013  13:28            82,944 sqldeveloper.exe
    10/12/2013  13:28                71 sqldeveloper.sh
    14/12/2013  10:33    <DIR>          sqlj
    14/12/2013  10:33    <DIR>          svnkit
    03/12/2013  00:30             6,426 view-source-paths.lis

Maybe you are looking for

  • Problem with windows and my monitor in after effects

    HI . before any thing excuse me for speeking english. i have a problem with windows in after effect in my monitor my monitor is 15.6 and resolution is 1366*768 for example when i open interpret footage window i can't see that complete and amount of s

  • AddressBook groups lost after migration to iCloud

    Hey everyone, just to share the solution with you. If bought my wife an iPad2 2 weeks ago and in order to allow for a smooth transition I upgraded her MacBook a week earlier to Mac OS X Lion and set up her iCloud account, i.e. I migrated her Mobile M

  • Bookmark Icon won't go away on homescreen

    I had an iPod Touch I was using for the past couple of years and then recently upgraded to an iPhone 3GS. I had a Digg bookmark icon that I deleted long ago. On my iPhone during every sync it always comes back. On the iPhone I always delete it but th

  • MY JPEG STILLS LOOK AWFUL!

    OK, Here's my deal... I am editing a photo-slide show for a photographer who has taken very high resolution photos and given them to me as JPEGS. After spending days composing an edit with key-frames (a la ken burns effect), I exported it only to lea

  • How to refresh or close graphics from forms

    I call two graphics from forms, through pl/sql. There are parameters in the forms to tune the graphics. But trying to refresh the graphics results in access violation and the graphics becomes a 'zombie'. Why is it possible ? How to avoid it ? null