From: Michel Normand Subject: ncurses 6.0 wildcard for ppc64 Date: Fri, 25 Sep 2015 11:23:32 +0200 related to bug openSUSE 946048 avoid ncurses build error on ppc64 architecture the nm tool is reporting _is_missing in Data section for ppc64. (by comparison ppc64le is reporting it in Text section) === [ 102s] /usr/lib64/gcc/powerpc64-suse-linux/5/../../../../powerpc64-suse-linux/bin/ld:resulting.map:113: syntax error in VERSION script [ 102s] collect2: error: ld returned 1 exit status === Signed-off-by: Michel Normand --- aclocal.m4 | 3 ++- configure | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) Index: ncurses-6.0/aclocal.m4 =================================================================== --- ncurses-6.0.orig/aclocal.m4 +++ ncurses-6.0/aclocal.m4 @@ -7625,7 +7625,8 @@ EOF if make -f conftest.mk 2>&AC_FD_CC >/dev/null then # test for missing symbol - cf_missing=`nm -P conftest.so 2>&AC_FD_CC |fgrep _ismissing | egrep '[[ ]]T[[ ]]'` + # could be either Data or Text section + cf_missing=`nm -P conftest.so 2>&AC_FD_CC |fgrep _ismissing | egrep '[[ ]][DT][[ ]]'` test -n "$cf_missing" && WILDCARD_SYMS=yes fi AC_MSG_RESULT($WILDCARD_SYMS) Index: ncurses-6.0/configure =================================================================== --- ncurses-6.0.orig/configure +++ ncurses-6.0/configure @@ -6660,7 +6660,8 @@ EOF if make -f conftest.mk 2>&5 >/dev/null then # test for missing symbol - cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ]T[ ]'` + # could be either Data or Text section + cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'` test -n "$cf_missing" && WILDCARD_SYMS=yes fi echo "$as_me:6666: result: $WILDCARD_SYMS" >&5