bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13495: Compilation fails on Mac OS X 10.8.0


From: Assaf Gordon
Subject: bug#13495: Compilation fails on Mac OS X 10.8.0
Date: Thu, 24 Jan 2013 16:07:33 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4

Paul Eggert wrote, On 01/22/2013 01:20 AM:
> On 01/21/2013 11:39 AM, Assaf Gordon wrote:
>> This fixes the problem. Compilation succeeds with both gcc and clang.
> 
> Thanks for checking.  I pushed the following patch into gnulib
> and am marking this coreutils bug as done.
> 

Just a follow-up, not necessarily a gnulib/coreutils bug:

compiling using defaults works:
  ./configure
  make
or
  ./configure CC=clang
  make

But adding "CFLAGS=-g -O0" to ease debugging results in unresolved symbol 
"___stpncpy_chk":

  $ CFLAGS="-g -O0" ./configure
  $ make
  [ ... snip ... ]
    CCLD     src/dircolors
  Undefined symbols for architecture x86_64:
    "___stpncpy_chk", referenced from:
        _make_link_name in ls.o
        ___inline_stpncpy_chk in ls.o
  ld: symbol(s) not found for architecture x86_64
  collect2: ld returned 1 exit status
  make[2]: *** [src/dir] Error 1
  make[2]: *** Waiting for unfinished jobs....
  make[1]: *** [all-recursive] Error 1
  make: *** [all] Error 2

(This is not a show-stopper for me, so I'm not waiting for a solution).

  -Gordon






reply via email to

[Prev in Thread] Current Thread [Next in Thread]