libncursesw.so linker script syntax error?

Scot Hetzel swhetzel at gmail.com
Mon Feb 3 07:54:40 UTC 2014


On Sat, Feb 1, 2014 at 8:46 PM, Keith Beattie <ksbeattie at gmail.com> wrote:
> Hello,
>
> I'm having trouble building both the emacs and aspell port, both of which fail with a very similar error.  Here's aspell:
>
> /bin/sh ./libtool --tag=CXX   --mode=link c++  -O2 -fno-strict-aliasing -pipe -march=native -fno-exceptions   -o aspell prog/aspell.o prog/check_funs.o prog/checker_string.o libaspell.la -lncursesw -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
> libtool: link: c++ -O2 -fno-strict-aliasing -pipe -march=native -fno-exceptions -o .libs/aspell prog/aspell.o prog/check_funs.o prog/checker_string.o  ./.libs/libaspell.so -L/usr/local/lib -lncursesw /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
> /usr/bin/ld:/usr/local/lib/libncursesw.so: file format not recognized; treating as linker script
> /usr/bin/ld:/usr/local/lib/libncursesw.so:1: syntax error
> gmake[1]: *** [aspell] Error 1
> gmake[1]: Leaving directory `/usr/ports/textproc/aspell/work/aspell-0.60.6.1'
> gmake: *** [all-recursive] Error 1
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> *** Error code 1
>
> Stop in /usr/ports/textproc/aspell.
>
>
> emacs is similar except on libncurses.so
>
> Here's libncursesw.so:
>
> $ cat /usr/local/lib/libncursesw.so
> INPUT(libncursesw.so.5 AS_NEEDED(-ltinfow))
>
I don't get that output when I `cat /usr/local/lib/libncursesw.so`.
When I use `file /usr/local/lib/libncursesw.so*` it shows:

/usr/local/lib/libncursesw.so: symbolic link to `libncursesw.so.6'
/usr/local/lib/libncursesw.so.6: symbolic link to `libncursesw.so.6.0'
/usr/local/lib/libncursesw.so.6.0: ELF 32-bit LSB shared object, Intel
80386, version 1 (FreeBSD), dynamically linked, not stripped

Try uninstalling the devel/ncurses port again, and check if there are
any left over libncurses* files and remove them.


More information about the freebsd-ports mailing list