platform: Ubuntu 14.04.3
ncurses version: 5.9 or 6.0
steps:
cd ncurses-x.x
./configure --with-shlib-version=no --with-shared
make
error message:
cd ../lib && ()
/bin/sh: 1: Syntax error: ")" unexpected
make[1]: *** [../lib/libncurses.so] Error 2
file contents related to this error:
ncurses-x.x/ncurses/Makefile:
../lib/libncurses.so : \
../lib \
$(RESULTING_SYMS) $(SHARED_OBJS)
@echo linking $@
$(MK_SHARED_LIB) $(SHARED_OBJS) $(SHLIB_LIST) $(LDFLAGS)
cd ../lib && ()
$(DESTDIR)$(libdir)/libncurses.so : \
$(DESTDIR)$(libdir) \
$(RESULTING_SYMS) $(SHARED_OBJS)
@echo linking $@
$(MK_SHARED_LIB) $(SHARED_OBJS) $(SHLIB_LIST) $(LDFLAGS)
cd $(DESTDIR)$(libdir) && ()
@echo linking libncurses.so to libcurses.so
cd $(DESTDIR)$(libdir) && ($(LN_S) libncurses.so libcurses.so; )
- test -z "$(DESTDIR)" && /sbin/ldconfig
note the line `cd ../lib && ()' and `cd $(DESTDIR)$(libdir) && ()' with raise the error message