Problem installing ncurses/ncursesw
I am having trouble when I attempt to install any ports that depend on ncurses. Running on a MacBook Pro (Intel) with OS X 10.4.10 I get the following when trying to install the ncurses port. Any advice on what I should be doing to make this work? Thanks!!! % sudo port install ncurses ---> Building ncursesw with target all 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.6" && make all " returned error 2 Command output: /usr/bin/gcc-4.0 -O2 -no-cpp-precomp -no-cpp-precomp -o bs ../obj_s/bs.o -L/opt/local/lib -Wl,-search_paths_first -I../test -I. -DHAVE_CONFIG_H -I. -I../include -I/opt/local/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DSIGWINCH=28 -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I/opt/local/include/ncursesw -O2 -no-cpp-precomp -no-cpp-precomp -dynamic `echo "-L../lib -lformw -lmenuw -lpanelw -lncursesw " | sed -e 's/-lform.*-lpanel[^ ]*//'` /usr/bin/gcc-4.0 -O2 -no-cpp-precomp -no-cpp-precomp -o cardfile ../obj_s/cardfile.o -L/opt/local/lib -Wl,-search_paths_first -I../test -I. -DHAVE_CONFIG_H -I. -I../include -I/opt/local/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DSIGWINCH=28 -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I/opt/local/include/ncursesw -O2 -no-cpp-precomp -no-cpp-precomp -dynamic -L../lib -lformw -lmenuw -lpanelw -lncursesw /usr/bin/ld: warning /opt/local/lib/libformw.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) /usr/bin/ld: warning /opt/local/lib/libmenuw.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) /usr/bin/ld: warning /opt/local/lib/libpanelw.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) /usr/bin/ld: Undefined symbols: _field_buffer _field_opts_off _form_driver _form_fields _form_sub _form_win _free_field _free_form _new_field _new_form _new_panel _panel_window _post_form _set_field_back _set_field_buffer _set_field_just _set_form_sub _set_form_win _top_panel _unpost_form _update_panels collect2: ld returned 1 exit status make[1]: *** [cardfile] Error 1 make: *** [all] Error 2 Error: The following dependencies failed to build: ncursesw Error: Status 1 encountered during processing. [JPTravelerPro:~] jody%
On 04 Aug, 2007, at 22:40, Jody Paul wrote:
I am having trouble when I attempt to install any ports that depend on ncurses. Running on a MacBook Pro (Intel) with OS X 10.4.10 I get the following when trying to install the ncurses port. Any advice on what I should be doing to make this work? Thanks!!!
Is there any chance that your MacPorts installation was copied/ migrated from a ppc Mac? I see two problems in your transcript: * it's referring to /opt/local/lib/libformw.dylib etc., which are installed by ncursesw, and shouldn't be there if ncursesw hasn't yet been installed * it's saying that these files are compiled for ppc The simplest explanation is that these files were put there by a ppc installation of MacPorts. If that's the case, the simplest solution is to move /opt/local aside and reinstall from the disk image. If you can't install ncurses, I'm guessing you haven't been able to install much at all. Chris
% sudo port install ncurses ---> Building ncursesw with target all 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.6" && make all " returned error 2 Command output: /usr/bin/gcc-4.0 -O2 -no-cpp-precomp -no-cpp- precomp -o bs ../obj_s/bs.o -L/opt/local/lib -Wl,- search_paths_first -I../test -I. -DHAVE_CONFIG_H -I. -I../include - I/opt/local/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 - DSIGWINCH=28 -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I/opt/local/include/ ncursesw -O2 -no-cpp-precomp -no-cpp-precomp -dynamic `echo "-L../ lib -lformw -lmenuw -lpanelw -lncursesw " | sed -e 's/-lform.*- lpanel[^ ]*//'` /usr/bin/gcc-4.0 -O2 -no-cpp-precomp -no-cpp-precomp -o cardfile ../obj_s/cardfile.o -L/opt/local/lib -Wl,- search_paths_first -I../test -I. -DHAVE_CONFIG_H -I. -I../include - I/opt/local/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 - DSIGWINCH=28 -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I/opt/local/include/ ncursesw -O2 -no-cpp-precomp -no-cpp-precomp -dynamic -L../lib - lformw -lmenuw -lpanelw -lncursesw /usr/bin/ld: warning /opt/local/lib/libformw.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) /usr/bin/ld: warning /opt/local/lib/libmenuw.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) /usr/bin/ld: warning /opt/local/lib/libpanelw.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) /usr/bin/ld: Undefined symbols: _field_buffer _field_opts_off _form_driver _form_fields _form_sub _form_win _free_field _free_form _new_field _new_form _new_panel _panel_window _post_form _set_field_back _set_field_buffer _set_field_just _set_form_sub _set_form_win _top_panel _unpost_form _update_panels collect2: ld returned 1 exit status make[1]: *** [cardfile] Error 1 make: *** [all] Error 2
Error: The following dependencies failed to build: ncursesw Error: Status 1 encountered during processing. [JPTravelerPro:~] jody%
On Saturday, August 04, 2007, at 08:53PM, "Chris Pickel" <sfiera@macports.org> wrote:
On 04 Aug, 2007, at 22:40, Jody Paul wrote:
I am having trouble when I attempt to install any ports that depend on ncurses. Running on a MacBook Pro (Intel) with OS X 10.4.10 I get the following when trying to install the ncurses port. Any advice on what I should be doing to make this work? Thanks!!!
Is there any chance that your MacPorts installation was copied/ migrated from a ppc Mac? I see two problems in your transcript: * it's referring to /opt/local/lib/libformw.dylib etc., which are installed by ncursesw, and shouldn't be there if ncursesw hasn't yet been installed * it's saying that these files are compiled for ppc
The simplest explanation is that these files were put there by a ppc installation of MacPorts. If that's the case, the simplest solution is to move /opt/local aside and reinstall from the disk image. If you can't install ncurses, I'm guessing you haven't been able to install much at all.
Chris
Thanks, that solved the problem. Was definitely due to a migrated system. Interesting that the selfupdate worked fine as did upgrade to quite a number of other ports... wasn't until I tried updating ncurses that the problem showed up. Thanks again! --J
participants (2)
-
Chris Pickel
-
Jody Paul