Your message dated Sun, 20 Jul 2008 23:11:12 +0300
with message-id <[EMAIL PROTECTED]>
and subject line Irrelevant now.
has caused the Debian Bug report #98325,
regarding html2text won't build with g++ 3.0 (hppa)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
98325: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=98325
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: html2text
Version: 1.2.3-2
Severity: Important

html2text won't build with g++ 3.0, which means it won't build on hppa or any 
other arch dependent on gcc-3.0.

There are several problems,

1.) configure has test code snippets that don't work with g++ 3.0. The 
"$LIBSTDCXX_INCLUDES, $LIBSTDCXX_LIBS" and "$AUTO_PTR_BROKEN" code sections 
need "using namespace std;". This is explained in the 
"Libstdc++-porting-howto" at,

http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/porting-howto.html

Here's a patch,

-----------------------------------------------------------------------------
--- configure~  Mon May 21 15:12:20 2001
+++ configure   Mon May 21 15:21:59 2001
@@ -187,6 +187,7 @@
 #include <set>
 #include <new>
 #include <vector>
+using namespace std;
 void func() { map<string, string> x; }
 EOF
 if $CXX -c $tmp_file.C 2>/dev/null; then
@@ -209,6 +210,7 @@
 #include <memory>
 #include <string>
 #include <list>
+using namespace std;
 int main(int, char**) {
   auto_ptr<string> x(new string("hello"));
   *x = "world";
-----------------------------------------------------------------------------

2.) The "$AUTO_PTR_BROKEN" section test doesn't compile causing it to assume,

'not defined or not working, use "./libstd/include/auto_ptr.h"'

When I try to compile this test by hand I get,
-----------------------------------------------------------------------------
$  g++ -c autoptr.C 
/usr/include/g++-v3/bits/stl_construct.h: In function `void 
   std::_Construct(_T1*, const _T2&) [with _T1 = std::auto_ptr<int>, _T2 = 
   std::auto_ptr<int>]':
/usr/include/g++-v3/bits/stl_list.h:313:   instantiated from 
`std::_List_node<_Tp>* std::list<_Tp, _Alloc>::_M_create_node(const _Tp&) 
[with _Tp = std::auto_ptr<int>, _Alloc = std::allocator<std::auto_ptr<int> >]'
/usr/include/g++-v3/bits/stl_list.h:364:   instantiated from 
`std::_List_iterator<_Tp, _Tp&, _Tp*> std::list<_Tp, _Alloc>
::insert(std::_List_iterator<_Tp, _Tp&, _Tp*>, const _Tp&) [with _Tp = 
std::auto_ptr<int>, _Alloc = std::allocator<std::auto_ptr<int> >]'
/usr/include/g++-v3/bits/stl_list.h:403:   instantiated from `void 
std::list<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = std::auto_ptr<int>, 
_Alloc = std::allocator<std::auto_ptr<int> >]'
autoptr.C:15:   instantiated from here
/usr/include/g++-v3/bits/stl_construct.h:48: passing `const std::auto_ptr<int>
'    as `this' argument of `std::auto_ptr<_Tp>::operator
   std::auto_ptr_ref<_Tp1>() [with _Tp1 = int, _Tp = int]' discards qualifiers
-----------------------------------------------------------------------------

When I try to build on a gcc-2.95.4 box I get,
-----------------------------------------------------------------------------
$ g++ -c autoptr.C 
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_construct.h: 
In function `void construct<auto_ptr<int>, auto_ptr<int> >(auto_ptr<int> *, 
const auto_ptr<int> &)':
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_list.h:293:   
instantiated from `list<auto_ptr<int>,allocator<auto_ptr<int> > >
::_M_create_node(const auto_ptr<int> &)'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_list.h:344:   
instantiated from `list<auto_ptr<int>,allocator<auto_ptr<int> > >
::insert(_List_iterator<auto_ptr<int>,auto_ptr<int> &,auto_ptr<int> *>, const 
auto_ptr<int> &)'
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_list.h:381:   
instantiated from `list<auto_ptr<int>,allocator<auto_ptr<int> > >
::push_back(const auto_ptr<int> &)'
autoptr.C:15:   instantiated from here
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_construct.h:48
: conversion from `const auto_ptr<int>' to `auto_ptr<int> &' discards 
qualifiers
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/memory:37: in 
passing argument 1 of `auto_ptr<int>::auto_ptr(auto_ptr<int> &)'
-----------------------------------------------------------------------------

I don't know if it's doing the right thing or not.

3.) makedepend complains a lot about 'cannot find include file
      "bits/c++config.h"'. According to the INSTALL doc this is normal?

4.) The package won't build due to other standard namespace issues. I started 
looking at them but I think someone with more knowledge about the package need 
to look at it.
  
Since debconf and several other important package use html2text it would be 
really nice if we could get this fixed soon.

Thanks,

-- 
Matt Taggart        Linux Development Lab
[EMAIL PROTECTED]   HP Linux Systems Operation




--- End Message ---
--- Begin Message ---
Now package has successfully built on hppa architecture.
AFAIK there is no architecture with g++ 3.0 as default g++. I'm closing this 
bug.

-- 
Eugene V. Lyubimkin aka JackYF, Ukrainian C++ developer.

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to