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

Bug#171908: makedepend not compatible with latest /usr/include/assert.h



Package: xutils
Version: 4.2.1-4
Severity: normal

When using makedepend on a source file containing an inclusion of
assert.h, the following is reported, and the dependency list gets
truncated:

"/usr/include/assert.h":104:  defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4)
                                                                  ^--- expecting :

I usually deal with this by patching /usr/include/assert.h with the
following patch, which is equivalent to the functionality that
makedepend can't grok:

--- assert.h.orig	Fri Oct 13 11:04:54 2000
+++ assert.h	Fri Oct 13 11:02:28 2000
@@ -94,7 +94,11 @@
    This is broken in G++ before version 2.6.
    C9x has a similar variable called __func__, but prefer the GCC one since
    it demangles C++ function names.  */
-# if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4)
+# if defined __cplusplus
+#  if __GNUC_PREREQ (2, 6)
+#   define __ASSERT_FUNCTION	__PRETTY_FUNCTION__
+#  endif
+# elif __GNUC_PREREQ (2, 4)
 #   define __ASSERT_FUNCTION	__PRETTY_FUNCTION__
 # else
 #  if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L


-- System Information
Debian Release: testing/unstable
Kernel Version: Linux lapdog 2.4.19 #1 Fri Oct 25 12:48:10 CEST 2002 i686 unknown unknown GNU/Linux

Versions of the packages xutils depends on:
ii  libc6          2.3.1-5        GNU C Library: Shared libraries and Timezone
ii  libncurses5    5.3.20021109-2 Shared libraries for terminal handling
ii  xfree86-common 4.2.1-4        X Window System (XFree86) infrastructure
ii  zlib1g         1.1.4-8        compression library - runtime




Reply to: