From: Daniel Berger Date: 2003-11-01T07:05:30+09:00 Subject: Re: 64-bit Ruby on Solaris? ts wrote: > > >>>>> "D" == Daniel Berger writes: > > Here the reason, why it don't find _cnt and _ptr > > D> #ifdef _LP64 > D> #ifndef _FILE64_H > D> struct __FILE_TAG { > D> long __pad[16]; > D> }; > D> #endif /* _FILE64_H */ > > Guy Decoux Sorry if the attachment on that last post didn't come through properly - ack. In any case, I tried setting CFLAGS to '-m64 -mcpu=ultrasparc' (which I thought I had done but apparently not) and then re-running configure. The good news is that configure seems to work properly, i.e. I got past io.c without incident. However, it died when I got here: gcc -fPIC -m64 -mcpu=ultrasparc -I. -I/usr/local/src/ruby-1.8.1 -I/usr/local/src/ruby-1.8.1 -I/usr/local/src/ruby-1.8.1/ext/bigdecimal -c bigdecimal.c gcc -Wl,-G -L"/usr/local/src/ruby-1.8.1" -L"/opt/lib" -o bigdecimal.so bigdecimal.o -ldl -lcrypt -lm -lc ld: fatal: file bigdecimal.o: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to bigdecimal.so collect2: ld returned 1 exit status make[1]: *** [bigdecimal.so] Error 1 make[1]: Leaving directory `/usr/local/src/ruby-1.8.1/ext/bigdecimal' make: *** [all] Error 1 I tried setting LDFLAGS to '-m64' but that didn't seem to help. Is there some other env variable I need to set? Regards, Dan