Re: Compiling on hppa

2001-10-10 Thread Stijn de Bekker

On Tue, Oct 09 2001, Peter S Galbraith wrote:
 
 Stijn de Bekker wrote:
 
  Hi,
  
  
  Apparently, the building of my htdig package fails on the hppa
  architecture (as is also noted by bug #105045):
  
  http://buildd.debian.org/fetch.php?pkg=htdigver=3.1.5-3arch=hppastamp=100
  2598209file=logas=raw
  
  
  My question is pretty simple; how can I create a chroot environment on
  sarti (the hppa machine) to fix this? I cannot compile regularly,
  because db2-dev is not installed.
 
 The problem is not really with hppa, but with g++-3.0.
 Here's what I do to test build (another package) using g++-3.0 :
 
  CC=gcc-3.0 CXX=g++-3.0 ./configure --prefix=/usr
 
 Do that on your regular machine.  No chroot needed.

Unfortunately, that does not work either. I get the same error:


make[1]: Entering directory `/home/stijn/htdig-3.1.5/htlib'
g++-3.0 -c  -DDEFAULT_CONFIG_FILE=\/etc/htdig/htdig.conf\ -I../htlib
-I../htcommon -I../include -g -O2 String.cc
In file included from /usr/include/g++-v3/backward/stream.h:32,
 from String.cc:14:
/usr/include/g++-v3/backward/iostream.h:35: using directive `ostream'
   introduced ambiguous type `ostream'
htString.h: In function `std::ostream operator(std::ostream, String)':
htString.h:159: `char*String::Data' is private
String.cc:544: within this context
String.cc: At global scope:
String.cc:619: prototype for `void String::debug(std::ostream)' does not match
   any in class `String'
htString.h:127: candidate is: void String::debug(ostream)
make[1]: *** [String.o] Error 1
make[1]: Leaving directory `/home/stijn/htdig-3.1.5/htlib'
make: *** [all] Error 1



Stijn.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Compiling on hppa

2001-10-10 Thread Peter S Galbraith


Stijn de Bekker wrote:

 On Tue, Oct 09 2001, Peter S Galbraith wrote:
  
  Stijn de Bekker wrote:
  
   Hi,
   
   
   Apparently, the building of my htdig package fails on the hppa
   architecture (as is also noted by bug #105045):
   
   http://buildd.debian.org/fetch.php?pkg=htdigver=3.1.5-3arch=hppastamp
 =100
   2598209file=logas=raw
   
   
   My question is pretty simple; how can I create a chroot environment on
   sarti (the hppa machine) to fix this? I cannot compile regularly,
   because db2-dev is not installed.
  
  The problem is not really with hppa, but with g++-3.0.
  Here's what I do to test build (another package) using g++-3.0 :
  
   CC=gcc-3.0 CXX=g++-3.0 ./configure --prefix=/usr
  
  Do that on your regular machine.  No chroot needed.
 
 Unfortunately, that does not work either. I get the same error:

Well, that's my point.  The problem is not with the hppa
architecture, but with the fact that hppa uses gcc-3.0 by
default, and your code is broken wrt gcc-3.0.  Now you can use
your own machine to fix your code on gcc-3.0, and you don't need
a chroot on an hppa machine.

Peter


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Compiling on hppa

2001-10-10 Thread Stijn de Bekker

On Wed, Oct 10 2001, Peter S Galbraith wrote:
 
 Stijn de Bekker wrote:
 
  On Tue, Oct 09 2001, Peter S Galbraith wrote:

[...]

  Unfortunately, that does not work either. I get the same error:
 
 Well, that's my point.  The problem is not with the hppa
 architecture, but with the fact that hppa uses gcc-3.0 by
 default, and your code is broken wrt gcc-3.0.  Now you can use
 your own machine to fix your code on gcc-3.0, and you don't need
 a chroot on an hppa machine.

Ah, I see. Sorry I misread it, your right.


Thank you,


Stijn.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Compiling on hppa

2001-10-10 Thread Robert Bihlmeyer

Stijn de Bekker [EMAIL PROTECTED] writes:

 Unfortunately, that does not work either. I get the same error:

Well, that was the plan, wasn't it ... reproducing it on your machine.

 make[1]: Entering directory `/home/stijn/htdig-3.1.5/htlib'
 g++-3.0 -c  -DDEFAULT_CONFIG_FILE=\/etc/htdig/htdig.conf\ -I../htlib
 -I../htcommon -I../include -g -O2 String.cc
 In file included from /usr/include/g++-v3/backward/stream.h:32,
  from String.cc:14:
 /usr/include/g++-v3/backward/iostream.h:35: using directive `ostream'
introduced ambiguous type `ostream'

Try commenting out the '#include iostream.h', or, if it won't
compile on gcc 2.95.x without that, wrapping it like such:

#if defined(__GNUC__)  __GNUC__  3
#  include iostream.h
#endif

-- 
Robbe



signature.ng
Description: PGP signature


Re: Compiling on hppa

2001-10-10 Thread James Troup

Stijn de Bekker [EMAIL PROTECTED] writes:

 Apparently, the building of my htdig package fails on the hppa
 architecture (as is also noted by bug #105045):
 
 
http://buildd.debian.org/fetch.php?pkg=htdigver=3.1.5-3arch=hppastamp=1002598209file=logas=raw
 
 
 My question is pretty simple; how can I create a chroot environment on
 sarti (the hppa machine) to fix this? I cannot compile regularly,
 because db2-dev is not installed.

As has already been pointed out, the easiest way to deal with gcc-3.0
problems is to try and reproduce it locally first.  Failing that, the
solution is to mail the contact for the machine[1] and ask them to
install what you need in base.

BTW, thanks for pro-actively dealing with the problem!

-- 
James

[1] e.g. http://db.debian.org/machines.cgi?host=sarti


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Compiling on hppa

2001-10-10 Thread peter karlsson

Peter S Galbraith:

 The problem is not really with hppa, but with g++-3.0.
 Here's what I do to test build (another package) using g++-3.0 :

Is it possible to get g++ 3 for i386 somewhere? That would make it a
lot easier to test if things work... :)

-- 
\\//
peter - http://www.softwolves.pp.se/

  Statement concerning unsolicited e-mail according to Swedish law:
  http://www.softwolves.pp.se/peter/reklampost.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Compiling on hppa

2001-10-10 Thread Peter S Galbraith


peter karlsson wrote:

 Peter S Galbraith:
 
  The problem is not really with hppa, but with g++-3.0.
  Here's what I do to test build (another package) using g++-3.0 :
 
 Is it possible to get g++ 3 for i386 somewhere? That would make it a
 lot easier to test if things work... :)

Sure, install the package 'g++-3.0'.

Peter


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Compiling on hppa

2001-10-10 Thread peter karlsson

Peter S Galbraith:

 Sure, install the package 'g++-3.0'.

Hmm, interesting. It doesn't show up when I do dpkg -l, but obviously
apt knows about it.

-- 
\\//
peter - http://www.softwolves.pp.se/

  Statement concerning unsolicited e-mail according to Swedish law:
  http://www.softwolves.pp.se/peter/reklampost.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Compiling on hppa

2001-10-10 Thread Stijn de Bekker
On Tue, Oct 09 2001, Peter S Galbraith wrote:
 
 Stijn de Bekker wrote:
 
  Hi,
  
  
  Apparently, the building of my htdig package fails on the hppa
  architecture (as is also noted by bug #105045):
  
  http://buildd.debian.org/fetch.php?pkg=htdigver=3.1.5-3arch=hppastamp=100
  2598209file=logas=raw
  
  
  My question is pretty simple; how can I create a chroot environment on
  sarti (the hppa machine) to fix this? I cannot compile regularly,
  because db2-dev is not installed.
 
 The problem is not really with hppa, but with g++-3.0.
 Here's what I do to test build (another package) using g++-3.0 :
 
  CC=gcc-3.0 CXX=g++-3.0 ./configure --prefix=/usr
 
 Do that on your regular machine.  No chroot needed.

Unfortunately, that does not work either. I get the same error:


make[1]: Entering directory `/home/stijn/htdig-3.1.5/htlib'
g++-3.0 -c  -DDEFAULT_CONFIG_FILE=\/etc/htdig/htdig.conf\ -I../htlib
-I../htcommon -I../include -g -O2 String.cc
In file included from /usr/include/g++-v3/backward/stream.h:32,
 from String.cc:14:
/usr/include/g++-v3/backward/iostream.h:35: using directive `ostream'
   introduced ambiguous type `ostream'
htString.h: In function `std::ostream operator(std::ostream, String)':
htString.h:159: `char*String::Data' is private
String.cc:544: within this context
String.cc: At global scope:
String.cc:619: prototype for `void String::debug(std::ostream)' does not match
   any in class `String'
htString.h:127: candidate is: void String::debug(ostream)
make[1]: *** [String.o] Error 1
make[1]: Leaving directory `/home/stijn/htdig-3.1.5/htlib'
make: *** [all] Error 1



Stijn.



Re: Compiling on hppa

2001-10-10 Thread Peter S Galbraith

Stijn de Bekker wrote:

 On Tue, Oct 09 2001, Peter S Galbraith wrote:
  
  Stijn de Bekker wrote:
  
   Hi,
   
   
   Apparently, the building of my htdig package fails on the hppa
   architecture (as is also noted by bug #105045):
   
   http://buildd.debian.org/fetch.php?pkg=htdigver=3.1.5-3arch=hppastamp
 =100
   2598209file=logas=raw
   
   
   My question is pretty simple; how can I create a chroot environment on
   sarti (the hppa machine) to fix this? I cannot compile regularly,
   because db2-dev is not installed.
  
  The problem is not really with hppa, but with g++-3.0.
  Here's what I do to test build (another package) using g++-3.0 :
  
   CC=gcc-3.0 CXX=g++-3.0 ./configure --prefix=/usr
  
  Do that on your regular machine.  No chroot needed.
 
 Unfortunately, that does not work either. I get the same error:

Well, that's my point.  The problem is not with the hppa
architecture, but with the fact that hppa uses gcc-3.0 by
default, and your code is broken wrt gcc-3.0.  Now you can use
your own machine to fix your code on gcc-3.0, and you don't need
a chroot on an hppa machine.

Peter



Re: Compiling on hppa

2001-10-10 Thread Stijn de Bekker
On Wed, Oct 10 2001, Peter S Galbraith wrote:
 
 Stijn de Bekker wrote:
 
  On Tue, Oct 09 2001, Peter S Galbraith wrote:

[...]

  Unfortunately, that does not work either. I get the same error:
 
 Well, that's my point.  The problem is not with the hppa
 architecture, but with the fact that hppa uses gcc-3.0 by
 default, and your code is broken wrt gcc-3.0.  Now you can use
 your own machine to fix your code on gcc-3.0, and you don't need
 a chroot on an hppa machine.

Ah, I see. Sorry I misread it, your right.


Thank you,


Stijn.



Re: Compiling on hppa

2001-10-10 Thread Robert Bihlmeyer
Stijn de Bekker [EMAIL PROTECTED] writes:

 Unfortunately, that does not work either. I get the same error:

Well, that was the plan, wasn't it ... reproducing it on your machine.

 make[1]: Entering directory `/home/stijn/htdig-3.1.5/htlib'
 g++-3.0 -c  -DDEFAULT_CONFIG_FILE=\/etc/htdig/htdig.conf\ -I../htlib
 -I../htcommon -I../include -g -O2 String.cc
 In file included from /usr/include/g++-v3/backward/stream.h:32,
  from String.cc:14:
 /usr/include/g++-v3/backward/iostream.h:35: using directive `ostream'
introduced ambiguous type `ostream'

Try commenting out the '#include iostream.h', or, if it won't
compile on gcc 2.95.x without that, wrapping it like such:

#if defined(__GNUC__)  __GNUC__  3
#  include iostream.h
#endif

-- 
Robbe


signature.ng
Description: PGP signature


Re: Compiling on hppa

2001-10-10 Thread James Troup
Stijn de Bekker [EMAIL PROTECTED] writes:

 Apparently, the building of my htdig package fails on the hppa
 architecture (as is also noted by bug #105045):
 
 http://buildd.debian.org/fetch.php?pkg=htdigver=3.1.5-3arch=hppastamp=1002598209file=logas=raw
 
 
 My question is pretty simple; how can I create a chroot environment on
 sarti (the hppa machine) to fix this? I cannot compile regularly,
 because db2-dev is not installed.

As has already been pointed out, the easiest way to deal with gcc-3.0
problems is to try and reproduce it locally first.  Failing that, the
solution is to mail the contact for the machine[1] and ask them to
install what you need in base.

BTW, thanks for pro-actively dealing with the problem!

-- 
James

[1] e.g. http://db.debian.org/machines.cgi?host=sarti



Re: Compiling on hppa

2001-10-10 Thread peter karlsson
Peter S Galbraith:

 The problem is not really with hppa, but with g++-3.0.
 Here's what I do to test build (another package) using g++-3.0 :

Is it possible to get g++ 3 for i386 somewhere? That would make it a
lot easier to test if things work... :)

-- 
\\//
peter - http://www.softwolves.pp.se/

  Statement concerning unsolicited e-mail according to Swedish law:
  http://www.softwolves.pp.se/peter/reklampost.html



Re: Compiling on hppa

2001-10-10 Thread Peter S Galbraith

peter karlsson wrote:

 Peter S Galbraith:
 
  The problem is not really with hppa, but with g++-3.0.
  Here's what I do to test build (another package) using g++-3.0 :
 
 Is it possible to get g++ 3 for i386 somewhere? That would make it a
 lot easier to test if things work... :)

Sure, install the package 'g++-3.0'.

Peter



Re: Compiling on hppa

2001-10-10 Thread peter karlsson
Peter S Galbraith:

 Sure, install the package 'g++-3.0'.

Hmm, interesting. It doesn't show up when I do dpkg -l, but obviously
apt knows about it.

-- 
\\//
peter - http://www.softwolves.pp.se/

  Statement concerning unsolicited e-mail according to Swedish law:
  http://www.softwolves.pp.se/peter/reklampost.html



Re: Compiling on hppa

2001-10-09 Thread Peter S Galbraith


Stijn de Bekker wrote:

 Hi,
 
 
 Apparently, the building of my htdig package fails on the hppa
 architecture (as is also noted by bug #105045):
 
 http://buildd.debian.org/fetch.php?pkg=htdigver=3.1.5-3arch=hppastamp=100
 2598209file=logas=raw
 
 
 My question is pretty simple; how can I create a chroot environment on
 sarti (the hppa machine) to fix this? I cannot compile regularly,
 because db2-dev is not installed.

The problem is not really with hppa, but with g++-3.0.
Here's what I do to test build (another package) using g++-3.0 :

 CC=gcc-3.0 CXX=g++-3.0 ./configure --prefix=/usr

Do that on your regular machine.  No chroot needed.

Peter


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Compiling on hppa

2001-10-09 Thread Peter S Galbraith

Stijn de Bekker wrote:

 Hi,
 
 
 Apparently, the building of my htdig package fails on the hppa
 architecture (as is also noted by bug #105045):
 
 http://buildd.debian.org/fetch.php?pkg=htdigver=3.1.5-3arch=hppastamp=100
 2598209file=logas=raw
 
 
 My question is pretty simple; how can I create a chroot environment on
 sarti (the hppa machine) to fix this? I cannot compile regularly,
 because db2-dev is not installed.

The problem is not really with hppa, but with g++-3.0.
Here's what I do to test build (another package) using g++-3.0 :

 CC=gcc-3.0 CXX=g++-3.0 ./configure --prefix=/usr

Do that on your regular machine.  No chroot needed.

Peter