FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 05-29-2008, 10:37 PM
Dario Lesca
 
Default f9: x86_64: Missing C++ runtime support for g++ (/usr/bin/g++).

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.

--
Dario Lesca <d.lesca@solinos.it>

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 05-29-2008, 10:37 PM
Dario Lesca
 
Default f9: x86_64: Missing C++ runtime support for g++ (/usr/bin/g++).

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.

--
Dario Lesca <d.lesca@solinos.it>

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 05-29-2008, 10:49 PM
Jakub Jelinek
 
Default f9: x86_64: Missing C++ runtime support for g++ (/usr/bin/g++).

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

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 05-29-2008, 10:49 PM
Jakub Jelinek
 
Default f9: x86_64: Missing C++ runtime support for g++ (/usr/bin/g++).

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

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 05-29-2008, 11:02 PM
Dario Lesca
 
Default f9: x86_64: Missing C++ runtime support for g++ (/usr/bin/g++).

Il giorno gio, 29/05/2008 alle 18.49 -0400, Jakub Jelinek ha scritto:

> 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.

Ok, thank Jakub, but now, how I can rebuild hylafax?

I must patch hylafax (but i'm not a 'C++' guru) or there are other
solution?

Thanks.

--
Dario Lesca <d.lesca@solinos.it>

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 05-29-2008, 11:36 PM
Dario Lesca
 
Default f9: x86_64: Missing C++ runtime support for g++ (/usr/bin/g++).

Il giorno gio, 29/05/2008 alle 18.49 -0400, Jakub Jelinek ha scritto:

> 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.

Ok.

I have produce the follow patch to original hylafax-4.4.4-1.src.rpm
( ftp://ftp.hylafax.org/binary/linux/redhat/SRPMS/hylafax-4.4.4-1rhel5.src.rpm )
and rebuild the package without error.

Thanks Jakub

> [lesca@arese ~]$ diff -Naur rpmbuild-old/ rpmbuild
> diff -Naur rpmbuild-old/SOURCES/c++.patch rpmbuild/SOURCES/c++.patch
> --- rpmbuild-old/SOURCES/c++.patch 1970-01-01 01:00:00.000000000 +0100
> +++ rpmbuild/SOURCES/c++.patch 2008-05-30 01:15:56.000000000 +0200
> @@ -0,0 +1,13 @@
> +diff -Naur old/hylafax-4.4.4/configure hylafax-4.4.4/configure
> +--- old/hylafax-4.4.4/configure 2007-11-21 15:45:23.000000000 +0100
> ++++ hylafax-4.4.4/configure 2008-05-30 01:15:53.000000000 +0200
> +@@ -1418,7 +1418,8 @@
> + CheckForCXXRuntime()
> + {
> + cat>t.c++<<EOF
> +-#include "iostream.h"
> ++#include <iostream>
> ++using namespace std;
> + int main(){ cout << "Hello World!" << endl; return 0;}
> + EOF
> + runMake t "t:; ${C++F} ${C++FILE} t.c++${MAKECXXOVERRIDE}"
> diff -Naur rpmbuild-old/SPECS/hylafax.spec rpmbuild/SPECS/hylafax.spec
> --- rpmbuild-old/SPECS/hylafax.spec 2007-10-19 15:23:37.000000000 +0200
> +++ rpmbuild/SPECS/hylafax.spec 2008-05-30 01:21:27.000000000 +0200
> @@ -44,7 +44,7 @@
> %define ostag sles%{sles_version}
> %endif
>
> -%define release 1%{ostag}
> +%define release 2%{ostag}
> %define serial %(echo `date +%Y%m%d`)
>
> %define faxspool %{_var}/spool/hylafax
> @@ -73,6 +73,7 @@
> Source11: hylafax_FaxDispatch
> Source12: hylafax_jobcontrol.sh
> Source13: hylafax_sysconfig
> +Patch14: c++.patch
>
> BuildPrereq: libjpeg-devel, libtiff-devel, zlib-devel
> Requires: ghostscript >= 5.5
> @@ -97,6 +98,7 @@
>
> %prep
> %setup -q
> +%patch14 -p1
>
> %build
> # - Can't use the configure macro because HylaFAX configure script does
> [lesca@arese ~]$

Hope this help someone.

Bye

--
Dario Lesca <d.lesca@solinos.it>

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 05-30-2008, 04:21 AM
Jason L Tibbitts III
 
Default f9: x86_64: Missing C++ runtime support for g++ (/usr/bin/g++).

>>>>> "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<

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 04:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org