From: Ryan Davis Date: 2013-02-28T06:43:05+09:00 Subject: Re: Problem building Ruby 1.9.3 patchlevel 385 under AIX 7.1 On Feb 27, 2013, at 09:52 , Ruby Student wrote: > Anybody there? Anybody at all! > > On Wed, Feb 6, 2013 at 1:18 PM, Ruby Student wrote: > Hello World! > > I am trying to build Ruby 1.9.3 patchlevel 385 under AIX 7.1. The ./configure phase goes OK. The make part did not go well and end up with the errors listed below. > Any help will be really appreciated. > > [nim]:root:/export/software/other_software/ruby-1.9.3-p385 # make > CC = gcc > LD = ld > LDSHARED = gcc -Wl,-G > CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration > XCFLAGS = -include ruby/config.h -include ruby/missing.h -DRUBY_EXPORT > CPPFLAGS = -I. -I.ext/include/rs6000-aix -I./include -I. > DLDFLAGS = -eInit_ > SOLIBS = > linking miniruby > rbconfig.rb unchanged > generating enc.mk > generating prelude.c > compiling prelude.c > linking static-library libruby-static.a > generating encdb.h > encdb.h unchanged > making enc > Target "enc" is up to date. > making srcs under enc > Target "srcs" is up to date. > generating transdb.h > transdb.h unchanged > making ./enc/trans > Target "./enc/trans" is up to date. > making encs > Target "encs" is up to date. > installing default resize libraries > Target "all" is up to date. > installing default bug libraries > Target "all" is up to date. > installing default bug libraries > Target "all" is up to date. > installing default funcall libraries > Target "all" is up to date. > linking shared-object -test-/load/dot.dot/dot.dot.so > ld: 0711-327 WARNING: Entry point not found: Init_dot.dot > ld: 0711-244 ERROR: No csects or exported symbols have been saved. > collect2: error: ld returned 8 exit status > make: 1254-004 The error code from the last command is 1. This problem is probably better posed to ruby-core@ instead of here... but to start, let's look at your problem: 10003 % more ext/-test-/load/dot.dot/dot.dot.c void Init_dot(void) {} Nothing really in there BUT the one function you're having problems with. 10004 % nm ext/-test-/load/dot.dot/dot.dot.o 0000000000000ef0 s EH_frame1 0000000000000000 T _Init_dot 0000000000000f08 S _Init_dot.eh 10013 % nm .ext/*/-test-/load/dot.dot/dot.dot.* 0000000000000f60 T _Init_dot U dyld_stub_binder You can see the T entry for _Init_dot. I'm guessing you have that. Why you're trying to pick up Init_dot.dot instead of Init_dot is strange and points at the loader not assembling the right name to begin with. I'm not familiar with that code and someone else on ruby-core@ will have to help. Please provide your equivalents to my commands above when you mail them. You can also use http://bugs.ruby-lang.org/ to file the ticket directly. > Stop. > make: 1254-004 The error code from the last command is 2. > > > Stop. > make: 1254-004 The error code from the last command is 2. > > > Stop. > > > Thank you > > -- > Ruby Student > > > > -- > Ruby Student