Hello,
Ludovic Courtès wrote:
Hi Rainer,
Rainer Tammer <[EMAIL PROTECTED]> 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
-I/opt/freeware/include"
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")
(tzset)
(let ((tm (localtime 86400)))
(strftime "%z" tm)))
guile> "GMT"
3. (begin
(putenv "TZ=EST+5")
(tzset)
(let ((tm (localtime 86400)))
(strftime "%z" tm)))
guile> "EST"
and this is TZ:
# echo $TZ
NFT-1DFT,M3.5.0/2:00:00,M10.5.0/3:00:00
Thanks a lot for your help and perseverance!
Ludo'.
Bye
Rainer