[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#548708: marked as done (FTBFS with GCC 4.4: #elif is missing defined())



Your message dated Sun, 11 Oct 2009 15:49:59 +0000
with message-id <E1Mx0gJ-0002iA-RB@ries.debian.org>
and subject line Bug#548708: fixed in wv2 0.4.1.dfsg-1
has caused the Debian Bug report #548708,
regarding FTBFS with GCC 4.4: #elif is missing defined()
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 owner@bugs.debian.org
immediately.)


-- 
548708: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548708
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: wv2
Version: 0.4.0.dfsg-1
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

This package fails to build with GCC 4.4 which has introduced better
checks in the preprocessor.  Your code does something like:

 #ifdef A
 #elif B
 #endif

but the #elif is wrong: #elif requires a condition whereas you're
trying to test whether B is defined.  You therefore have to use:
 #elif defined(B)

You can reproduce this problem with gcc-4.4/g++-4.4 from unstable.

> Automatic build of wv2_0.4.0.dfsg-1 on em64t by sbuild/amd64 0.53
...
> [ 41%] Building CXX object src/CMakeFiles/wv2.dir/ustring.cpp.o
> cd /build/tbm/wv2-0.4.0.dfsg/obj-x86_64-linux-gnu/src && /usr/bin/c++   -Dwv2_EXPORTS -DHAVE_CONFIG_H -g -O2  -fPIC -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgsf-1 -I/build/tbm/wv2-0.4.0.dfsg/src -I/build/tbm/wv2-0.4.0.dfsg/obj-x86_64-linux-gnu   -o CMakeFiles/wv2.dir/ustring.cpp.o -c /build/tbm/wv2-0.4.0.dfsg/src/ustring.cpp
> /build/tbm/wv2-0.4.0.dfsg/src/ustring.cpp:81:23: error: #elif with no expression
> /build/tbm/wv2-0.4.0.dfsg/src/ustring.cpp:94:23: error: #elif with no expression
> make[3]: *** [src/CMakeFiles/wv2.dir/ustring.cpp.o] Error 1
> make[3]: Leaving directory `/build/tbm/wv2-0.4.0.dfsg/obj-x86_64-linux-gnu'
> make[2]: *** [src/CMakeFiles/wv2.dir/all] Error 2
> make[2]: Leaving directory `/build/tbm/wv2-0.4.0.dfsg/obj-x86_64-linux-gnu'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/build/tbm/wv2-0.4.0.dfsg/obj-x86_64-linux-gnu'
> dh_auto_build: make returned exit code 2
> make: *** [build] Error 1
> dpkg-buildpackage: error: debian/rules build gave error exit status 2

