[Boost-bugs] [Boost C++ Libraries] #4788: boost.system doesn't link on Mac OS 10.4 SDK

Subject: [Boost-bugs] [Boost C++ Libraries] #4788: boost.system doesn't link on Mac OS 10.4 SDK
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-25 21:18:38

#4788: boost.system doesn't link on Mac OS 10.4 SDK
 Reporter: gse.nuks@… | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: system
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
 Hello everyone.

 In fact i'm compiling on Mac OS 10.6, but i was trying to compile for 10.4
 to get a better compatibility for my application. It was working until I
 add the boost filesystem library, which uses the boost system library.

 I got the following answer :

  "___stack_chk_fail", referenced from:
       (anonymous namespace)::generic_error_category::message(int) constin

   "___stack_chk_guard", referenced from:
       ___stack_chk_guard$non_lazy_ptr in libboost_system.a(error_code.o)
      (maybe you meant: ___stack_chk_guard$non_lazy_ptr)

 ld: symbol(s) not found
 collect2: ld returned 1 exit status

 The fact is that when i changed the var "Base SDK" [SDKROOT] from
 macosx10.4 to macosx10.5, it just worked well.

 I found more or less the same problem on another project:
 It notices:

 If you get linker errors like /usr/bin/ld: Undefined symbols:
 ___stack_chk_fail, ___stack_chk_guard, this comes from using a libc that
 is not glibc >=2.4. Until this is detected by the build system, you can
 hack it by removing the "-fstack-protector-all" line (and the next line
 too if needed) from build/premake/premake.lua

 It would be great if it was possible to patch that.
 Hope this ticket wasn't already posted.
 Best regards.


Ticket URL: <https://svn.boost.org/trac/boost/ticket/4788>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC