From: Conrad Schneiker Date: 2000-12-31T15:22:09+09:00 Subject: [ruby-talk:8384] Re: Ruby 1.6.2 Conrad Schneiker wrote: # As always, thanks for the latest and greatest Ruby. # # For AIX 4.3, Ruby 1.6.2 built fine. # # However I encountered problems trying to build Ruby 1.6.2 under # AIX5L on the IA64 platform. (FWIW, before trying to build Ruby # 1.6.2, I was able to build glib and GTK+ and run the helloworld.c # demo with no problems.) Well, I think I know what the problem is; the following changes (adding "&& ! defined(_IA64)" in a couple of places seems to fix the original problem: ====================================================== # diff -c dln.c.orig dln.c *** dln.c.orig Sat Dec 30 23:28:53 2000 --- dln.c Sat Dec 30 23:38:33 2000 *************** *** 1166,1172 **** } ! #if defined(_AIX) static void aix_loaderror(const char *pathname) { --- 1166,1172 ---- } ! #if defined(_AIX) && ! defined(_IA64) static void aix_loaderror(const char *pathname) { *************** *** 1310,1316 **** } #endif /* hpux */ ! #if defined(_AIX) #define DLN_DEFINED { void (*init_fct)(); --- 1310,1316 ---- } #endif /* hpux */ ! #if defined(_AIX) && ! defined(_IA64) #define DLN_DEFINED { void (*init_fct)(); ====================================================== However, there is another problem that will take a change to configure, and I'm not sure of how you want to handle it. On the IA64 platform, ld works more like the SCO ld in terms of options (i.e. it is not a port of the AIX ld on the PPC platform). Hence this error: ====================================================== /usr/ccs/bin/ld -brtl -eInit_curses -bI:/driver/tools/src/ruby/ruby-1.6.2/ruby.im p -bM:SRE -T512 -H512 -lc -L/driver/tools/src/ruby/ruby-1.6.2 -o curses.so curses.o -lcu rses -ltermcap -lc /usr/ccs/bin/ld: illegal option -- H ld: ld [-abmrstvGV] [-defholuyzBILMR argument] file(s) ... make: The error code from the last command is 1. Stop. ====================================================== Conrad Schneiker (This note is unofficial and subject to improvement without notice.)