From: Ruby Ruby Date: 2004-03-26T12:11:54+09:00 Subject: Re: Errors with "make" step, while compiling ruby under AIX 5.2 --0-180751092-1080270711=:17387 Content-Type: text/plain; charset=us-ascii Nobu, thank you for your reply. However, now I have a new problem after implementing the patch. Below I am adding the new error and the actual patch file. root@s19 # make compiling Win32API Target "all" is up to date. Target "install" is up to date. compiling bigdecimal Target "all" is up to date. compiling curses Target "all" is up to date. Target "install" is up to date. compiling dbm Target "all" is up to date. Target "install" is up to date. compiling digest Target "all" is up to date. compiling digest/md5 Target "all" is up to date. compiling digest/rmd160 /installfs/ruby181/ruby-1.8.1/ext/digest/rmd160/extconf.rb:6: undefined method `-@' for "-g -O2":String (NoMethodError) from ./ext/extmk.rb:77:in `load' from ./ext/extmk.rb:77:in `extmake' from ./ext/extmk.rb:224 from ./ext/extmk.rb:221:in `glob' from ./ext/extmk.rb:221 make: 1254-004 The error code from the last command is 1. Stop. ************************** Here is the extconf.rb ************************** # $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $ # $Id: extconf.rb,v 1.4 2002/09/26 17:26:46 knu Exp $ require "mkmf" -$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.." +$CPPFLAGS << " -DNDEBUG -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.." $objs = [ "rmd160init.#{$OBJEXT}" ] dir_config("openssl") if !with_config("bundled-rmd160") && have_library("crypto") && have_header("openssl/ripemd.h") $objs << "rmd160ossl.#{$OBJEXT}" $libs << " -lcrypto" else $objs << "rmd160.#{$OBJEXT}" << "rmd160hl.#{$OBJEXT}" end have_header("sys/cdefs.h") have_header("inttypes.h") have_header("unistd.h") create_makefile("digest/rmd160") Thank you for your help nobu.nokada@softhome.net wrote: Hi, At Fri, 26 Mar 2004 05:25:42 +0900, Ruby Ruby wrote in [ruby-talk:95875]: > ld: 0711-317 ERROR: Undefined symbol: .__eprintf Seems to be used by assert() macro. This patch will disable it. Index: ext/digest/rmd160/extconf.rb =================================================================== RCS file: /pub/cvs/ruby/src/ruby/ext/digest/rmd160/extconf.rb,v retrieving revision 1.4.2.1 diff -u -2 -p -r1.4.2.1 extconf.rb --- ext/digest/rmd160/extconf.rb 21 Jan 2004 07:01:43 -0000 1.4.2.1 +++ ext/digest/rmd160/extconf.rb 26 Mar 2004 00:50:01 -0000 @@ -4,5 +4,5 @@ require "mkmf" -$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.." +$CPPFLAGS << " -DNDEBUG -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.." $objs = [ "rmd160init.#{$OBJEXT}" ] -- Nobu Nakada --------------------------------- Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. --0-180751092-1080270711=:17387--