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

Bug#549513: fails to build with newer eglibc/gcc-4.4

Package: wvdial
Version: 1.60.2
Severity: normal
Tags: patch


during Ubuntu's rebuild test, wvdial failed to build [1]. While the failure 
showing in the build log is already fixed in 1.60.2, either the newer eglibc 
or gcc-4.4 doesn't allow an implicit cast.

Attached is a patch to fix the build failure. Would be cool if you can add



-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic-updates
  APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-11-generic (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages wvdial depends on:
ii  debcon 1.5.27ubuntu1                     Debian configuration management sy
ii  libc6  2.10.1-0ubuntu12                  GNU C Library: Shared libraries
pn  libuni <none>                            (no description available)
ii  libwvs 4.4.1-1.1                         C++ network libraries for rapid ap
ii  libwvs 4.4.1-1.1                         C++ network libraries for rapid ap
ii  libxpl 0.3.13-2ubuntu2                   Light weight component system
ii  ppp    2.4.5~git20081126t100229-0ubuntu2 Point-to-Point Protocol (PPP) - da

wvdial recommends no packages.

wvdial suggests no packages.
diff -Nru wvdial-1.60.1+nmu2/wvmodemscan.cc wvdial-1.60.1+nmu2ubuntu1/wvmodemscan.cc
--- wvdial-1.60.1+nmu2/wvmodemscan.cc	2007-07-19 23:22:26.000000000 +0200
+++ wvdial-1.60.1+nmu2ubuntu1/wvmodemscan.cc	2009-10-03 23:19:59.000000000 +0200
@@ -496,10 +496,8 @@
-static int filesort(const void *_e1, const void *_e2)
+static int filesort(const struct dirent **e1, const struct dirent **e2)
-    dirent const * const *e1 = (dirent const * const *)_e1;
-    dirent const * const *e2 = (dirent const * const *)_e2;
     const char *p1, *p2;
     int diff;

Reply to: