On Fri, 12 Jul 2019 at 14:37, Bram Moolenaar <
Br...@moolenaar.net> wrote:
> It looks like you run into the false-positive fortify check.
> Although the build log mentiones -D_FORTIFY_SOURCE=1 it behaves like a
> higher fortify level was used.
Thanks for your input Bram. I wanted to make a couple of checks before
getting back you.
In pkgsrc, as default we have:
PKGSRC_USE_FORTIFY?= strong
As explained here:
http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/mk/defaults/mk.conf
PKGSRC_USE_FORTIFY?= strong
# Turns on substitute wrappers for commonly used functions that do not bounds
# checking regularly, but could in some cases. This is effectively in use only
# when both enabled and supported.
# Possible values:
# no: Do not pass any flags for FORTIFY
# weak: Pass -D_FORTIFY_SOURCE=1
# strong: Pass -D_FORTIFY_SOURCE=2
# Default: strong
I have rebuilt with PKGSRC_USE_FORTIFY?=weak
and this seems to produce an installation that doesn't crash.
I've passed this information to pkgsrc-users and the editors/vim
package maintainer.
Thanks for you assistance.
--
Ottavio Caruso