Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Feb 2014 18:46:03 -0800
From:      Keith Beattie <ksbeattie@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   libncursesw.so linker script syntax error?
Message-ID:  <52EDB16B.1080206@gmail.com>

next in thread | raw e-mail | index | archive | help
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've tried rebuilding the ncurses port, but that hasn't helped.

Other info:
$ uname -a
FreeBSD rome 8.4-RELEASE-p7 FreeBSD 8.4-RELEASE-p7 #0 r261340: Fri Jan 31 23:55:48 PST 2014     root@rome:/usr/obj/usr/src/sys/ROME  i386

$ grep -v ^# /etc/make.conf
CPUTYPE?=native
CFLAGS= -O2 -fno-strict-aliasing -pipe
COPTFLAGS= -O -pipe
PERL_VERSION=5.16.3
WITH_PKGNG=yes

Any suggestions welcome.

TIA,
ksb



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52EDB16B.1080206>