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.
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.
Probably there’s nobody who dabbles with AIX. I myself know nothing
about it.
The only thing I see is that you are compiling over a previous
compilation - maybe you should start from a clean source. At this
point, you can experiment with 2.0:
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.
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.
Have you considered using JRuby?
When I was working with AIX a year ago, that’s what I did. There is an
issue with the IBM version of Java not accepting a command line flag
that
the script that invokes JRuby uses. You can find it easily with a
search.
– Matt
It’s not what I know that counts.
It’s what I can remember in time to use.
compiling prelude.c
Target “./enc/trans” 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.
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.
That’s because the configure script set “DLDFLAGS=‘-eInit_$(TARGET)’” on
AIX
and mkmf.rb creates Makefile which contains “TARGET = dot.dot”.
IMO, one line in configure.in should be changed as follows:
[aix*], [ : ${LDSHARED='$(CC)'}
LDSHARED="$LDSHARED ${linker_flag}-G"
DLDFLAGS='-e$(ENTRY_POINT)' # CHANGE THIS LINE
XLDFLAGS="${linker_flag}"'-bE:$(ARCHFILE)'" ${linker_flag}-brtl"
and two lines in lib/mkmf.rb should be added as follows:
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.
That’s because the configure script set “DLDFLAGS=‘-eInit_$(TARGET)’” on AIX
and mkmf.rb creates Makefile which contains “TARGET = dot.dot”.
IMO, one line in configure.in should be changed as follows: […]
can you provide that in unified diff format so we can more cleanly apply
it?
OK. I made the suggested changes and I got the following errors. Please
note that I am displaying only the last few records:
socket.c: In function ‘socket_s_ip_address_list’:
socket.c:1507:5: warning: implicit declaration of function ‘getifaddrs’
[-Wimplicit-function-declaration]
socket.c:1513:27: error: dereferencing pointer to incomplete type
socket.c:1514:14: error: dereferencing pointer to incomplete type
socket.c:1514:36: error: dereferencing pointer to incomplete type
socket.c:1514:36: error: dereferencing pointer to incomplete type
socket.c:1515:45: error: dereferencing pointer to incomplete type
socket.c:1519:5: warning: implicit declaration of function ‘freeifaddrs’
[-Wimplicit-function-declaration]
make: 1254-004 The error code from the last command is 1.
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.
ALSO:
I try Ruby 2.0.0-p0 and got the following error:
[nim]:root:/export/software/other_software/ruby_2.0.0_p0/ruby-2.0.0-p0 #
./configure ./configure[2783]: syntax error at line 19075 : `(’ unexpected
Thank you! I found the first of these changes are already in
ruby-1.9.3-p448, the last is not but got me building and functional on
aix-5.3. In patch form: