Opened 14 years ago
Closed 14 years ago
#27004 closed defect (invalid)
ncursesw @5.7_0 build failure due to gawk not loading libiconv
Reported by: | ossumguywill@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | Schamschula (Marius Schamschula), jmroot (Joshua Root) | |
Port: | gawk libiconv ncursesw |
Description
ncursesw has been giving me a LOT of grief... I'm in over my head here. Starting with:
---> Computing dependencies for ncursesw ---> Building ncursesw Error: Target org.macports.build returned: shell command failed Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/main.log Error: Unable to upgrade port: 1
opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/main.log reads
version:1 :msg:main ---> Computing dependencies for ncursesw:info:main .:msg:main :debug:main Executing org.macports.main (ncursesw) :debug:main Skipping completed org.macports.fetch (ncursesw) :debug:main Skipping completed org.macports.checksum (ncursesw) :debug:main Skipping completed org.macports.extract (ncursesw) :debug:main Skipping completed org.macports.patch (ncursesw) :debug:main Skipping completed org.macports.configure (ncursesw) :msg:main ---> Building ncursesw :debug:build build phase started at Mon Oct 25 18:02:34 CDT 2010 :debug:build Executing org.macports.build (ncursesw) :debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6' :debug:build Assembled 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' :info:build cd man && /usr/bin/make DESTDIR="" all :info:build make[1]: Nothing to be done for `all'. :info:build cd include && /usr/bin/make DESTDIR="" all :info:build make[1]: Nothing to be done for `all'. :info:build cd ncurses && /usr/bin/make DESTDIR="" all :info:build /usr/bin/gcc-4.2 -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -I./../include -I../include -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DSIGWINCH=28 -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I/opt/local/include/ncursesw -pipe -O2 -arch x86_64 --param max-inline-insns-single=1200 -no-cpp-precomp -DMAIN_PROGRAM ./tinfo/comp_hash.c -arch x86_64 -Wl,-search_paths_first :info:build sh -e ./tty/MKexpanded.sh "/usr/bin/gcc-4.2 -E" -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DSIGWINCH=28 -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I/opt/local/include/ncursesw > expanded.c :info:build In file included from ./../include/ncurses_cfg.h:178, :info:build from ../ncurses/curses.priv.h:55, :info:build from ./tinfo/comp_hash.c:42: :info:build ./../include/ncurses_def.h:5:1: error: unterminated #ifndef :info:build In file included from ../ncurses/curses.priv.h:261, :info:build from ./tinfo/comp_hash.c:42: :info:build ./../include/term_entry.h:54: error: expected specifier-qualifier-list before 'TERMTYPE' :info:build ./../include/term_entry.h:123: error: expected ')' before '*' token :info:build ./../include/term_entry.h:124: error: expected ')' before '*' token :info:build ./../include/term_entry.h:128: error: expected ')' before '*' token :info:build ./../include/term_entry.h:129: error: expected ')' before '*' token :info:build ./../include/term_entry.h:132: error: expected ')' before '*' token :info:build ./../include/term_entry.h:138: error: expected ')' before '*' token :info:build ./../include/term_entry.h:150: error: expected ')' before '*' token :info:build ./../include/term_entry.h:158: error: expected ')' before '*' token :info:build ./../include/term_entry.h:159: error: expected ')' before '*' token :info:build ./../include/term_entry.h:162: error: expected ')' before '*' token :info:build In file included from ./tinfo/comp_hash.c:42: :info:build ../ncurses/curses.priv.h:514: error: expected specifier-qualifier-list before 'TERMINAL' :info:build ../ncurses/curses.priv.h:675: error: expected specifier-qualifier-list before 'TTY' :info:build ../ncurses/curses.priv.h:707: error: expected specifier-qualifier-list before 'TERMINAL' :info:build In file included from ./tinfo/comp_hash.c:42: :info:build ../ncurses/curses.priv.h:1531: error: expected ')' before '*' token :info:build ../ncurses/curses.priv.h:1579: error: expected declaration specifiers or '...' before 'TERMTYPE' :info:build ../ncurses/curses.priv.h:1595: error: expected declaration specifiers or '...' before 'TERMTYPE' :info:build ../ncurses/curses.priv.h:1601: error: expected declaration specifiers or '...' before 'TERMTYPE' :info:build make[1]: *** [make_hash] Error 1 :info:build make[1]: *** Waiting for unfinished jobs.... :info:build make: *** [all] Error 2 :info:build 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 :error:build Target org.macports.build returned: shell command failed :debug:build Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for ncursesw): org.macports.destroot org.macports.build :notice:build Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/main.log
Any ideas? I'm stuck here. Running 10.6.4, xcode 3.2.3. Thanks!
Attachments (1)
Change History (14)
comment:1 Changed 14 years ago by ossumguywill@…
Cc: | ossumguywill@… added |
---|
comment:2 follow-up: 3 Changed 14 years ago by jmroot (Joshua Root)
Cc: | ossumguywill@… removed |
---|---|
Keywords: | ncurses ncursesw removed |
Owner: | changed from macports-tickets@… to jmr@… |
Status: | new → assigned |
Please remember to cc the maintainer. You do not need to be in cc when you are the reporter.
The current version of ncursesw is 5.7_1. Please first run through the steps in the FAQ.
comment:3 Changed 14 years ago by ossumguywill@…
Replying to jmr@…:
Please remember to cc the maintainer. You do not need to be in cc when you are the reporter.
The current version of ncursesw is 5.7_1. Please first run through the steps in the FAQ.
OK, sorry about the trac stuff. I'm new to this. Now, I went to the FAQ and I've already tried all of the stuff like cleaning and updating ncursesw. It always fails the way I mentioned. at
---> Building ncursesw
and the FAQ didn't really help at all. Maybe I'm missing something.
comment:4 Changed 14 years ago by jmroot (Joshua Root)
Following the FAQ would have brought you up to the current revision of the port, and generated a complete clean log. Please attach the log file.
Changed 14 years ago by ossumguywill@…
comment:5 Changed 14 years ago by ossumguywill@…
OK... added... I'm pretty sure it's the same as the original post... this is what happens when I try to upgrade outdated.
comment:6 Changed 14 years ago by jmroot (Joshua Root)
Cc: | mschamschula@… jmr@… added |
---|---|
Owner: | changed from jmr@… to ryandesign@… |
Status: | assigned → new |
Summary: | ncursesw @5.7_0 build failure → ncursesw @5.7_0 build failure due to gawk not loading libiconv |
That's still not a complete log, and it shows a different error. Handing off to libiconv and gawk maintainers since that's what's failing.
comment:7 Changed 14 years ago by jmroot (Joshua Root)
Port: | gawk libiconv added |
---|
comment:8 follow-up: 9 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
That log shows:
:info:build dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib :info:build Referenced from: /opt/local/bin/gawk :info:build Reason: Incompatible library version: gawk requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
That means you have the gawk port installed, and the gawk program is linked with version 8 of the libiconv library (this is expected) but that it could only find version 7 (this is unexpected). Mac OS X provides version 7 of the libiconv library, so often this error occurs when gawk finds the MacPorts version of the library but it is unsuitable for some reason (often it is the wrong architecture) and it instead tries to use the Mac OS X version (which is unsuitable because its library version is too old).
What is the architecture of your MacPorts-provided libiconv library? Find out with:
lipo -info /opt/local/lib/libiconv.dylib
I see you are running Mac OS X 10.6; did you recently upgrade from an earlier OS? If so, did you follow the Migration procedure? On Mac OS X, programs are built for the x86_64 architecture. If your libiconv library turns out to instead be of a different architecture, the Migration procedure is likely what you need to follow.
comment:9 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign@…:
On Mac OS X, programs are built for the x86_64 architecture.
Make that: On Mac OS X 10.6 and up
comment:10 Changed 14 years ago by ossumguywill@…
Non-fat file: /opt/local/lib/libiconv.dylib is architecture: x86_64
I don't think that's the problem (although I did upgrade recently). How would I go about updating libiconv? Also, I didn't manually reinstall all of the ports like in the migration procedure, if that could cause this kind of problem. Do you think that's the cause?
comment:11 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
If you had MacPorts installed on Leopard, and then you upgraded to Snow Leopard, you definitely need to rebuild all ports on Snow Leopard as per the Migration document.
comment:12 Changed 14 years ago by ossumguywill@…
Hey, thanks for the help! It looks like it's moving along smoothly, it went over ncursesw without a hitch after erasing everything. Thanks for being patient with me. Now I just have to be patient with the installation, this is certainly not a quick process!
comment:13 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Ok, glad it's working. We'll close this since it seems to have been due to using old ports on a new OS.
Cc Me!