Bug#303847: 3ddesktop: FTBFS (amd64/gcc-4.0): cast from 'void (*)(Event*)' to 'unsigned int' loses precision

2005-07-18 Thread Pierre Habouzit
Le Lun 18 Juillet 2005 11:55, Steve Langasek a écrit :
 On Mon, Jul 18, 2005 at 11:42:05AM +0200, Pierre Habouzit wrote:
  tag 303847 + pending
  thanks
 
   And thank you as well for fixing the build-deps.
 
  Just for the record, the build deps in Steve's patch are not
  correct : you have to remove libglu3-dev. And as of the %p patch, I
  had the same as Steve.

 Is that supposed to be libglut3-dev?  I'm aware the build-deps aren't
 *currently* satisfiable in unstable, but I didn't see any reason to
 think that the existing build-deps were themselves incorrect.

afaik, I can build the package with current unstable (without the 
libglut3-dev dependency) and nothing (from the configure) seems to be 
disabled without that build dep. I suppose that the xorg-glu ones are 
enough.

so I've removed it.

  The package is ready to upload, but I'm waiting for the xorg
  transition to be over.

 Yes, it would be rather difficult to build the package for upload at
 all before then. :)

sure. In fact, for i386 (and am64) at least, it compiles. though, many 
arch are missing the -dev packages, which make me think it's best to 
wait a bit ;)
-- 
·O·  Pierre Habouzit
··O[EMAIL PROTECTED]
OOOhttp://www.madism.org


pgp00fEP8neZY.pgp
Description: PGP signature


Bug#303847: 3ddesktop: FTBFS (amd64/gcc-4.0): cast from 'void (*)(Event*)' to 'unsigned int' loses precision

2005-07-18 Thread Steve Langasek
Hi Mathias,

On Sun, Jul 17, 2005 at 01:59:15PM +0200, Mathias Weyland wrote:
 On Sat, Jul 16, 2005 at 08:40:02PM -0700, Steve Langasek wrote:

* High-urgency upload for RC bugfix.
* Fix broken cast of a function pointer to an int, which is incorrect
  on 64-bit platforms and now causes build failures with gcc 4.0, and
  is a bit silly when %p exists for use with pointer arguments to
  printf.  Closes: #303847.
* Fix build-dependencies to point to the individual X libraries
  needed, since xlibs-dev is mostly dead and xlibs-static-dev is
  wholly dead.
* Also add a missing build-dependency on libglu1-xorg-dev | libglu-dev.

  I haven't uploaded this package yet, because since xorg-x11 is not built
  everywhere, libxxf86vm-dev does not yet exist on all architectures.  You're
  welcome to apply this patch once the necessary -dev packages are available,
  or I can NMU for you when that time comes.

 Thank you very much for the patch. We already packaged 0.2.9 and included a
 patch for bug #303847. Pierre (co-maintainer) modified the patch from
 Andreas Jochens. I haven't seen it yet, but from Pierre's description it's
 the same than yours.

Ok, glad to hear it.

 Our plan was to upload the new 0.2.9 package after the xorg transition
 because of the changes in the build deps, so I guess we don't need a NMU.
 Can we upload with urgency=high (like you would) once the -dev stuff is
 here?

I would not use urgency=high for an upload of a new upstream version that
includes other changes.

Cheers,
-- 
Steve Langasek
postmodern programmer


signature.asc
Description: Digital signature


Bug#303847: 3ddesktop: FTBFS (amd64/gcc-4.0): cast from 'void (*)(Event*)' to 'unsigned int' loses precision

2005-07-18 Thread Steve Langasek
On Mon, Jul 18, 2005 at 11:42:05AM +0200, Pierre Habouzit wrote:
 tag 303847 + pending
 thanks

  And thank you as well for fixing the build-deps.

 Just for the record, the build deps in Steve's patch are not correct : 
 you have to remove libglu3-dev. And as of the %p patch, I had the same 
 as Steve.

Is that supposed to be libglut3-dev?  I'm aware the build-deps aren't
*currently* satisfiable in unstable, but I didn't see any reason to think
that the existing build-deps were themselves incorrect.

 The package is ready to upload, but I'm waiting for the xorg transition 
 to be over.

Yes, it would be rather difficult to build the package for upload at all
before then. :)

Cheers,
-- 
Steve Langasek
postmodern programmer


signature.asc
Description: Digital signature


Bug#303847: 3ddesktop: FTBFS (amd64/gcc-4.0): cast from 'void (*)(Event*)' to 'unsigned int' loses precision

2005-07-18 Thread Pierre Habouzit
tag 303847 + pending
thanks

 And thank you as well for fixing the build-deps.

