[Top][All Lists]

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

Re: stack overflow / partial success

From: Rainer Tammer
Subject: Re: stack overflow / partial success
Date: Mon, 18 Feb 2008 07:11:00 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv: Gecko/20070326 Thunderbird/ Mnenhy/

Ludovic Courtès wrote:
Hi Rainer,

Rainer Tammer <address@hidden> writes:

I managed to compile GUILE 1.8.3+ fixes on AIX 6.1 with IBM XL C/C++ 9.0.

Good news!

export LDFLAGS="-Wl,-brtl -L/opt/freeware/lib"
export CFLAGS="-D_USE_IRS -Dinline=__inline__ -qtune=auto -O2

Isn't it the `inline' thing that made it work?  You did not include
`config.log' and `config.h': normally, these should already define
`inline' as `__inline__'.

the inline to __inline__ mapping is needed for IBM XL C/C++. It is not needed with gcc 4.2.2.
And isn't `-O2' ignored by xlc?

It is used if I specify it. I will try if configure finds this by itself.
Besides, can you explain what `_USE_IRS' is about and whether it's
needed?  Same for `-brtl'.

-brtl is for runtime linking of the executable.

This is from netdb.h AIX 6.1:

void            freehostent(struct hostent *);  /* RFC 2553 */
#ifdef _USE_IRS
void            herror(const char *);
const char *    hstrerror(int);
#endif /* _USE_IRS */
struct hostent  *gethostbyname2(const char *, int);

So if I need herror() / hsterror() I need to define _USE_IRS ...

FAIL: time.test: strftime: C99 %z format: GMT
FAIL: time.test: strftime: C99 %z format: EST+5

These are the only two failures!  ;-)

Can you show the result of the following Scheme expressions in Guile:

  1. (strftime "%z" (gmtime 0))

guile> "GMT"

  2. (begin
       (putenv "TZ=GMT+0")
       (let ((tm (localtime 86400)))
         (strftime "%z" tm)))

guile> "GMT"

  3. (begin
       (putenv "TZ=EST+5")
       (let ((tm (localtime 86400)))
         (strftime "%z" tm)))

guile> "EST"

and this is TZ:

# echo $TZ

Thanks a lot for your help and perseverance!



reply via email to

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