Bug 191614

Summary: Building or linking against devel/ncurses fails since December 2013 update on FreeBSD 8.4
Product: Ports & Packages Reporter: kritek
Component: Individual Port(s)Assignee: Baptiste Daroussin <bapt>
Status: Closed FIXED    
Severity: Affects Some People CC: bapt, koobs, rakuco
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 186825    

Description kritek 2014-07-04 19:27:26 UTC
Revision 337857 - Directory Listing 
Modified Sat Dec 28 11:26:46 2013 UTC (6 months ago) by bapt
Update to 5.9-20131221
Changes:
- inconditionnaly build wide character version
- inconditionnaly build terminfo database
- remove broken ext-color option
- make building of profiled library an option
- turn libncursesw.so and libncurses.so into ldscript anything building
with ports version of ncurses on 10 and current properly linked to
-ltinfo as well
- take maintainership
- support stage
################################################

Since the above revision I have not been able to upgrade or install ports that depend on ports version of ncurses on FreeBSD 8.4 amd_64.

Get errors like the following:

/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

Same errors for anything wanting /usr/local/lib/libncurses.so.

I have to move the .so files, then create symlinks of them pointing to their corresponding .so.5 links, ldconfig -m /usr/local/lib, then build the ports dependent on ncurses.

ls -l *curses*
-rw-r--r--  1 root  wheel  174870 Jul  3 20:39 libncurses++.a
-rw-r--r--  1 root  wheel  174870 Jul  3 20:39 libncurses++w.a
-rw-r--r--  1 root  wheel  289716 Jul  3 20:39 libncurses.a
lrwxr-xr-x  1 root  wheel      15 Jul  4 13:58 libncurses.so -> libncurses.so.5
lrwxr-xr-x  1 root  wheel      17 Jul  3 20:39 libncurses.so.5 -> libncurses.so.5.9
-rwxr-xr-x  1 root  wheel  125608 Jul  3 20:39 libncurses.so.5.9
-rw-r--r--  1 root  wheel      42 Jul  3 20:39 libncurses.so.orig
-rw-r--r--  1 root  wheel  388802 Jul  3 20:39 libncursesw.a
lrwxr-xr-x  1 root  wheel      16 Jul  4 13:59 libncursesw.so -> libncursesw.so.5
lrwxr-xr-x  1 root  wheel      18 Jul  3 20:39 libncursesw.so.5 -> libncursesw.so.5.9
-rwxr-xr-x  1 root  wheel  180336 Jul  3 20:39 libncursesw.so.5.9
-rw-r--r--  1 root  wheel      44 Jul  3 20:39 libncursesw.so.orig


FreeBSD ws.int.kritek.net 8.4-RELEASE-p12 FreeBSD 8.4-RELEASE-p12 #17 r267119: Thu Jun  5 15:25:56 EDT 2014     root@ws.int.kritek.net:/usr/obj/usr/src/sys/WS  amd64

Ports tree current as of July 3, 2014 5:00PM EDT
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-07-05 23:46:17 UTC
Over to maintainer.
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2014-07-31 09:38:14 UTC
Affects python, emacs and aspell too:

http://lists.freebsd.org/pipermail/freebsd-ports/2014-February/089538.html
https://forums.freebsd.org/viewtopic.php?t=44986

Had a recent report (last night) for Python that was isolated to the same root cause (ld, ldscript, ncurses on 8.x)

I won't create additional reports unless they're reported by users, in which case I'll add depends on this issue
Comment 3 Baptiste Daroussin freebsd_committer freebsd_triage 2014-07-31 10:21:17 UTC
Fixed
Comment 5 kritek 2014-07-31 21:24:01 UTC
Port builds against ncurses on 8.4-RELEASE-p14 appear to be working now, thanks.