[resolved]Problem compiling apps after gcc upgrade

Hi all,
I've recently upgraded gcc to the last version, but since I've got errors as soon as I try to compile apps with optimisation enabled.
Here is an exemple:
File main.cpp:
#include <iostream>
using namespace std;
int main(int argc, char** argv)
cout << "Hello World" << endl;
return 0;
then
bash# g++ -O main.cpp
/tmp/ccZDcDGc.o: In function `main':
main.cpp:(.text+0x93): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
collect2: ld a retourné 1 code d'état d'exécution
Do I need to upgrade another package? (I've upgraded gcc, gcc-libs and libstdc++5)
Last edited by bountykiller (2007-10-11 21:12:12)

see guys
vlad@minerva:~/apps/compiling.dir/openbox/panels-launcher/wbar-1.3 $ make
g++ `imlib2-config --cflags` -Wall -O2 -DCOOLMACHINE_N_SHITCODE -DAVGFILTER -c -o XWin.o XWin.cc
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../include/c++/4.2.1/bits/char_traits.h:46,
from /usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../include/c++/4.2.1/string:47,
from XWin.h:6,
from XWin.cc:4:
/usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../include/c++/4.2.1/bits/stl_algobase.h:72:34: error: /usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../include/c++/4.2.1/bits/cpp_type_traits.h: Permission denied
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../include/c++/4.2.1/string:48,
from XWin.h:6,
from XWin.cc:4:
/usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../include/c++/4.2.1/memory:54:28: error: /usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../include/c++/4.2.1/bits/allocator.h: Permission denied
/usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../include/c++/4.2.1/memory:58:39: error: /usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../include/c++/4.2.1/bits/stl_raw_storage_iter.h: Permission denied
In file included from XWin.h:6,
from XWin.cc:4:
/usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../include/c++/4.2.1/string:58:35: error: /usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../include/c++/4.2.1/bits/basic_string.tcc: Permission denied
In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../include/c++/4.2.1/bits/stl_algobase.h:73,
this should give you enough clue

Similar Messages

  • I cannot download sny apps after i upgrade to IOS6 ,message keep telling me ' Your session has timed out. Try again. I need help ����

    cannot download sny apps after i upgrade to IOS6 ,message keep telling me ' Your session has timed out. Try again. I need help  

    From Apple Support...
    Here are troubleshooting steps that should help you fix the problem.
    1) Quit App Store in multi-tasking.
    2) Tap Settings.
    3) Tap Safari.
    4) Tap Clear History.
    5) Tap the Clear History button.
    6) Tap Clear Cookies and Data.
    7) Tap the Clear Cookies and Data button.
    Try purchasing an app again from the device to get the security question prompt. You really need to set up the security question.
    ...it seems to have worked for me.....

  • Amazon Apps after Lollipop upgrade

    I can't sign into any Amazon app after upgrade to lollipop.  My keyboard won't pop up to enter the email address of the account.  Anyone else have this problem?

    This is coming off a factory reset, so that should be the problem.  Tried anyway and didn't work.  Can't uninstall and reinstall app because its a factory app.

  • Problem with Java after System Upgrade to 10.5.7

    Hi,
    I am facing problem with Java after having run Software upgrades.
    Here is the whole story. I recently moved to iMac 10.5.6 from PowerPc 10.4. On this new machine I was having problem running a 3rd party application, which requires JVM. As this application worked well on Tiger, I decided to upgrade JVM on my iMAC using Software Upgrade(was I insane!!). As I like my systems to be updated (as with linux on my personal machine) I clicked "install all". As a result I have the following upgrades run on my machine:
    2009-05-20 13:12:01 +0200: Installed "Mac OS X Update Combined" (10.5.7)
    2009-05-20 13:12:10 +0200: Installed "Remote Desktop Client Update" (3.2.2)
    2009-05-20 13:12:26 +0200: Installed "Java For Mac OS X 10.5 Update 2" (1.0)
    2009-05-20 13:58:36 +0200: Installed "Java for Mac OS X 10.5 Update 3" (1.0)
    2009-05-20 13:58:44 +0200: Installed "AirPort Utility Software Update 2009-001" (5.4.1)
    2009-05-20 13:59:07 +0200: Installed "QuickTime" (7.6)
    2009-05-20 13:59:22 +0200: Installed "iPhoto Update" (7.1.5)
    2009-05-20 13:59:28 +0200: Installed "iLife Support" (9.0.2)
    2009-05-20 13:59:38 +0200: Installed "iDVD Update" (7.0.3)
    2009-05-20 13:59:58 +0200: Installed "iTunes" (8.1.1)
    But now, simply running $ java on the prompt hangs, i.e. it takes no action.
    $ which java
    /usr/bin/java
    $ ls -ltr /usr/bin/java
    May 20 15:09 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
    $java (no response)
    Here is the output of $ top
    PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
    703 java 98.8% 0:38.54 3 110 72 480K 184K 1964K 40M
    Any clues?
    cheers

    Hi man,
    In the wake of this java problem I resorted to keep working on my old machine, and today in my spare time I tried to fix this new machine.
    So I execute $java on prompt, and then try to check the files it has opened, using lsof -p pid
    I see it referring to
    /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java
    isn't this usually the JAVA_HOME
    However, executing $/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java
    hangs!!
    but
    $/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java
    works!!
    $ pwd
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin
    $ ./java -version
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
    Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
    So, I changed the links as follows
    borgraf:Versions raveesh$ l
    total 72
    drwxr-xr-x 3 root wheel 102 Mar 6 2008 1.3.1
    lrwxr-xr-x 1 root wheel 3 May 21 19:42 1.4.1 -> 1.4
    drwxr-xr-x 8 root wheel 272 May 21 19:42 1.6.0
    lrwxr-xr-x 1 root wheel 3 May 21 19:44 OldCurrentJDK -> 1.5
    lrwxr-xr-x 1 root wheel 5 May 21 19:44 1.4 -> 1.4.2
    lrwxr-xr-x 1 root wheel 5 May 21 19:44 1.3 -> 1.3.1
    lrwxr-xr-x 1 root wheel 5 May 21 19:44 1.5 -> 1.5.0
    drwxr-xr-x 8 root wheel 272 May 21 19:44 1.4.2
    drwxr-xr-x 8 root wheel 272 May 21 19:44 1.5.0
    lrwxr-xr-x 1 root wheel 5 May 21 19:44 1.6 -> 1.6.0
    lrwxr-xr-x 1 root wheel 1 May 21 19:44 OldCurrent -> A
    drwxr-xr-x 8 root wheel 272 May 21 19:44 A
    lrwxr-xr-x 1 root wheel 3 Jun 4 17:14 CurrentJDK -> 1.6
    lrwxr-xr-x 1 root wheel 3 Jun 4 17:21 Current -> 1.6
    Linking my Current and CurrentJDK to 1.6 and it works!
    However, shall that be the reason!
    what is in your /Versions/Current/
    I got the following
    $ ls /System/Library/Frameworks/JavaVM.framework/Versions/Current
    CodeResources Frameworks JavaVM
    Commands Headers Resources
    There is no /Home in here, which is usually the case for /1.5 or /1.6
    Anyways, things seems to work for the moment. Lets see if I get problem with using Java.
    thanks

  • Problems with games after leopard upgrade

    After i upgraded to leopard iv been having trouble with some games (like bf 2142), they wont open, as soon as i click on the game it quits right away, anyone having this problem too? or anyone have any solutions??
    :?

    Good morning Mogens Pedersen
    Thanks for using our forum
    I am a Cisco network support engineer, I have a recommendation, before you  upgrade any device in the future. Always keep in mind to make a backup of your data, in this way if you have to reset the device to factory settings you will not lose that information. Having said that, reset the router to the fabric configuration using the back little button, remember when you do that, you are going to loose your current configuration.
    Also here I leave a link for you to download the firmware rescue utility for your router:
    http://www.cisco.com/cisco/software/release.html?mdfid=282414010&release=4.0.0.7&relind=AVAILABLE&softwareid=282465800&rellifecycle=&reltype=latest
    I hope you find this answer useful, if it was satisfactory  for you, please mark the question as Answered
    and please rate helpful posts 
    Greetings,
    Johnnatan Rodriguez Miranda.
    Cisco network support engineer

  • Problems with rv042g after software upgrade

    after software upgrade it reboot the router about every 45 sec
    I've tried this tool from the Cisco website RV0xxV3_FirmwareRescueUtility_v4.0.0.7 without success, the problem is there, is a way you can get the router up and running again ?
    Can i run a TFTP server and upload a new software, or i ther a FirmwareRescueUtility for rv042g ??
    Mogens from Demmark

    Good morning Mogens Pedersen
    Thanks for using our forum
    I am a Cisco network support engineer, I have a recommendation, before you  upgrade any device in the future. Always keep in mind to make a backup of your data, in this way if you have to reset the device to factory settings you will not lose that information. Having said that, reset the router to the fabric configuration using the back little button, remember when you do that, you are going to loose your current configuration.
    Also here I leave a link for you to download the firmware rescue utility for your router:
    http://www.cisco.com/cisco/software/release.html?mdfid=282414010&release=4.0.0.7&relind=AVAILABLE&softwareid=282465800&rellifecycle=&reltype=latest
    I hope you find this answer useful, if it was satisfactory  for you, please mark the question as Answered
    and please rate helpful posts 
    Greetings,
    Johnnatan Rodriguez Miranda.
    Cisco network support engineer

  • Problems with apps after 3.1 upgrade

    After upgrading to 3.1 none of my downloaded apps will work on my phone. What's up with that?

    Try backing up your phone, restore it, then sync your apps back to the phone.

  • 3rd party apps after Mavericks upgrade.

    Hi I'm using Mountain Lion right know but would like to upgrade to Mavericks.
    Got some 3rd party apps installed ( MS Office , Adobe stuff, Reason, etc. )
    Will I have to install it again after upgrade or will it stay like it is ?
    Thanks for answers.

    Should be Ok. The only problem I have with 3rd party software is with Epson Scan, Till Apple fix this I can't use my scanner. I also had to log out of Spotify, and log back in again before it streamed reliably.

  • Can't restore my music and apps after ios5 upgrade on 3GS

    I have an ipone 3GS 16 GB and a Macbook pro 13''. I did the ios5-upgrade yesterday, which worked fine but the sync didn't work through. All my Apps are empty although I see their pics and there's no music at all, only the recent potos available, no albums. I tried the sync several times, nothing different, it always shut down at the end of preparations for sync. I shut the pone down and restarted it new, no change. So, what happened, how can I make the complete sync happen?

    Hi,
    thanks for your recommendations, but I solved the problem   Thing was ONE photo file, which is probably corrupted and led to shutting down the sync. So I first skipped the 'latest entrys for the last 12 month' photos and all the other photo files during syncing and then added one file after another and finally found the one which had gone bad. So I'm going to delete this one and everything should work fine the next time (hopefully) ....

  • IPhone Sync Problems with VISTA After iTunes Upgrade to 7.4

    Upon upgrading to iTunes 7.4 I was unable to sync my Outlook calendar or contacts to the iPhone. Called Apple Support that they seemed to know nothing about this problem general problem despite all of the discussions on this and many other tech. boards.
    After being told remove and reinstall iTunes and Outlook, set-up a new user account, etc... (none of which worked) I finally concluded that perhaps the .pst file being used by outlook was simply incompatible with iTunes for some reason (e.g. unsupported recurring calendar items).
    SOLUTION: Create a new outlook .pst data file. Once created, open up that new file along with the defective .pst file. Then, simply change the view of calendars and contacts in your old calendar such that you can see all of the items in a list. Highlight the items you want to keep and simply click-and-drag them to the nes .pst file. This solves all of the sync. problems I had post-7.4 upgrade. It takes less than 3 minutes to complete this painless fix.
    This was so annoying for me that I'd be happy to help someone complete this simple task if they need help. < Edited by Host, for your protection, no personal information please. >

    Then it would appear to be an issue with your router. What router? Model? Is the firmware up to date?

  • Wifi problems on Macbook after Yosemite upgrade

    I am having very serious problems with wifi connectivity of my Macbook Pro Retina after upgrading for OS X 10.10 by the end of October .
    Of course this has a great impact on system usability since almost exclusively use wifi to connect to the network.
    I must say I never expected that in Apple world a problem of this magnitude take so long to solve!
    After trying various proposed solutions without result, two weeks ago in a user forum I found a simple turn around that effectively minimizes the problem on my Macbook.
    Deactivating Bluetooth Wifi connectivity becomes less unstable and can work continuously with the networked PC. There continues to be an abnormally high rate of errors affecting eg Time Machine but the wifi connection does not drop.
    It's a little ridiculous I can not use my Magic Mouse but it is less problematic that not to have Network!
    But someone can direct me to a date that provides for the effective resolution of this problem by Apple? Or at least that the problem has been recognized and is being done something to fix it?
    My system is yet under warrant. Should I activate the warranty and ask for the replacement of the Macbook? From what I've read not all users have this problem with Yosemite.
    Can someone please explain to me the reasons why I have the problem and others with theoretically equal machines do not have it (it that is the case)?
    Thanks in advance,
    Fernando Ribeiro

    I installed last OS X update, 10.10.3, and the problem is completely solved.
    The problem, Wifi+Bluetooth, is clearly addressed on the update notes.
    Now I am working with Magic Mouse, Bluetooth, while navigating on the Internet via Wifi.
    Thanks

  • [SOLVED] Problems autostarting xbmc after nvidia upgrade

    Hello!
    With nvidia version 302.17-1 and with 302.17.2 xorg errors and fails when autostarting xbmc.:
    Here is my Xorg.0.log: https://gist.github.com/3118969
    Here is my xorg.conf:
    https://gist.github.com/3118996
    But downgrading nvidia and nvidia-utils to version 295.59 makes everything work again.
    So is this considered as a bug or can I change my configuration to make it work with latest nvidia drivers?
    My graphics card is PCI and not PCIe, maybe there is some problem with old PCI cards?
    I am now using standard xbmc package in repositories (earlier I used xbmc-pvr-git but I changed to standard xbmc to see if it was a problem even without using AUR packages).
    Last edited by ronnylov (2012-07-17 14:04:32)

    Thanks. But I got another problem now because I can't upgrade from nvidia 295.59 to the latest version. There is some kind of dependency problem, probably because of the switch from /lib to /usr/lib.
    [ronny@htpc ~]$ sudo pacman -Syu
    Lösenord:
    :: Synkroniserar paketdatabasen...
    core är senaste versionen
    extra är senaste versionen
    community är senaste versionen
    :: Påbörjar full systemuppgradering...
    löser beroenden...
    letar efter inre konflikter...
    Mål (3): cairo-1.12.2-2 nvidia-302.17-2 nvidia-utils-302.17-1
    Total Installationsstorlek: 54,02 MiB
    Nettouppgraderingsstorlek: 0,69 MiB
    Fortsätt med installation? [Y/n]
    (3/3) kontrollerar paketintegritet [######################] 100%
    (3/3) laddar paketfiler [######################] 100%
    (3/3) kontrollerar filkonflikter [######################] 100%
    fel: misslyckades att påbörja överföringen (motstridiga filer )
    nvidia: /usr/lib/modules/extramodules-3.4-ARCH/nvidia.ko.gz existerar i filsystemet
    Fel uppstod, inga paket uppgraderades.
    [ronny@htpc ~]$
    Trying to following the info  here https://wiki.archlinux.org/index.php/De … iki:usrlib:
    [ronny@htpc ~]$ grep '^lib/' /var/lib/pacman/local/*/files
    /var/lib/pacman/local/nvidia-295.59-1/files:lib/
    /var/lib/pacman/local/nvidia-295.59-1/files:lib/modules/
    /var/lib/pacman/local/nvidia-295.59-1/files:lib/modules/extramodules-3.4-ARCH/
    /var/lib/pacman/local/nvidia-295.59-1/files:lib/modules/extramodules-3.4-ARCH/nvidia.ko.gz
    OK the old package installed files in the wrong place when I downgraded nvidia after the update to /usr/lib.
    These packages need rebuilding so as not to include the /lib directory. They can also simply be uninstalled and reinstalled again after upgrading glibc.
    So I try to uninstall nvidia and nvidia-utils:
    [ronny@htpc ~]$ sudo pacman -Rs nvidia nvidia-utils
    Lösenord:
    kontrollerar beroenden...
    fel: misslyckades att förbereda överföring (kunde inte tillfredställa beroenden)
    :: libva: behöver libgl
    :: mesa: behöver libgl
    :: mplayer: behöver libgl
    :: xorg-xdriinfo: behöver libgl
    OK then uninstall these packages as well...
    [ronny@htpc ~]$ sudo pacman -Rs nvidia nvidia-utils libva mesa mplayer xorg-xdriinfo
    kontrollerar beroenden...
    fel: misslyckades att förbereda överföring (kunde inte tillfredställa beroenden)
    :: ffmpeg: behöver libva
    :: freeglut: behöver mesa
    :: glew: behöver mesa
    :: gnome-mplayer: behöver mplayer
    :: vdpau-video: behöver libva
    :: xbmc: behöver libva
    :: xorg-utils: behöver xorg-xdriinfo
    and I get even more dependency problems.. I am a little bit new on this but do I need to reinstall almost everything just to uninstall a video driver? I just want to replace the old driver with the new one...
    I think I need a hint of how to solve my problem. Perhaps this thread belongs somewhere else in the forum?
    Last edited by ronnylov (2012-07-17 11:01:31)

  • Problems with wifi after lion upgrade 10.7.2 but only at home

    HI, my wifi conection was problemless till I upgraded to lion 10.7.2. After that, it is impossible to connect through airport but only in my home´s wifi. Other computers work at home (including my iphone) and my macbook pro connects everywhere else with no problem but it doesn´t at home. Inmediately after choosing the desired conection it says: Not posible to conect due to conection time run out (or something like that).
    Any help?

    Then it would appear to be an issue with your router. What router? Model? Is the firmware up to date?

  • Problems with apps after iOS 6 update

    I updated my iPhone two days ago and nearly nothing is working any more. Can't use the weather app, passbook doesn't work at all and don't want to talk about the maps. Also most of apps like facebook does not work or are incredibly slow. Does anyone has the same issues?

    Yes.  Sort of.  Most of my apps work - and I received LOTS of notices for app upgrades I assume to be compatible with the newest OS upgrade.  I am not having any problems with the maps - in fact like it much better than the google maps.  I hope I am not jinxing myself considering I only used it once so far.
    Issues I'm having on my 4s since the update: battery draining like crazy.  Example ore upgrade I charge my battery every evening before I go to bed.  Then I unplug it and keep it next to me on my nightstand.  When I would wake up in the morning I would have about 95% battery remaining.  That is without anything running in the background except mail.  With upgrade SAME scenario I now wake up and have 25% remaining.
    Can't get in passbook at all even with the so called date change work around.  Absolutely useless!!!! That was probably the biggest change of the upgrade and can't use it.
    Have errors - cannot connect to iTunes Store when trying to access App Store.  Weird because the iTunes Store and App Store are 2 different things.  I can access the iTunes Store.  I can't access the App Store.
    Very frustrating!

  • I lost my GoodReader software app after i upgraded to iOS 5. How can I restore/find it?

    I forgot to mention that i was upgrading my ipad 2 to iOs 5. after it was done I could not longer find my GoodReader.
    Any suggestions on how to recover it would be appreciated.

    You should be able to re-download it via the Purchased tab in the App Store app on your iPad. If you updated the iPad via your computer's iTunes then was the app in the Apps part of your computer's iTunes library ? A backup doesn't contain your apps, just their content and settings, so for a restore to copy back an app, that apps need to be in your library.

Maybe you are looking for

  • How to integrate a flex build in a web application running on jBoss 5.1

    Hi, I have two flex builds for a messaging application that I have to integrate with my web application running on Jboss 5.1 . I have tried hot deploying the builds into the default deploy folder of Jboss,but that approach doesn't seem to work(maybe

  • How to open local system folder from the browser

    Hi All, I'm working on some stuff, wherein the user downloads the files from internet to his local machine. I'm able to catch the path of the folder where user wants to download the file from SaveAs prompt. Now my requirement is , i want to provide a

  • No Signal to External Monitor

    I use KDE and have a HP ProBook 6560b with a dock/port replicator.  My problem is that signal to my external monitor doesn't automatically work on login rather it be via VGA or DVI (currently hooked up over DVI).  I tinkered around with it and got it

  • Uninstalling only Quicktime not iTunes

    First, I installed iTunes with Quicktime. Can I only uninstall Quicktime and not uninstall iTunes. If not, how can I back up my songs and videos on iTunes and put them back?

  • Query tuning : you can do it yourself

    Hello, This thread is not a question. How tune my query ? My query didn't use indexes why ? I have indexes on table, stats are up-to-date why Oracle does a full scan on table ? What are the hint which I can use ? etc... I would like try to answer to