bash is missing -Wl,-export-dynamic. Without it, bash extensions can't use symbols provided by the program ("enable -f"). Here's a patch: --- a/shells/bash/Makefile +++ b/shells/bash/Makefile @@ -55,6 +55,7 @@ CONFIGURE_ARGS+= --without-bash-malloc \ --enable-disabled-builtins CFLAGS+= -DUSE_MKTEMP=1 -DUSE_MKSTEMP=1 +CFLAGS+= -Wl,-export-dynamic .if empty(PKGNAMESUFFIX) CONFLICTS+= bash-static-[0-9]*
https://reviews.freebsd.org/D3231
A commit references this bug: Author: cem Date: Thu Jul 30 18:50:19 UTC 2015 New revision: 393258 URL: https://svnweb.freebsd.org/changeset/ports/393258 Log: bash: Export symbols for "enable -f" PR: 201959 Reviewed by: ehaupt Approved by: markj (mentor) Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3231 Changes: head/shells/bash/Makefile