On Thu, May 22, 2003 at 08:56:18PM +0900, Rasputin wrote:
> rasputin@shrike cruby$ gcc -c -o Test.o -I \
> /usr/local/lib/ruby/1.6/i386-freebsd4/ simple.c
> rasputin@shrike cruby$ ls
> Test.o          simple.c        test.rb
> rasputin@shrike cruby$ file Test.o
> Test.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (FreeBSD),
> not stripped

You have to build it as a shared library (.so)

$ file /usr/local/lib/ruby/site_ruby/1.6/i386-freebsd4.7/fcgi.so 
/usr/local/lib/ruby/site_ruby/1.6/i386-freebsd4.7/fcgi.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), not stripped

Cheers,

Brian.