Hi, I try to rebuild hylafax on F9/x86_64, I have installer this package:
[root@arese ~]# yum list |grep -i '++' bonnie++.x86_64 1.03a-9.fc9 installed compat-gcc-34-c++.x86_64 3.4.6-9 installed compat-libstdc++-296.i386 2.96-140 installed compat-libstdc++-33.x86_64 3.2.3-63 installed gcc-c++.x86_64 4.3.0-8 installed gcc-objc++.x86_64 4.3.0-8 installed libsigc++20.x86_64 2.2.2-1.fc9 installed libstdc++.x86_64 4.3.0-8 installed libstdc++.i386 4.3.0-8 installed libstdc++-devel.x86_64 4.3.0-8 installed .......
But when I run "rpmbuild --rebuild hylafax-4.4.4-1rhel5.src.rpm" I get this error:
Missing C++ runtime support for g++ (/usr/bin/g++).
Compilation of the following test program failed:
#include "iostream.h" int main(){ cout << "Hello World!" << endl; return 0;}
Usually this is because you do not have a standard C++ library installed on your system or you have installed it in a non-standard location. If you do not have a C++ library installed, then you must install it. If it is installed in a non-standard location, then you should configure the compiler so that it will automatically be found.
(For recent gcc releases this is libstdc++, for older gcc - libg++)
How I can remove this error? Which package I have yet to install ?
Many thanks for help.
On Fri, May 30, 2008 at 12:37:18AM +0200, Dario Lesca wrote:
Compilation of the following test program failed:
#include "iostream.h" int main(){ cout << "Hello World!" << endl; return 0;}
Usually this is because you do not have a standard C++ library installed on your system or you have installed it in a non-standard location. If you do not have a C++ library installed, then you must install it. If it is installed in a non-standard location, then you should configure the compiler so that it will automatically be found.
(For recent gcc releases this is libstdc++, for older gcc - libg++)
How I can remove this error?
The above is not valid C++98, you need to use #include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; return 0; }
g++34 provides backwards support for deprecated pre-ISO C++ headers, g++ doesn't any longer. See http://gcc.gnu.org/gcc-4.3/porting_to.html "Removal of Pre-ISO headers" for more info.
Jakub
"DL" == Dario Lesca d.lesca@solinos.it writes:
DL> Hi, I try to rebuild hylafax on F9/x86_64, I have installer this DL> package:
Well, probably easier to build the package under review, which fixed many issues including the gcc 4.3 incompatibility. https://bugzilla.redhat.com//show_bug.cgi?id=188542 Try the package from comment 83.
- J<