Opened 14 years ago

Closed 14 years ago

#25125 closed defect (duplicate)

zlib destroot failure when Xcode is too old

Reported by: brenna.switzer@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: zlib

Description (last modified by jmroot (Joshua Root))

I am new to macports, so forgive me if this question is simplistic. I am attempting to install MAMP on my Mac (Snow Leopard 10.6.3) using macports (XCode 3.2.2) and am getting the same error for install on apache2, mysql5 and php5. It's probably quite simple, but I am stumped.

I did have mysql previously installed but I deleted it. I also had apache2 and php5 running through Mac's native install, but I have disabled it.

Here is the error (using the -d flag):

--->  Staging zlib into destroot
. missing (directory not created: File exists)
./Applications missing (directory not created: File exists)
./Developer missing (directory not created: File exists)
./Library missing (directory not created: File exists)
DEBUG: Executing org.macports.destroot (zlib)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5" && /usr/bin/make install prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local'
cp libz.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local/lib
cp  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local/lib
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
make: *** [install-libs] Error 64
Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5" && /usr/bin/make install prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5" && /usr/bin/make install prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local " returned error 2
    while executing
"command_exec destroot"
    (procedure "portdestroot::destroot_main" line 2)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for zlib): org.macports.activate org.macports.destroot org.macports.install
Error: The following dependencies failed to build: openssl zlib pcre bzip2
Error: Status 1 encountered during processing.

Change History (11)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Cc: ryandesign@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to landonf@…
Port: zlib added
Summary: MAMP install failzlib destroot failure

Please remember to preview and use WikiFormatting, put the name of the failing port in the Port field, and cc its maintainers.

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

Owner: changed from landonf@… to ryandesign@…
Status: newassigned

This sounds like a duplicate of #24599. Have you installed Xcode?

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

Try cleaning zlib and trying again.

comment:4 Changed 14 years ago by brenna.switzer@…

Thanks for the tips about posting -- I'll be sure and document any future tickets by the standard.

Cleaning zlib worked like a charm. Thank you.

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

Thanks for letting me know you got it working. I wish I understood why this problem is happening for some people. Is it possible you tried to install zlib before having Xcode installed, ran into an error, installed Xcode, and then tried again to install zlib without cleaning zlib first? That's my hypothesis so far but I have not had the opportunity to test it yet.

comment:6 Changed 14 years ago by brenna.switzer@…

You know, that might actually be the case. I initially tried to install macports without realizing that I was working with an older version of XCode, so I upgraded. Perhaps that initial failed installation caused some malfunction.

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

Do you remember what version of Xcode you had before?

comment:8 Changed 14 years ago by brenna.switzer@…

I'm not completely sure, but it's likely it was 2.2.1 -- that was the current version active when I first downloaded it.

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

Ok, earlier than 3.2.0 at any rate. (3.2.0 is the earliest version of Xcode that works on Snow Leopard.) This would be a more involved scenario for me to test (install Tiger or Leopard, install its Xcode, update to Snow Leopard, install MacPorts, start installing zlib, upgrade Xcode, continue installing zlib, see if error) but easy enough to add a check for in the port (using the xcodeversion portgroup).

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

1.9.0 will error out in that situation before it starts building.

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

Resolution: duplicate
Status: assignedclosed
Summary: zlib destroot failurezlib destroot failure when Xcode is too old

True. But for the sake of having this fixed immediately, added checks that a valid Xcode version is installed in r68569.

Note: See TracTickets for help on using tickets.