I'm trying to compile ruby-1.8.5 on a rather old Linux box,
and it's failing in ext/openssl,

  gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -I/users/kleb/local/openssl/include  -fPIC -g -O2  -c ossl_bio.c
  ossl_bio.c: In function `ossl_obj2bio':
  ossl_bio.c:23: called object is not a function
  make: *** [ossl_bio.o] Error 1

Does this error look familiar to anyone?

     21      if (TYPE(obj) == T_FILE) {
     22          OpenFile *fptr;
   > 23          GetOpenFile(obj, fptr);
     24          rb_io_check_readable(fptr);
     25          bio = BIO_new_fp(fptr->f, BIO_NOCLOSE);
     26      }

As you can see, I tried supplying a fresh openssl (0.9.7k),
but the error didn't change.

Here's the state of gcc on this box,

  gcc -v
  Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
  Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
  Thread model: posix
  gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

Thanks,
--
Bil Kleb
http://fun3d.larc.nasa.gov