Opened 7 years ago

Closed 7 years ago

#42945 closed defect (fixed)

irssi @0.8.15_3 +perl fails to build correctly

Reported by: ender@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: ryandesign (Ryan Schmidt), neverpanic (Clemens Lang)
Port: irssi

Description (last modified by ryandesign (Ryan Schmidt))

Trying to build irssi +perl on 10.9.2 with Xcode 5.1, Build version 5B130a throws the following error:

Error: org.macports.build for port irssi returned: command execution failed
Please see the log file for port irssi for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_irc_irssi/irssi/main.log
Error: Unable to upgrade port: 1
Error rebuilding irssi
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 382)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_target" line 96)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 93)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 4857)

Attachments (1)

main.log (252.3 KB) - added by ender@… 7 years ago.
main.log from irssi build attempt

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by ender@…

Attachment: main.log added

main.log from irssi build attempt

comment:1 Changed 7 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)

The relevant part of the log is actually:

:info:build Undefined symbols for architecture x86_64:
:info:build   "_tgetent", referenced from:
:info:build       _terminfo_core_init in terminfo-core.o
:info:build   "_tgetflag", referenced from:
:info:build       _terminfo_core_init in terminfo-core.o
:info:build   "_tgetnum", referenced from:
:info:build       _terminfo_core_init in terminfo-core.o
:info:build   "_tgetstr", referenced from:
:info:build       _terminfo_core_init in terminfo-core.o
:info:build   "_tputs", referenced from:
:info:build       __set_fg in terminfo-core.o
:info:build       __set_bg in terminfo-core.o
:info:build       _terminfo_cont in terminfo-core.o
:info:build       _terminfo_stop in terminfo-core.o
:info:build       __move_cup in terminfo-core.o
:info:build       __move_pa in terminfo-core.o
:info:build       __move_relative in terminfo-core.o
:info:build       ...
:info:build ld: symbol(s) not found for architecture x86_64

FWIW, it builds fine for me, on the same OS X and Xcode version.

comment:2 Changed 7 years ago by ryandesign (Ryan Schmidt)

I notice your log says:

configure: checking "location of ncurses.h file"...

And mine says:

configure: checking "location of ncurses.h file"...
Found ncurses on /usr/include/ncurses.h

This tells me irssi is looking in the wrong place for ncurses.h and we should fix that.

It also suggests that you don't have the command line tools installed, which would provide the contents of /usr/include. The command line tools are required for using MacPorts and you should install them, by running xcode-select --install. If you then "sudo port clean irssi" it should build.

comment:3 Changed 7 years ago by neverpanic (Clemens Lang)

I think I recall we encountered a similar issue on IRC the other day and the problem was that the command line tools were missing.

Arguably, irssi should depend on ncurses, though.

comment:4 in reply to:  3 Changed 7 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… cal@… added
Resolution: fixed
Status: newclosed

Replying to cal@…:

Arguably, irssi should depend on ncurses, though.

irssi does depend on ncurses, and even links with MacPorts ncurses, but for some reason uses /usr/include/ncurses.h.

Fixed in r118035.

Note: See TracTickets for help on using tickets.