[MacPorts] #17589: Base seems to inherit settings from zsh shell, causing configure scripts to fail
MacPorts
noreply at macports.org
Tue Dec 9 10:36:50 PST 2008
#17589: Base seems to inherit settings from zsh shell, causing configure scripts to
fail
-------------------------------+--------------------------------------------
Reporter: dave@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone: MacPorts base bugs
Component: base | Version: 1.6.0
Keywords: | Port: ncursesw
-------------------------------+--------------------------------------------
Old description:
> When trying to upgrade my old ports, the upgrade of ncursesw kept
> failing. I finally realized it was due to me using zsh, and sudo to
> install the port, like this:
>
> sudo port upgrade outdated
>
> When I switched to bash, things worked fine:
>
> sudo bash --login
> port upgrade outdated.
>
> Below are my logs
>
> --> Fetching apr
> ---> Attempting to fetch apr-1.3.3.tar.bz2 from
> http://www.apache.org/dist/apr
> ---> Verifying checksum(s) for apr
> ---> Extracting apr
> ---> Configuring apr
> ---> Building apr with target all
> ---> Staging apr into destroot
> ---> Deactivating apr 1.3.2_0+darwin_9
> ---> Installing apr 1.3.3_0
> ---> Activating apr 1.3.3_0
> ---> Cleaning apr
> ---> Fetching pkgconfig
> ---> Verifying checksum(s) for pkgconfig
> ---> Extracting pkgconfig
> ---> Configuring pkgconfig
> ---> Building pkgconfig with target all
> ---> Staging pkgconfig into destroot
> ---> Deactivating pkgconfig 0.23_0
> ---> Installing pkgconfig 0.23_1
> ---> Activating pkgconfig 0.23_1
> ---> Cleaning pkgconfig
> ---> Fetching ncursesw
> ---> Attempting to fetch ncurses-5.7.tar.gz from
> http://ftp.gnu.org/gnu/ncurses
> ---> Verifying checksum(s) for ncursesw
> ---> Extracting ncursesw
> ---> Configuring ncursesw
> Error: Target org.macports.configure returned: configure failure: shell
> command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/work/ncurses-5.7"
> && ./configure --prefix=/opt/local --enable-widec --disable-rpath --with-
> shared --without-debug --without-ada --enable-safe-sprintf --enable-
> sigwinch --mandir=/opt/local/share/man " returned error 1
> Command output: Configuring for darwin9.5.0
> checking for prefix... /opt/local
> checking for gcc... /usr/bin/gcc-4.0
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for executable suffix...
> checking for object suffix... o
> checking whether we are using the GNU C compiler... yes
> checking whether /usr/bin/gcc-4.0 accepts -g... yes
> checking version of /usr/bin/gcc-4.0... 4.0.1
> checking how to run the C preprocessor... /usr/bin/cpp-4.0
> checking whether /usr/bin/gcc-4.0 needs -traditional... no
> checking whether /usr/bin/gcc-4.0 understands -c and -o together... yes
> checking for POSIXized ISC... no
> checking for /usr/bin/gcc-4.0 option to accept ANSI C... -DCC_HAS_PROTOS
> checking for ldconfig... no
> checking if you want to ensure bool is consistent with C++... yes
> checking whether we are using the GNU C++ compiler... yes
> checking whether /usr/bin/g++-4.0 accepts -g... yes
> checking version of g++... 4.0.1
> checking if you want to build C++ binding and demo... yes
> checking if you want to build with Ada95... no
> checking if you want to build programs such as tic... yes
> checking if you wish to install curses.h... yes
> checking for mawk... (cached) no
> checking for gawk... (cached) no
> checking for nawk... (cached) no
> checking for awk... (cached) no
> configure: error: No awk program found
>
> Error: Unable to upgrade port: 1
> ---> Fetching ncurses
> ---> Verifying checksum(s) for ncurses
> ---> Extracting ncurses
> ---> Configuring ncurses
> Error: Target org.macports.configure returned: configure failure: shell
> command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/work/ncurses-5.7"
> && ./configure --prefix=/opt/local --with-shared --disable-rpath
> --without-debug --without-ada --enable-safe-sprintf --enable-sigwinch
> --without-progs --mandir=/opt/local/share/delete-me " returned error 1
> Command output: Configuring for darwin9.5.0
> checking for prefix... /opt/local
> checking for gcc... /usr/bin/gcc-4.0
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for executable suffix...
> checking for object suffix... o
> checking whether we are using the GNU C compiler... yes
> checking whether /usr/bin/gcc-4.0 accepts -g... yes
> checking version of /usr/bin/gcc-4.0... 4.0.1
> checking how to run the C preprocessor... /usr/bin/cpp-4.0
> checking whether /usr/bin/gcc-4.0 needs -traditional... no
> checking whether /usr/bin/gcc-4.0 understands -c and -o together... yes
> checking for POSIXized ISC... no
> checking for /usr/bin/gcc-4.0 option to accept ANSI C... -DCC_HAS_PROTOS
> checking for ldconfig... no
> checking if you want to ensure bool is consistent with C++... yes
> checking whether we are using the GNU C++ compiler... yes
> checking whether /usr/bin/g++-4.0 accepts -g... yes
> checking version of g++... 4.0.1
> checking if you want to build C++ binding and demo... yes
> checking if you want to build with Ada95... no
> checking if you want to build programs such as tic... no
> checking if you wish to install curses.h... yes
> checking for mawk... (cached) no
> checking for gawk... (cached) no
> checking for nawk... (cached) no
> checking for awk... (cached) no
> configure: error: No awk program found
>
> Error: Unable to upgrade port: 1
> ---> Fetching glib2
> ---> Attempting to fetch glib-2.18.3.tar.bz2 from http://mandril.creatis
> .insa-lyon.fr/linux/gnome.org/sources/glib/2.18/
> ---> Verifying checksum(s) for glib2
> ---> Extracting glib2
> ---> Applying patches to glib2
> ---> Configuring glib2
> ^C
> 1002:1-dfrascon at daves-macbook ~/work % sudo bash --login
> root at daves-macbook Work # port upgrade outdated
> ---> Configuring ncursesw
> ---> Building ncursesw with target all
> ---> Staging ncursesw into destroot
> ---> Deactivating ncursesw 5.6_1
> ---> Installing ncursesw 5.7_0
> ---> Activating ncursesw 5.7_0
> ---> Cleaning ncursesw
> ---> Configuring ncurses
> ---> Building ncurses with target all
> ---> Staging ncurses into destroot
> ---> Deactivating ncurses 5.6_0
> ---> Installing ncurses 5.7_0
> ---> Activating ncurses 5.7_0
> ---> Cleaning ncurses
> ---> Configuring glib2
> ---> Building glib2 with target all
> ---> Staging glib2 into destroot
> ---> Deactivating glib2 2.16.5_0+darwin_9
> ---> Installing glib2 2.18.3_0+darwin_9
> ---> Activating glib2 2.18.3_0+darwin_9
> ---> Cleaning glib2
> ---> Fetching atk
> ---> Attempting to fetch atk-1.24.0.tar.bz2 from http://mandril.creatis
> .insa-lyon.fr/linux/gnome.org/sources/atk/1.24/
> ---> Verifying checksum(s) for atk
> ---> Extracting atk
> ---> Configuring atk
> ---> Building atk with target all
> ---> Staging atk into destroot
> ---> Deactivating atk 1.22.0_1
> ---> Installing atk 1.24.0_0
> ---> Activating atk 1.24.0_0
New description:
When trying to upgrade my old ports, the upgrade of ncursesw kept failing.
I finally realized it was due to me using zsh, and sudo to install the
port, like this:
sudo port upgrade outdated
When I switched to bash, things worked fine:
sudo bash --login
port upgrade outdated.
Below are my logs
{{{
--> Fetching apr
---> Attempting to fetch apr-1.3.3.tar.bz2 from
http://www.apache.org/dist/apr
---> Verifying checksum(s) for apr
---> Extracting apr
---> Configuring apr
---> Building apr with target all
---> Staging apr into destroot
---> Deactivating apr 1.3.2_0+darwin_9
---> Installing apr 1.3.3_0
---> Activating apr 1.3.3_0
---> Cleaning apr
---> Fetching pkgconfig
---> Verifying checksum(s) for pkgconfig
---> Extracting pkgconfig
---> Configuring pkgconfig
---> Building pkgconfig with target all
---> Staging pkgconfig into destroot
---> Deactivating pkgconfig 0.23_0
---> Installing pkgconfig 0.23_1
---> Activating pkgconfig 0.23_1
---> Cleaning pkgconfig
---> Fetching ncursesw
---> Attempting to fetch ncurses-5.7.tar.gz from
http://ftp.gnu.org/gnu/ncurses
---> Verifying checksum(s) for ncursesw
---> Extracting ncursesw
---> Configuring ncursesw
Error: Target org.macports.configure returned: configure failure: shell
command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/work/ncurses-5.7"
&& ./configure --prefix=/opt/local --enable-widec --disable-rpath --with-
shared --without-debug --without-ada --enable-safe-sprintf --enable-
sigwinch --mandir=/opt/local/share/man " returned error 1
Command output: Configuring for darwin9.5.0
checking for prefix... /opt/local
checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.0 accepts -g... yes
checking version of /usr/bin/gcc-4.0... 4.0.1
checking how to run the C preprocessor... /usr/bin/cpp-4.0
checking whether /usr/bin/gcc-4.0 needs -traditional... no
checking whether /usr/bin/gcc-4.0 understands -c and -o together... yes
checking for POSIXized ISC... no
checking for /usr/bin/gcc-4.0 option to accept ANSI C... -DCC_HAS_PROTOS
checking for ldconfig... no
checking if you want to ensure bool is consistent with C++... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++-4.0 accepts -g... yes
checking version of g++... 4.0.1
checking if you want to build C++ binding and demo... yes
checking if you want to build with Ada95... no
checking if you want to build programs such as tic... yes
checking if you wish to install curses.h... yes
checking for mawk... (cached) no
checking for gawk... (cached) no
checking for nawk... (cached) no
checking for awk... (cached) no
configure: error: No awk program found
Error: Unable to upgrade port: 1
---> Fetching ncurses
---> Verifying checksum(s) for ncurses
---> Extracting ncurses
---> Configuring ncurses
Error: Target org.macports.configure returned: configure failure: shell
command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/work/ncurses-5.7"
&& ./configure --prefix=/opt/local --with-shared --disable-rpath
--without-debug --without-ada --enable-safe-sprintf --enable-sigwinch
--without-progs --mandir=/opt/local/share/delete-me " returned error 1
Command output: Configuring for darwin9.5.0
checking for prefix... /opt/local
checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.0 accepts -g... yes
checking version of /usr/bin/gcc-4.0... 4.0.1
checking how to run the C preprocessor... /usr/bin/cpp-4.0
checking whether /usr/bin/gcc-4.0 needs -traditional... no
checking whether /usr/bin/gcc-4.0 understands -c and -o together... yes
checking for POSIXized ISC... no
checking for /usr/bin/gcc-4.0 option to accept ANSI C... -DCC_HAS_PROTOS
checking for ldconfig... no
checking if you want to ensure bool is consistent with C++... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++-4.0 accepts -g... yes
checking version of g++... 4.0.1
checking if you want to build C++ binding and demo... yes
checking if you want to build with Ada95... no
checking if you want to build programs such as tic... no
checking if you wish to install curses.h... yes
checking for mawk... (cached) no
checking for gawk... (cached) no
checking for nawk... (cached) no
checking for awk... (cached) no
configure: error: No awk program found
Error: Unable to upgrade port: 1
---> Fetching glib2
---> Attempting to fetch glib-2.18.3.tar.bz2 from http://mandril.creatis
.insa-lyon.fr/linux/gnome.org/sources/glib/2.18/
---> Verifying checksum(s) for glib2
---> Extracting glib2
---> Applying patches to glib2
---> Configuring glib2
^C
1002:1-dfrascon at daves-macbook ~/work % sudo bash --login
root at daves-macbook Work # port upgrade outdated
---> Configuring ncursesw
---> Building ncursesw with target all
---> Staging ncursesw into destroot
---> Deactivating ncursesw 5.6_1
---> Installing ncursesw 5.7_0
---> Activating ncursesw 5.7_0
---> Cleaning ncursesw
---> Configuring ncurses
---> Building ncurses with target all
---> Staging ncurses into destroot
---> Deactivating ncurses 5.6_0
---> Installing ncurses 5.7_0
---> Activating ncurses 5.7_0
---> Cleaning ncurses
---> Configuring glib2
---> Building glib2 with target all
---> Staging glib2 into destroot
---> Deactivating glib2 2.16.5_0+darwin_9
---> Installing glib2 2.18.3_0+darwin_9
---> Activating glib2 2.18.3_0+darwin_9
---> Cleaning glib2
---> Fetching atk
---> Attempting to fetch atk-1.24.0.tar.bz2 from http://mandril.creatis
.insa-lyon.fr/linux/gnome.org/sources/atk/1.24/
---> Verifying checksum(s) for atk
---> Extracting atk
---> Configuring atk
---> Building atk with target all
---> Staging atk into destroot
---> Deactivating atk 1.22.0_1
---> Installing atk 1.24.0_0
---> Activating atk 1.24.0_0
}}}
--
Comment(by jmr@…):
I use zsh with no problems. This could be because of the bug in Leopard's
Tcl that causes environment variables not to be cleared properly. Can you
reproduce the problem with 1.7.0?
--
Ticket URL: <http://trac.macports.org/ticket/17589#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list