--- src/ustring.cpp~	2009-09-28 09:27:00.000000000 +0000
+++ src/ustring.cpp	2009-09-28 09:27:59.000000000 +0000
@@ -78,9 +78,9 @@
 {
 #if defined(HAVE_FUNC_ISINF)
   return (isinf(d) == 1);
-#elif HAVE_FUNC_FINITE
+#elif defined(HAVE_FUNC_FINITE)
   return finite(d) == 0 && d == d; // ### can we distinguish between + and - ?
-#elif HAVE_FUNC__FINITE
+#elif defined(HAVE_FUNC__FINITE)
   return _finite(d) == 0 && d == d; // ###
 #else
   return false;
@@ -91,9 +91,9 @@
 {
 #if defined(HAVE_FUNC_ISINF)
   return (isinf(d) == -1);
-#elif HAVE_FUNC_FINITE
+#elif defined(dHAVE_FUNC_FINITE)
   return finite(d) == 0 && d == d; // ###
-#elif HAVE_FUNC__FINITE
+#elif defined(HAVE_FUNC__FINITE)
   return _finite(d) == 0 && d == d; // ###
 #else
   return false;

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



--- End Message ---
--- Begin Message ---
Source: wv2
Source-Version: 0.4.1.dfsg-1

We believe that the bug you reported is fixed in the latest version of
wv2, which is due to be installed in the Debian FTP archive:

libwv2-4_0.4.1.dfsg-1_amd64.deb
  to pool/main/w/wv2/libwv2-4_0.4.1.dfsg-1_amd64.deb
libwv2-dev_0.4.1.dfsg-1_amd64.deb
  to pool/main/w/wv2/libwv2-dev_0.4.1.dfsg-1_amd64.deb
wv2_0.4.1.dfsg-1.diff.gz
  to pool/main/w/wv2/wv2_0.4.1.dfsg-1.diff.gz
wv2_0.4.1.dfsg-1.dsc
  to pool/main/w/wv2/wv2_0.4.1.dfsg-1.dsc
wv2_0.4.1.dfsg.orig.tar.gz
  to pool/main/w/wv2/wv2_0.4.1.dfsg.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 548708@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ana Beatriz Guerrero Lopez <ana@debian.org> (supplier of updated wv2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 10 Oct 2009 18:10:30 +0200
Source: wv2
Binary: libwv2-4 libwv2-dev
Architecture: source amd64
Version: 0.4.1.dfsg-1
Distribution: unstable
Urgency: low
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Ana Beatriz Guerrero Lopez <ana@debian.org>
Description: 
 libwv2-4   - a library for accessing Microsoft Word documents
 libwv2-dev - development files for Microsoft Word access library
Closes: 548708
Changes: 
 wv2 (0.4.1.dfsg-1) unstable; urgency=low
 .
   * New upstream release. "Another release, another bump soname".
   * Update from upstream to build with GCC 4.4. (Closes: #548708)
   * Bump soname fom libwv2-3 to libwv2-4, make changes accordingly.
Checksums-Sha1: 
 e3fb9860ac63fa4d6c75813b419b8f584c262a6a 1205 wv2_0.4.1.dfsg-1.dsc
 5e31492d7121f841d4c9096a4827362cf6bee487 498300 wv2_0.4.1.dfsg.orig.tar.gz
 ba1a196b357d8043c0ad6cd836f98aacac366d17 4584 wv2_0.4.1.dfsg-1.diff.gz
 f3fa3af6c18bda1cb010f922fd5c275226af3186 307848 libwv2-4_0.4.1.dfsg-1_amd64.deb
 bd4e0d891804303627181acaf4a661342cf6ff87 101614 libwv2-dev_0.4.1.dfsg-1_amd64.deb
Checksums-Sha256: 
 026cfc0aebb1dc880c1185386a19f474408a036d86b8a6ba9343eaf56601e983 1205 wv2_0.4.1.dfsg-1.dsc
 95bee3ab946132b3d5593071f9c19a1d47e10ae9d6fe38102de10976ebc1a7be 498300 wv2_0.4.1.dfsg.orig.tar.gz
 8bdf7992a54dabbd68cecdabd5b1226271c2f032320137df73bad8575dd71204 4584 wv2_0.4.1.dfsg-1.diff.gz
 b28fcf2f72cae94ef39b2ce90ae10b52404e0d209b1cce1c93b1a2998062b08d 307848 libwv2-4_0.4.1.dfsg-1_amd64.deb
 e1de9639196c9e60104ae81f0891b7a620a9fa283f46a10f01dc15ccd55c2040 101614 libwv2-dev_0.4.1.dfsg-1_amd64.deb
Files: 
 e2420849bf5a3ce6f9b2c4f33bfc6f66 1205 libs optional wv2_0.4.1.dfsg-1.dsc
 48ba98128838530c86aac80f29a5add9 498300 libs optional wv2_0.4.1.dfsg.orig.tar.gz
 6dc04c000b8e85333e5f4e1dcd605c50 4584 libs optional wv2_0.4.1.dfsg-1.diff.gz
 fcf2374d226e167a905cbed7e9a6bed4 307848 libs optional libwv2-4_0.4.1.dfsg-1_amd64.deb
 44e35e2b1b0b65f78ba78e62d5cf1397 101614 libdevel optional libwv2-dev_0.4.1.dfsg-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Signed by Ana Guerrero

iEYEARECAAYFAkrQtPsACgkQn3j4POjENGFxfQCffjDEfzOKGAlWmVjqtLVELIfc
A3IAn206nOv6fkwbUfRUD85891c+LOta
=NvJJ
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: