Bug 186825 - irc/weechat: build fails to link libncurses due to linker script format on 8.x
Summary: irc/weechat: build fails to link libncurses due to linker script format on 8.x
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Some People
Assignee: Jase Thew
URL:
Keywords:
Depends on: 191614
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-16 22:40 UTC by kritek
Modified: 2014-07-31 22:05 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kritek 2014-02-16 22:40:00 UTC
Latest weechat ports update fails to compile:

..SNIP...
Scanning dependencies of target weechat
[ 95%] Building C object src/gui/curses/CMakeFiles/weechat.dir/gui-curses-bar-window.o
[ 95%] Building C object src/gui/curses/CMakeFiles/weechat.dir/gui-curses-chat.o
[ 96%] Building C object src/gui/curses/CMakeFiles/weechat.dir/gui-curses-color.o
[ 97%] Building C object src/gui/curses/CMakeFiles/weechat.dir/gui-curses-key.o
[ 97%] Building C object src/gui/curses/CMakeFiles/weechat.dir/gui-curses-main.o
[ 98%] Building C object src/gui/curses/CMakeFiles/weechat.dir/gui-curses-mouse.o
[100%] Building C object src/gui/curses/CMakeFiles/weechat.dir/gui-curses-term.o
[100%] Building C object src/gui/curses/CMakeFiles/weechat.dir/gui-curses-window.o
Linking C executable weechat
/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
*** Error code 1

Stop in /usr/ports/irc/weechat/work/weechat-0.4.3.
*** Error code 1

Stop in /usr/ports/irc/weechat/work/weechat-0.4.3.
*** Error code 1

Stop in /usr/ports/irc/weechat/work/weechat-0.4.3.
*** Error code 1

Stop in /usr/ports/irc/weechat.
*** Error code 1

Stop in /usr/ports/irc/weechat.

===>>> make failed for irc/weechat
===>>> Aborting update

===>>> Killing background jobs
Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> irc/weechat 

===>>> Exiting


ls -l /usr/local/lib/libncurses*
-r--r--r--  1 root  wheel  174870 Dec 29 18:32 /usr/local/lib/libncurses++.a
-r--r--r--  1 root  wheel  174870 Dec 29 18:32 /usr/local/lib/libncurses++w.a
-r--r--r--  1 root  wheel  289606 Dec 29 18:32 /usr/local/lib/libncurses.a
-rw-r--r--  1 root  wheel      42 Dec 29 18:32 /usr/local/lib/libncurses.so
lrwxr-xr-x  1 root  wheel      17 Dec 29 18:32 /usr/local/lib/libncurses.so.5 -> libncurses.so.5.9
-rwxr-xr-x  1 root  wheel  146723 Dec 29 18:32 /usr/local/lib/libncurses.so.5.9
-r--r--r--  1 root  wheel  388716 Dec 29 18:32 /usr/local/lib/libncursesw.a
-rw-r--r--  1 root  wheel      44 Dec 29 18:32 /usr/local/lib/libncursesw.so
lrwxr-xr-x  1 root  wheel      18 Dec 29 18:32 /usr/local/lib/libncursesw.so.5 -> libncursesw.so.5.9
-rwxr-xr-x  1 root  wheel  207006 Dec 29 18:32 /usr/local/lib/libncursesw.so.5.9

cat /usr/local/lib/libncurses.so
INPUT(libncurses.so.5 AS_NEEDED(-ltinfo))

cat /usr/local/lib/libncursesw.so
INPUT(libncursesw.so.5 AS_NEEDED(-ltinfow))

How-To-Repeat: portmaster -g irc/weechat
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-02-16 23:29:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jase

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2014-07-23 04:20:16 UTC
Can you please provide your FreeBSD version information (uname -a)
Comment 3 kritek 2014-07-23 11:08:43 UTC
FreeBSD ws.int.kritek.net 8.4-RELEASE-p14 FreeBSD 8.4-RELEASE-p14 #18 r268467: Wed Jul  9 18:29:30 EDT 2014     root@ws.int.kritek.net:/usr/obj/usr/src/sys/WS  amd64


I have submitted a PR about ncurses port itself. It seems any port that depends on ncurses fails to build, not just weechat.
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191614
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2014-07-31 12:48:41 UTC
Dependent bug 191614 has now been resolved, can you please confirm this address the issue reported here.

Thank you also for following up and creating a separate report
Comment 5 kritek 2014-07-31 21:20:28 UTC
weechat built successfully against latest ncurses update, thanks.