Subject: Re: bug#13495: Compilation fails on Mac OS X 10.8.0

From: Paul Eggert <[email-masked]>
Date: Thu, 24 Jan 2013 13:38:16 -0800

On 01/24/13 13:07, Assaf Gordon wrote:
>   $ CFLAGS="-g -O0" ./configure

Isn't it better to use this?

   ./configure CFLAGS="-g -O0"

If that works, it solves your problem.
Otherwise:

>   $ make
>   [ ... snip ... ]
>     CCLD     src/dircolors
>   Undefined symbols for architecture x86_64:
>     "___stpncpy_chk", referenced from:

This is the broken stpncpy implementation on OS X.
But why isn't 'configure' catching that?
What is the value of HAVE_STPNCPY?  It should
not be 1.  config.log should tell you why it has
the wrong value.