# Ruby-frontbase doesn't compile on Mac OS X version 10.5

**URL:** <https://www.ruby-forum.com/t/ruby-frontbase-doesnt-compile-on-mac-os-x-version-10-5/118679>\
**Category:** Ruby\
**Created:** [October 30, 2007, 12:35am UTC](https://www.ruby-forum.com/t/ruby-frontbase-doesnt-compile-on-mac-os-x-version-10-5/118679 "2007-10-30T00:35:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lists](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/cdc98d/32.png) [@lists](https://www.ruby-forum.com/u/lists)\
**Post date:** [October 30, 2007, 12:35am UTC](https://www.ruby-forum.com/t/ruby-frontbase-doesnt-compile-on-mac-os-x-version-10-5/118679/1 "2007-10-30T00:35:12Z")

</div>

Hi,  
When trying to compile ruby-frontbase version 1.0.1 on a G5 PPC  
machine, I get this:

# gem install ruby-frontbase

Building native extensions. This could take a while…  
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)  
ERROR: Failed to build gem native extension.

ruby extconf.rb install ruby-frontbase  
creating Makefile

make  
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/  
lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/  
Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -  
I/Library/FrontBase/include -fno-common -arch ppc -arch i386 -Os -pipe  
-fno-common -c frontbase.c  
frontbase.c:24: error: redefinition of ‘struct FBCLob’  
frontbase.c:27: error: redefinition of typedef ‘FBCLob’  
/Library/FrontBase/include/FBCAccess/FBCRow.h:49: error: previous  
declaration of ‘FBCLob’ was here  
frontbase.c:29: error: redefinition of typedef ‘FBCColumn’  
/Library/FrontBase/include/FBCAccess/FBCRow.h:14: error: previous  
declaration of ‘FBCColumn’ was here  
frontbase.c:32: error: redefinition of ‘union FBCColumn’  
frontbase.c:63: error: redefinition of typedef ‘FBCRow’  
/Library/FrontBase/include/FBCAccess/FBCRow.h:103: error: previous  
declaration of ‘FBCRow’ was here  
frontbase.c:24: error: redefinition of ‘struct FBCLob’  
frontbase.c:27: error: redefinition of typedef ‘FBCLob’  
/Library/FrontBase/include/FBCAccess/FBCRow.h:49: error: previous  
declaration of ‘FBCLob’ was here  
frontbase.c:29: error: redefinition of typedef ‘FBCColumn’  
/Library/FrontBase/include/FBCAccess/FBCRow.h:14: error: previous  
declaration of ‘FBCColumn’ was here  
frontbase.c:32: error: redefinition of ‘union FBCColumn’  
frontbase.c:63: error: redefinition of typedef ‘FBCRow’  
/Library/FrontBase/include/FBCAccess/FBCRow.h:103: error: previous  
declaration of ‘FBCRow’ was here  
lipo: can’t open input file: /var/tmp//ccaAFraO.out (No such file or  
directory)  
make: \*\*\* [frontbase.o] Error 1

Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/ruby-  
frontbase-1.0.1 for inspection.  
Results logged to /Library/Ruby/Gems/1.8/gems/ruby-frontbase-1.0.1/  
gem\_make.out

Does anyone a) how to fix this and/or b) whom I should contact about  
getting the gem to work under Leopard?

Thanks.

---

<div class="post-metadata">

**Author:** ![lists](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/cdc98d/32.png) [@lists](https://www.ruby-forum.com/u/lists)\
**Post date:** [November 2, 2007, 3:37pm UTC](https://www.ruby-forum.com/t/ruby-frontbase-doesnt-compile-on-mac-os-x-version-10-5/118679/2 "2007-11-02T15:37:48Z")

</div>

In case anyone’s interested, here’s how I got it to install:

1. Download the gem source (ruby-frontbase-src-1.0.1.tgz) from  
[http://rubyforge.org](http://rubyforge.org)  
([http://rubyforge.org/frs/?group\_id=1635&release\_id=5201](http://rubyforge.org/frs/?group_id=1635&release_id=5201)).

2. Do the following:

tar xzf ruby-frontbase-src-1.0.1.tgz

cd ruby-frontbase

\<edit frontbase.c so that lines 23-63 are commented out\>

gem build ruby-frontbase.gemspec

sudo gem install ruby-frontbase
