Opened 15 years ago

Closed 15 years ago

#20914 closed defect (wontfix)

ncursesw fails to install on snow leopard when upgrading from leopard

Reported by: traf@… Owned by: imajes@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), djspiewak@…
Port: ncursesw

Description (last modified by tobypeterson)

bash-3.2# port install imagemagick
--->  Computing dependencies for ImageMagick
--->  Building ncursesw
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/work/ncurses-5.7" && /usr/bin/make -j2 all " returned error 2
Command output: In file included from ../ncurses/curses.priv.h:261,
                 from ./tinfo/comp_hash.c:42:
./../include/term_entry.h:54: error: expected specifier-qualifier-list before 'TERMTYPE'
./../include/term_entry.h:123: error: expected ')' before '*' token
./../include/term_entry.h:124: error: expected ')' before '*' token
./../include/term_entry.h:128: error: expected ')' before '*' token
./../include/term_entry.h:129: error: expected ')' before '*' token
./../include/term_entry.h:132: error: expected ')' before '*' token
./../include/term_entry.h:138: error: expected ')' before '*' token
./../include/term_entry.h:150: error: expected ')' before '*' token
./../include/term_entry.h:158: error: expected ')' before '*' token
./../include/term_entry.h:159: error: expected ')' before '*' token
./../include/term_entry.h:162: error: expected ')' before '*' token
In file included from ../ncurses/curses.priv.h:261,
                 from ./tinfo/comp_hash.c:42:
./../include/term_entry.h:169:2: error: invalid preprocessing directive #endifndef
In file included from ./tinfo/comp_hash.c:42:
../ncurses/curses.priv.h:514: error: expected specifier-qualifier-list before 'TERMINAL'
../ncurses/curses.priv.h:675: error: expected specifier-qualifier-list before 'TTY'
../ncurses/curses.priv.h:707: error: expected specifier-qualifier-list before 'TERMINAL'
In file included from ./tinfo/comp_hash.c:42:
../ncurses/curses.priv.h:1531: error: expected ')' before '*' token
../ncurses/curses.priv.h:1579: error: expected declaration specifiers or '...' before 'TERMTYPE'
../ncurses/curses.priv.h:1595: error: expected declaration specifiers or '...' before 'TERMTYPE'
../ncurses/curses.priv.h:1601: error: expected declaration specifiers or '...' before 'TERMTYPE'
./base/MKlib_gen.sh: line 408: gawk: command not found
make[1]: *** [make_hash] Error 1
make[1]: *** Waiting for unfinished jobs....
./base/MKlib_gen.sh: line 420: gawk: command not found
make: *** [all] Error 2

Error: The following dependencies failed to build: xorg-libXext xorg-libX11 autoconf help2man gettext ncurses ncursesw p5-locale-gettext perl5 perl5.8 m4 automake libtool xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXt xorg-libsm xorg-libice
Error: Status 1 encountered during processing.
bash-3.2# 

Change History (16)

comment:1 Changed 15 years ago by tobypeterson

Description: modified (diff)
Port: imagemagick added
Version: 1.8.0

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to ryandesign@…
Port: ImageMagick added; imagemagick removed

comment:3 Changed 15 years ago by pkutzner+macports@…

This builds and installs under SL for me when using the +no_x11 variant.

comment:4 in reply to:  3 Changed 15 years ago by traf@…

Replying to pkutzner+macports@…:

This builds and installs under SL for me when using the +no_x11 variant.

Hello, I added the +no_x11 option and it still fails with:

port install ncursesw
--->  Computing dependencies for ncursesw
--->  Building ncursesw
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/work/ncurses-5.7" && /usr/bin/make -j2 all " returned error 2
Command output: make[1]: *** [lib_keyname.c] Error 127
make[1]: *** Waiting for unfinished jobs....
In file included from ./../include/ncurses_cfg.h:178,
                 from ../ncurses/curses.priv.h:55,
                 from ./tinfo/comp_hash.c:42:
./../include/ncurses_def.h:5:1: error: unterminated #ifndef
In file included from ../ncurses/curses.priv.h:261,
                 from ./tinfo/comp_hash.c:42:
