Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#13406 closed defect (duplicate)

BUG: py25-zlib fails to build

Reported by: takanori@… Owned by: mww@…
Priority: Normal Milestone:
Component: base Version: 1.6.0
Keywords: Cc:
Port:

Description

I tried to install py25-zlib from scratch but it failed to build. Here is my buildlog:

$ port version
Version: 1.600

$ port installed
No ports are installed.

$ sudo port install py25-zlib
--->  Fetching expat
--->  Verifying checksum(s) for expat
--->  Extracting expat
--->  Configuring expat
--->  Building expat with target all
--->  Staging expat into destroot
--->  Installing expat 2.0.1_0
--->  Activating expat 2.0.1_0
--->  Cleaning expat
--->  Fetching libiconv
--->  Verifying checksum(s) for libiconv
--->  Extracting libiconv
--->  Applying patches to libiconv
--->  Configuring libiconv
--->  Building libiconv with target all
--->  Staging libiconv into destroot
--->  Installing libiconv 1.12_0
--->  Activating libiconv 1.12_0
--->  Cleaning libiconv
--->  Fetching gettext
--->  Verifying checksum(s) for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext
--->  Building gettext with target all
--->  Staging gettext into destroot
--->  Installing gettext 0.17_1
--->  Activating gettext 0.17_1
--->  Cleaning gettext
--->  Fetching python25
--->  Verifying checksum(s) for python25
--->  Extracting python25
--->  Applying patches to python25
--->  Configuring python25
--->  Building python25 with target all
--->  Staging python25 into destroot
--->  Installing python25 2.5.1_3+darwin_9
--->  Activating python25 2.5.1_3+darwin_9
--->  Cleaning python25
--->  Fetching zlib
--->  Verifying checksum(s) for zlib
--->  Extracting zlib
--->  Applying patches to zlib
--->  Configuring zlib
--->  Building zlib with target all
--->  Staging zlib into destroot
--->  Installing zlib 1.2.3_1
--->  Activating zlib 1.2.3_1
--->  Cleaning zlib
--->  Fetching py25-zlib
--->  Verifying checksum(s) for py25-zlib
--->  Extracting py25-zlib
--->  Configuring py25-zlib
--->  Building py25-zlib with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-zlib/work/Python-2.5.1/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: running build
running build_ext
building 'zlib' extension
creating build
creating build/temp.macosx-10.3-ppc-2.5
-DNDEBUG -D__DARWIN_UNIX03 -I/opt/local/include -I/opt/local/include/python2.5 -c zlibmodule.c -o build/temp.macosx-10.3-ppc-2.5/zlibmodule.o
unable to execute -DNDEBUG: No such file or directory
error: command '-DNDEBUG' failed with exit status 1

Error: Status 1 encountered during processing.

This problem only occurs at the first time, so that's odd.

$ port installed
The following ports are currently installed:
  expat @2.0.1_0 (active)
  gettext @0.17_1 (active)
  libiconv @1.12_0 (active)
  python25 @2.5.1_3+darwin_9 (active)
  zlib @1.2.3_1 (active)

$ sudo port install py25-zlib
--->  Building py25-zlib with target build
--->  Staging py25-zlib into destroot
--->  Installing py25-zlib 2.5.1_0
--->  Activating py25-zlib 2.5.1_0
--->  Cleaning py25-zlib

I'm guessing this may be a bug in MacPorts 1.6(-rc2) since this problem does not occur on MacPorts 1.5.2.

Change History (10)

comment:1 Changed 17 years ago by mww@…

Status: newassigned

what version of OS X is this? 10.5? I guess a powerpc?

comment:2 Changed 17 years ago by takanori@…

Right. I'm now using Mac OS X 10.5.1/ppc.

comment:3 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Component: portsbase
Milestone: MacPorts 1.6MacPorts base bugs

comment:4 Changed 17 years ago by bcbarnes@…

Any news? I just observed a similar failure on fresh 10.5.2/intel with macports 1.6.0:

--->  Fetching py25-zlib
--->  Verifying checksum(s) for py25-zlib
--->  Extracting py25-zlib
--->  Configuring py25-zlib
--->  Building py25-zlib with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-zlib/work/Python-2.5.2/Modules" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: running build
running build_ext
building 'zlib' extension
creating build
creating build/temp.macosx-10.3-i386-2.5
-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/include/python2.5 -c zlibmodule.c -o build/temp.macosx-10.3-i386-2.5/zlibmodule.o
unable to execute -DNDEBUG: No such file or directory
error: command '-DNDEBUG' failed with exit status 1

Error: The following dependencies failed to build: py25-zlib texlive texlive_base ghostscript perl5.8 texi2html texinfo texlive_texmf-minimal texlive_texmf-full
Error: Status 1 encountered during processing.

comment:5 Changed 17 years ago by bcbarnes@…

another comment/solution?: I went into the directory where the command was failing ( /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-zlib/work/Python-2.5.2/Modules ), and re-executed it with a sudo prefix. The command succeeded and the build completed after I tried another port install. I don't know why it failed the first time -- it's as if the first port install lost sudo privileges.

comment:6 in reply to:  4 Changed 17 years ago by stdoonline@…

Replying to bcbarnes@gmail.com:

Any news? I just observed a similar failure on fresh 10.5.2/intel with macports 1.6.0:

Same problem here.

comment:7 Changed 17 years ago by jmroot (Joshua Root)

Cc: mww@… removed

Could be related to #14687?

comment:8 Changed 17 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: assignedclosed

Duplicate of #13930.

comment:9 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

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

Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.