I'm trying to compile Ruby 1.6.5 with gcc 3.01 on a Solaris 8 box. The
configure goes fine, but the compile dies like this:

gcc -I/opt/include  main.o dmyext.o libruby.a -ldl -lcrypt -lm   -o miniruby
Undefined                       first referenced
 symbol                             in file
sys_nerr                            libruby.a(error.o)
ReadDataPending                     libruby.a(io.o)
ld: fatal: Symbol referencing errors. No output written to miniruby
collect2: ld returned 1 exit status
make: *** [miniruby] Error 1

Is there something I'm missing?