./../include/term_entry.h:54: error: expected specifier-qualifier-list before 'TERMTYPE'
./../include/term_entry.h:123: error: expected ')' before '*' token
./../include/term_entry.h:124: error: expected ')' before '*' token
./../include/term_entry.h:128: error: expected ')' before '*' token
./../include/term_entry.h:129: error: expected ')' before '*' token
./../include/term_entry.h:132: error: expected ')' before '*' token
./../include/term_entry.h:138: error: expected ')' before '*' token
./../include/term_entry.h:150: error: expected ')' before '*' token
./../include/term_entry.h:158: error: expected ')' before '*' token
./../include/term_entry.h:159: error: expected ')' before '*' token
./../include/term_entry.h:162: error: expected ')' before '*' token
In file included from ./tinfo/comp_hash.c:42:
../ncurses/curses.priv.h:514: error: expected specifier-qualifier-list before 'TERMINAL'
../ncurses/curses.priv.h:675: error: expected specifier-qualifier-list before 'TTY'
../ncurses/curses.priv.h:707: error: expected specifier-qualifier-list before 'TERMINAL'
In file included from ./tinfo/comp_hash.c:42:
../ncurses/curses.priv.h:1531: error: expected ')' before '*' token
../ncurses/curses.priv.h:1579: error: expected declaration specifiers or '...' before 'TERMTYPE'
../ncurses/curses.priv.h:1595: error: expected declaration specifiers or '...' before 'TERMTYPE'
../ncurses/curses.priv.h:1601: error: expected declaration specifiers or '...' before 'TERMTYPE'
make[1]: *** [make_hash] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

comment:5 Changed 15 years ago by nerdling (Jeremy Lavergne)

Cc: ryandesign@… added
Owner: changed from ryandesign@… to imajes@…
Port: ncursesw added; ImageMagick removed
Summary: imagemagick fails to install on snow leopardncursesw fails to install on snow leopard

comment:6 Changed 15 years ago by nerdling (Jeremy Lavergne)

This builds for me.

comment:7 Changed 15 years ago by djspiewak@…

I am experiencing the same issue. This is definitely not just an isolated issue.

comment:8 Changed 15 years ago by djspiewak@…

Cc: djspiewak@… added

Cc Me!

comment:9 in reply to:  8 Changed 15 years ago by traf@…

Replying to djspiewak@…:

Cc Me!

a clean install of OS X SL, install of MacPorts and a port install imagemagick works; will tra just a clean MacPorts using an upgraded OS X ...

comment:10 Changed 15 years ago by djspiewak@…

I can report a fix: completely clean your /opt/local/ directory (rm -rf) and reinstall MacPorts from scratch. This seems to only happen when installing over a previous MacPorts tree (even one which has been completely uninstalled).

comment:11 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed
Summary: ncursesw fails to install on snow leopardncursesw fails to install on snow leopard when upgrading from leopard

Ok, then there is no bug. When you upgrade to a new major version of Mac OS X, you must rebuild MacPorts and all your ports, and the easiest way to do that is to uninstall and reinstall MacPorts and all ports. See the Migration page.

comment:12 Changed 15 years ago by djspiewak@…

I was following the migration page. What it failed to tell me was that I had to completely remove the /opt/local/ directory in order to complete the uninstallation.

comment:13 Changed 15 years ago by ch-macports@…

I'm confused. The migration page says:

"As of MacPorts 1.8.0, you can alternatively try a single command to rebuild all installed ports for your new platform ... If you encounter such a problem, please report it so we can fix it."

Shouldn't this bug be used to track the fact that there's a problem building ncursesw for some upgrading trees rather than just marking this invalid?

comment:14 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: closedreopened

Ok. Can anybody identify why the upgrade did not succeed?

comment:15 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

If someone still experiencing the problem will clean the port and try again with debug output and attach it to this ticket, we can look into what's happening.

comment:16 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: wontfix
Status: reopenedclosed

The automatic upgrade method has been removed from the wiki because it exposed too many issues like this.

Note: See TracTickets for help on using tickets.