From: KUBO Takehiro Date: 2005-01-29T14:53:31+09:00 Subject: Re: Ruby on AIX? At Sat, 22 Jan 2005 01:37:24 +0900, nobu.nokada@softhome.net wrote: > > Hi, > > At Wed, 19 Jan 2005 21:52:06 +0900, > KUBO Takehiro wrote in [ruby-talk:127124]: > > > @@ -882,5 +882,5 @@ if test "$with_dln_a_out" != yes; then > > > XLDFLAGS="$XLDFLAGS -Wl,-bE:ruby.imp" > > > DLDFLAGS='-brtl -bI:$(topdir)/ruby.imp -bM:SRE -T512 -H512 '"$DLDFLAGS" > > > - ARCH_FLAGS='-eInit_$(TARGET)' > > > + ARCH_FLAG='-eInit_$(TARGET)' > > > : LDFLAGS="-brtl $LDFLAGS" > > > : ${ARCHFILE="ruby.imp"} > > > > This cause an error while linking miniruby by passing '-eInit_' to the linker. > > What about adding the option to DLDFLAGS instead of ARCH_FLAG? Another error at ext/curses. compiling curses cc -g -I. -I../.. -I../../. -I../.././ext/curses -DHAVE_CURSES_H -DHAVE_BEEP -DHAVE_BKGD -DHAVE_BKGDSET -DHAVE_CURS_SET -DHAVE_DELETELN -DHAVE_DOUPDATE -DHAVE_FLASH -DHAVE_GETBKGD -DHAVE_GETNSTR -DHAVE_INIT -DHAVE_ISENDWIN -DHAVE_KEYNAME -DHAVE_KEYPAD -DHAVE_RESIZETERM -DHAVE_SCRL -DHAVE_SET -DHAVE_SETSCRREG -DHAVE_UNGETCH -DHAVE_WATTROFF -DHAVE_WATTRON -DHAVE_WATTRSET -DHAVE_WBKGD -DHAVE_WBKGDSET -DHAVE_WDELETELN -DHAVE_WGETNSTR -DHAVE_WRESIZE -DHAVE_WSCRL -DHAVE_WSETSCRREG -DHAVE_DEF_PROG_MODE -DHAVE_RESET_PROG_MODE -DHAVE_TIMEOUT -DHAVE_WTIMEOUT -DHAVE_NODELAY -DHAVE_INIT_COLOR -c curses.c /usr/ccs/bin/ld -brtl -bI:../../ruby.imp -bM:SRE -T512 -H512 -eInit_curses -L"../.." -o curses.so curses.o -lcurses -ltermcap -ldl -lcrypt -lm -lc ld: 0711-317 ERROR: Undefined symbol: .wresize ld: 0711-317 ERROR: Undefined symbol: .resizeterm ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. make: The error code from the last command is 8. have_func() in extconf.rb doesn't work correctly. Even though testing symbol doesn't exit, cc's exit code is zero. $ cat conftest.c int main() { return 0; } int t() { wresize(); return 0; } $ cc -brtl -bI:/home/kubo/src/ruby-1.8.2/ruby.imp -bM:SRE -T512 -H512 -eInit_$(TARGET) -oconftest -I/home/kubo/src/ruby-1.8.2 -I../../. -g conftest.c -L"/home/kubo/src/ruby-1.8.2" -lcurses -ltermcap -lruby-static -lcurses -ltermcap -ldl -lcrypt -lm -lc bash: TARGET: command not found ld: 0711-327 WARNING: Entry point not found: Init_ $ echo $? 0 If '-eInit_$(TARGET)' is not set, its exit code is non-zero as expected. $ cc -brtl -bI:/home/kubo/src/ruby-1.8.2/ruby.imp -bM:SRE -T512 -H512 -oconftest -I/home/kubo/src/ruby-1.8.2 -I../../. -g conftest.c -L"/home/kubo/src/ruby-1.8.2" -lcurses -ltermcap -lruby-static -lcurses -ltermcap -ldl -lcrypt -lm -lc ld: 0711-317 ERROR: Undefined symbol: .wresize ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. $ echo $? 8 -- KUBO Takehiro kubo@jiubao.org