Menu

#4 Error linking under 10.4

closed-postponed
Mac OS X (2)
5
2008-01-24
2007-12-13
No

Anyway, i used it succesfully on Leopard with Xcode 3 and tried to do the same with Tiger and my Xcode 2.5 and 2.4.1 versions. It results by a compilation error :
/usr/bin/ld: /Developer/Local/Frameworks/RegexKit.framework/RegexKit unknown flags (type) of section 5 (__TEXT,__dof_RegexKit) in load command 0
I know that I can use Xcode 3 on tiger but i really need to work with the previous versions of Xcode.
Thanks for your help.

Discussion

  • brettper

    brettper - 2008-01-12

    Logged In: YES
    user_id=1754230
    Originator: NO

    The same error occurs when using Xcode 2.5 on Leopard

     
  • John Engelhart

    John Engelhart - 2008-01-24
    • status: open --> closed-postponed
     
  • John Engelhart

    John Engelhart - 2008-01-24

    Logged In: YES
    user_id=1879513
    Originator: YES

    I have written up a section in the 0.6 release notes describing this issue. I have opened a bug with apple, # 5698078, regarding this issue. See the 0.6 release notes for more information. The short version is: It only effects the final linking step during development. Apple added a new section type to support DTrace, and the older ld linker generates an error when it encounters. Execution with a regexkit shared library that includes dtrace support under 10.4 works fine, it's just the development time final linking. The only workaround (aside from apple making a simple fix to the older tool chain) is to rebuild the framework without dtrace support and use that library for 10.4 / XCode 2.5 development work. Since executing the regexkit shared library with dtrace support works just fine on 10.4, the rebuilt library is really only needed for the final link step. The fully functional regexkit can be copied in to the applications .App bundle without any issues.

     

Log in to post a comment.

Auth0 Logo