Issues.00303 - lordmundi/wikidoctest GitHub Wiki
00303: src.dist plugin compile issues in v2.1 with libstdc++
Summary: src.dist plugin compile issues in v2.1 with libstdc++
Created: 2010–12–07 10:32
Status: Not an Issue
Category: Bug
From: frankie
Version: 2.1
Released_In:
Description:
sometimes when trying to compile plugins under v2.1 the compile fails for missing headers or libraries.
Comments
frankie December 07, 2010, at 10:41 AM: I'm marking this as not an issue since this is usually caused by configuration issues on the machine. Most of the time this is due to the fact that you are compiling on a 64 bit system and either don't have the 32 bit std C++ library installed (package name lib32stdc++6 on ubuntu), or, the system can't find the 32 bit library in the search path. If the /usr/lib32/libstdc++.so.6 file is there, but not the ".so" file (without the version number), i normally fix this by making a link to the file, like this:
> cd /usr/lib32
> sudo ln -s libstdc++.so.6 libstdc++.so
Also, make sure you have development packages installed for some of the system headers. Ones to make sure you have are (these package names are for ubuntu - they may be slightly different for centos/red hat):
- libc6-dev-i386
- mesa-common-dev
- libglu1-mesa-dev
- lib32stdc++6
- lib32z1-dev
frankie October 04, 2011, at 12:50 PM: One useful command in yum is "whatprovides". It lets you give a filename and then have it tell you which packages provide files with that name. So for example, if you got an error about missing stubs-32.h, you can probably find the package that provides that file by doing:
> yum whatprovides \*stubs-32.h\*
That should help you figure out what you need.