Karthick K
2018-09-08 09:34:56 UTC
When I tried to compile ruby 2.5.1 getting the below error,
compiling parse.c
compiling string.c
compiling symbol.c
compiling vm.c
make[3]: Leaving directory '/usr/share/src/ruby-2.5.1'
processing probes in object files
linking miniruby
./tool/ifchange "--timestamp=.rbconfig.time" rbconfig.rb rbconfig.tmp
rbconfig.rb unchanged
creating verconf.h
verconf.h updated
compiling loadpath.c
generating a glommed object with DTrace probes for static library
linking static-library libruby-static.a
generating enc.mk
compiling enc/encinit.c
linking ruby
Undefined first referenced
symbol in file
ffi_raw_size ext/fiddle/fiddle.a(function.o)
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:239: ruby] Error 1
make[2]: Leaving directory '/usr/share/src/ruby-2.5.1'
make[1]: *** [exts.mk:149: ruby] Error 2
make[1]: Leaving directory '/usr/share/src/ruby-2.5.1'
make: *** [Makefile:776: build-ext] Error 2
I tried compile with *--with-static-linked-ext --enable-load-relative
--without-X11 --disable-install-doc --disable-install-rdoc* and the worked
on CentOS 6. May I know why am getting this error and how to solve it?
Thanks
Karthick
compiling parse.c
compiling string.c
compiling symbol.c
compiling vm.c
make[3]: Leaving directory '/usr/share/src/ruby-2.5.1'
processing probes in object files
linking miniruby
./tool/ifchange "--timestamp=.rbconfig.time" rbconfig.rb rbconfig.tmp
rbconfig.rb unchanged
creating verconf.h
verconf.h updated
compiling loadpath.c
generating a glommed object with DTrace probes for static library
linking static-library libruby-static.a
generating enc.mk
compiling enc/encinit.c
linking ruby
Undefined first referenced
symbol in file
ffi_raw_size ext/fiddle/fiddle.a(function.o)
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:239: ruby] Error 1
make[2]: Leaving directory '/usr/share/src/ruby-2.5.1'
make[1]: *** [exts.mk:149: ruby] Error 2
make[1]: Leaving directory '/usr/share/src/ruby-2.5.1'
make: *** [Makefile:776: build-ext] Error 2
I tried compile with *--with-static-linked-ext --enable-load-relative
--without-X11 --disable-install-doc --disable-install-rdoc* and the worked
on CentOS 6. May I know why am getting this error and how to solve it?
Thanks
Karthick