linker script syntax error?

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

On Sat, Feb 1, 2014 at 8:46 PM, Keith Beattie <ksbeattie at> 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 -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/ -L/usr/local/lib -lncursesw /usr/local/lib/ /usr/local/lib/ -Wl,-rpath -Wl,/usr/local/lib
> /usr/bin/ld:/usr/local/lib/ file format not recognized; treating as linker script
> /usr/bin/ld:/usr/local/lib/ syntax error
> gmake[1]: *** [aspell] Error 1
> gmake[1]: Leaving directory `/usr/ports/textproc/aspell/work/aspell-'
> 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
> Here's
> $ cat /usr/local/lib/
> INPUT( AS_NEEDED(-ltinfow))
I don't get that output when I `cat /usr/local/lib/`.
When I use `file /usr/local/lib/*` it shows:

/usr/local/lib/ symbolic link to `'
/usr/local/lib/ symbolic link to `'
/usr/local/lib/ 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