Package: xdrawchem
Version: 1.9.9-3
Usertags: ftbfs-gcc-4.3
Tags: patch

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable. (Currently not available for i386, but for amd64, powerpc
and ia64.  I hope to have i386 binaries in the archive in ~3 weeks.)

> Automatic build of xdrawchem_1.9.9-3 on em64t by sbuild/amd64 0.53
...
> if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Wall -I/usr/X11R6/include -DUNIX 
> -DRINGHOME="\"/usr/share/xdrawchem/\"" -DXDC_SERVER=\"www.xdrawchem.org\" 
> -I/usr/include/openbabel-2.0    -g -I/usr/share/qt3/include -D_REENTRANT 
> -DQT_THREAD_SUPPORT -g -g -Wall -O2 -MT molinfodialog.o -MD -MP -MF 
> ".deps/molinfodialog.Tpo" -c -o molinfodialog.o molinfodialog.cpp; \
>       then mv -f ".deps/molinfodialog.Tpo" ".deps/molinfodialog.Po"; else rm 
> -f ".deps/molinfodialog.Tpo"; exit 1; fi
> molinfodialog.cpp: In member function 'void MolInfoDialog::doPubChem()':
> molinfodialog.cpp:70: error: 'system' was not declared in this scope
> make[3]: *** [molinfodialog.o] Error 1

--- xdrawchem/molinfodialog.cpp~        2007-04-04 14:21:07.000000000 +0000
+++ xdrawchem/molinfodialog.cpp 2007-04-04 14:21:13.000000000 +0000
@@ -1,3 +1,4 @@
+#include <cstdlib>
 #include <qapplication.h>
 #include <qclipboard.h>
 

Now we fail with:

/usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/stl_tree.h:938:
error: passing 'const pt_cmp' as 'this' argument of 'bool 
pt_cmp::operator()(const Point&, const Point&)' discards qualifiers
make: *** [ioiface.o] Error 1

but please apply the patch.

-- 
Martin Michlmayr
http://www.cyrius.com/


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

Reply via email to