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

2008-05-29 Thread Jakub Jelinek
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


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

2008-05-29 Thread Dario Lesca
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 [EMAIL PROTECTED]

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


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

2008-05-29 Thread Dario Lesca
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

 [EMAIL PROTECTED] ~]$ 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.0 +0100
 +++ rpmbuild/SOURCES/c++.patch  2008-05-30 01:15:56.0 +0200
 @@ -0,0 +1,13 @@
 +diff -Naur old/hylafax-4.4.4/configure hylafax-4.4.4/configure
 +--- old/hylafax-4.4.4/configure2007-11-21 15:45:23.0 +0100
  hylafax-4.4.4/configure2008-05-30 01:15:53.0 +0200
 +@@ -1418,7 +1418,8 @@
 + CheckForCXXRuntime()
 + {
 + catt.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.0 +0200
 +++ rpmbuild/SPECS/hylafax.spec 2008-05-30 01:21:27.0 +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
 [EMAIL PROTECTED] ~]$ 

Hope this help someone.

Bye

-- 
Dario Lesca [EMAIL PROTECTED]

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