[Bug 205307] lang/perl5.22: 5.22.1_4 undefined reference to `__stack_chk_fail_local'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Dec 14 16:41:08 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205307

Konstantin Belousov <kib at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pfg at FreeBSD.org

--- Comment #6 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Mathieu Arnold from comment #5)
It is really not strange after looking at the code.  Configure does the
following:

    case "$gccversion" in
    ?*)    set stack-protector-strong -fstack-protector-strong
        eval $checkccflag
        case "$dflt" in
        *-fstack-protector-strong*) ;; # It got added.
        *) # Try the plain/older -fstack-protector.
           set stack-protector -fstack-protector
           eval $checkccflag
           ;;
        esac
        ;;
    esac

-fstack-protector-strong was added to stable/9 by r286714, the check for the
flag passes, and the flag is used for compilation.  Whatever is needed for
linking, does not satisfy the perl build expectation, and the things break.

It seems that -fstack-protector-strong is broken on stable/9 and should be
patched out, at least in the perl Configure.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the freebsd-perl mailing list