Just for the record, the build deps in Steve's patch are not correct : 
you have to remove libglu3-dev. And as of the %p patch, I had the same 
as Steve.

The package is ready to upload, but I'm waiting for the xorg transition 
to be over.

I also tag that bug pending.
Cheers,
-- 
·O·  Pierre Habouzit
··O[EMAIL PROTECTED]
OOOhttp://www.madism.org


pgpkWEVJI7Qxv.pgp
Description: PGP signature


Bug#303847: 3ddesktop: FTBFS (amd64/gcc-4.0): cast from 'void (*)(Event*)' to 'unsigned int' loses precision

2005-07-17 Thread Mathias Weyland
On Sat, Jul 16, 2005 at 08:40:02PM -0700, Steve Langasek wrote:

Hi Steve

   * High-urgency upload for RC bugfix.
   * Fix broken cast of a function pointer to an int, which is incorrect
 on 64-bit platforms and now causes build failures with gcc 4.0, and
 is a bit silly when %p exists for use with pointer arguments to
 printf.  Closes: #303847.
   * Fix build-dependencies to point to the individual X libraries
 needed, since xlibs-dev is mostly dead and xlibs-static-dev is
 wholly dead.
   * Also add a missing build-dependency on libglu1-xorg-dev | libglu-dev.
 
 I haven't uploaded this package yet, because since xorg-x11 is not built
 everywhere, libxxf86vm-dev does not yet exist on all architectures.  You're
 welcome to apply this patch once the necessary -dev packages are available,
 or I can NMU for you when that time comes.

Thank you very much for the patch. We already packaged 0.2.9 and included a
patch for bug #303847. Pierre (co-maintainer) modified the patch from
Andreas Jochens. I haven't seen it yet, but from Pierre's description it's
the same than yours.

Our plan was to upload the new 0.2.9 package after the xorg transition
because of the changes in the build deps, so I guess we don't need a NMU.
Can we upload with urgency=high (like you would) once the -dev stuff is
here?

And thank you as well for fixing the build-deps.

Best regards

Mathias Weyland


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



Bug#303847: 3ddesktop: FTBFS (amd64/gcc-4.0): cast from 'void (*)(Event*)' to 'unsigned int' loses precision

2005-04-09 Thread Andreas Jochens
Package: 3ddesktop
Version: 0.2.8-1
Severity: normal
Tags: patch

When building '3ddesktop' on amd64/unstable with gcc-4.0,
I get the following error:

x86_64-linux-g++ -Wall -O3 -DQT_CLEAN_NAMESPACE 
-DSHAREDIR=\/usr/share/3ddesktop\ -DSYSCONFDIR=\/etc/3ddesktop\   -g -O2  
-L/usr/X11R6/lib -L/usr/X11R6/lib   -o 3ddesk  3ddesk.o  -lm -lXxf86vm -lXext   
-lSM -lICE -lSM -lICE 
if x86_64-linux-g++ -DHAVE_CONFIG_H -I. -I. -I.-Wall -O3 
-DQT_CLEAN_NAMESPACE -DSHAREDIR=\/usr/share/3ddesktop\ 
-DSYSCONFDIR=\/etc/3ddesktop\   -g -O2  -L/usr/X11R6/lib -L/usr/X11R6/lib -MT 
3ddeskd.o -MD -MP -MF .deps/3ddeskd.Tpo -c -o 3ddeskd.o 3ddeskd.cpp; \
then mv -f .deps/3ddeskd.Tpo .deps/3ddeskd.Po; else rm -f 
.deps/3ddeskd.Tpo; exit 1; fi
event.hpp: In member function 'void EventManager::print_events_in_queue()':
event.hpp:77: error: cast from 'void (*)(Event*)' to 'unsigned int' loses 
precision
make[2]: *** [3ddeskd.o] Error 1
make[2]: Leaving directory `/3ddesktop-0.2.8'

With the attached patch '3ddesktop' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/3ddesktop-0.2.8/event.hpp ./event.hpp
--- ../tmp-orig/3ddesktop-0.2.8/event.hpp   2004-12-06 03:57:32.0 
+0100
+++ ./event.hpp 2005-04-09 09:07:06.665471506 +0200
@@ -74,7 +74,7 @@
 listEvent *::iterator k;
 for (k = events.begin(); k != events.end(); ++k) {
 Event *e = *k;
-printf(:: Event %d  0x%x\n, e-type, (unsigned 
int)(e-function));
+printf(:: Event %d  0x%lx\n, e-type, (unsigned 
long)(e-function));
 }
 }
 


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