ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
mkmf problems on Mac OS X Leopard
by Wincent Colaiuta other posts by this author
Oct 29 2007 8:10AM messages near this date
Re: [ANN] RubyJS 0.6 - pre-RubyConf version | Re: mkmf problems on Mac OS X Leopard
Here's an excerpt from a simple extconf.rb:

    have_header('antlr3.h')
    have_library('antlr3c', 'antlr3ParserNew')

The "have_library" line worked fine on the previous version of Mac OS
X (Tiger), but under Leopard it can't find the library. Output is:

    checking for antlr3ParserNew() in -lantlr3c... no

The library is definitely present at "/usr/local/lib/libantlr3c.a" and
inspection using the "nm" tool reveals that the "antlr3ParserNew"
symbol is definitely present in the library.

I've also tried using "find_library" with an explicit path to the
directory containing the library, and I've also tried making a dynamic
version of the library available instead of the static one, but mkmf
simply can't find the library.

Is there anyway I can get mkmf to be more verbose so that I can
diagnose what's happening here?

Best wishes,
Wincent
Thread:
Wincent Colaiuta
Laurent Sansonetti
Wincent Colaiuta
Tim Hunter
Wincent Colaiuta
Wincent Colaiuta
Has

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved