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

[Mailer-Daemon@www.linux.org.uk: Mail delivery failed: returning message to sender]



----- Forwarded message from Mail Delivery System <Mailer-Daemon@www.linux.org.uk> -----

On Tue, Mar 26, 2002 at 12:06:18PM +0100, Yann Dirson wrote:
> The problems appears to be that the libxml2 includes location do not
> get correctly autodetected (and hence there is no -I
> /usr/include/libxml2 on gcc command-lines).

Yep.  It's a %^#&*%^ missing include.  strdup is being implicitly
declared to return `int' which gets truncated, so the program segfaults
and we lose.  Here's a patch:

--- aclocal.m4.orig	Tue Mar 26 09:18:14 2002
+++ aclocal.m4	Tue Mar 26 09:19:31 2002
@@ -4889,6 +4889,7 @@
       AC_TRY_RUN([
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <xmlversion.h>
 
 int 
@@ -4902,7 +4903,7 @@
 
   /* Capture xml2-config output via autoconf/configure variables */
   /* HP/UX 9 (%@#!) writes to sscanf strings */
-  tmp_version = (char *)strdup("$min_xml_version");
+  tmp_version = strdup("$min_xml_version");
   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
      printf("%s, bad version string from xml2-config\n", "$min_xml_version");
      exit(1);
@@ -4910,7 +4911,7 @@
    free(tmp_version);
 
    /* Capture the version information from the header files */
-   tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
+   tmp_version = strdup(LIBXML_DOTTED_VERSION);
    if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
      printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
      exit(1);

-- 
Revolutions do not require corporate support.

----- End forwarded message -----

-- 
Revolutions do not require corporate support.


-- 
To UNSUBSCRIBE, email to debian-ia64-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: