From: Garance A Drosehn Date: 2006-06-18T13:25:22+09:00 Subject: Re: Compiling AIX 4.3.3 ruby 1.8.4 On 6/17/06, Lanny Rosicky wrote: > > Now I am struggling with > ./ext/extmk.rb:168: warning: Insecure world writable dir /tmp, mode > 0241777 Aside: you might want to alter your setting for PATH to avoid any references to /tmp, assuming that won't cause problems for you. That will get rid of the above warning that you will keep seeing... > /usr/ccs/bin/ld -brtl -eInit_socket -bI:../../ruby.imp -bM:SRE > -T512 -H512 -L"../.." -o ../../.ext/powerpc-aix4.3.3.0/socket.so > socket.o -ldl -lcrypt -lm -lc > ld: 0711-317 ERROR: Undefined symbol: .CMSG_SPACE > ld: 0711-317 ERROR: Undefined symbol: .CMSG_LEN > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more > information. > make: 1254-004 The error code from the last command is 8. I built ruby 1.8.4 on our version of AIX 4.3 here at RPI, which could very well be different than the real AIX 4.3... :-) First off, make sure you have the latest version of zlib installed (version 1.2.3 or better), and that you are certain to pick up that new version instead of some ancient version that might be lying around. I forget what problem comes up if you get the wrong version, but I do know that I couldn't get ruby to build when I had the wrong version. And as the error message says, you can use "-bloadmap" or "-bnoquiet" on the command that failed, to get a more detailed error message for whatever is failing. My notes (to myself) for building on aix43 said: Add #ifndef to this definition in config.h... #ifndef _ALL_SOURCE #define _ALL_SOURCE 1 #endif Apparently have to do the standard plain 'make', then do a 'make ruby.imp' and then redo the plain 'make'. Weird. I did get ruby itself built without too much trouble, although I don't seem to have readline hooked up right, so cursor movements in `irb' don't work as well as I'd like. I never looked into that problem, as I don't really need to have irb working on aix43. -- Garance Alistair Drosehn = drosihn@gmail.com Senior Systems Programmer Rensselaer Polytechnic Institute; Troy, NY; USA