-fstack-protector - Build Break.

Ira Cooper ira at samba.org
Tue Mar 5 18:00:24 MST 2013


The correct thing to do is:

If we compile with -fstack-protector, we link with -fstack-protector.  Fix
included, please push, if appropriate.

-Ira


On Tue, Mar 5, 2013 at 7:05 PM, Ira Cooper <ira at samba.org> wrote:

> I had to apply the following two reverts in order to build locally,
> reverting:
>
> 240a55249d00c1e73400b480d4bc924edae94022 and
> d537d64ab88ed3526425a71730acc0a36f7aab63 .
> The problem I'm hitting:
>
> WAF_MAKE=1 python ./buildtools/bin/waf build
> Waf: Entering directory `/clusters/samba/master-scratch2/bin'
>     Selected system MIT krb5 libraries, Heimdal use is disabled
> [   5/2640] Generating VERSION
> [  28/2640] Generating smbd/build_options.c
> [2467/2640] Linking default/lib/tdb/tdbtorture
> Undefined                       first referenced
>  symbol                             in file
> __stack_chk_fail                    default/lib/tdb/libtdb.so
> __stack_chk_guard                   default/lib/tdb/libtdb.so
> ld: fatal: symbol referencing errors. No output written to
> /clusters/samba/master-scratch2/bin/default/lib/tdb/tdbtorture
> collect2: error: ld returned 1 exit status
> Waf: Leaving directory `/clusters/samba/master-scratch2/bin'
> Build failed:  -> task failed (err #1):
>         {task: cc_link tdbtorture_4.o -> tdbtorture}
> make: *** [all] Error 1
>
> Thanks,
>
> -Ira
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-waf-add-fstack-protector-to-LDFLAGS-if-detected.patch
Type: application/octet-stream
Size: 794 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130305/f24d7548/attachment.obj>


More information about the samba-technical mailing list