Re: f9: x86_64: Missing C++ runtime support for g++ (/usr/bin/g++).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux