bug-guile
[Top][All Lists]
Advanced

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

Re: guile 1.6.8 make check failure on AIX 6.1


From: Rainer Tammer
Subject: Re: guile 1.6.8 make check failure on AIX 6.1
Date: Mon, 04 Feb 2008 08:21:24 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.0

Hello,

Neil Jerram wrote:
Rainer Tammer <address@hidden> writes:

ERROR: srfi-4.test: u8 vector: u8vector? success - arguments:
((memory-allocation-error "make-u8vector" "Memory allocation error" #f
#f))
[...]

Those errors would occur if realloc(NULL, 0) returns NULL on AIX.
(Whereas on GNU/Linux, it returns non-NULL.)  Can you try
realloc(NULL, 0) and confirm/deny that it gives NULL for you?

#include <stdio.h>

int main(void)
{
   char *t;

   t = (char*)realloc(NULL, 0);
   if (t == NULL)
   {
       printf("is NULL\n");
   }
   else
   {
       printf("is not NULL\n");
   }
   return(0);
}


Under Linux: is not NULL
Under AIX: is NULL

This is an "old" AIX difference....

Thanks,
        Neil


Bye
 Rainer





reply via email to

[Prev in Thread] Current Thread [Next in Thread]