Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#13188 closed defect (worksforme)

Can't install zlib +universal on Mac OS X 10.5 (Leopard)

Reported by: simon.wade@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: Cc: landonf (Landon Fuller)
Port:

Description

Compiling libz fails when I try to install PHP4. I've installed the XCode tools and Dev SDK. Debug output is below, any help greatly appreciated.

monty:~$ sudo port -d install php4 +apache2 +curl +macosx +mysql5 +universal
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/www/php4
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/php4
DEBUG: Requested variant darwin is not provided by port php4.
DEBUG: Requested variant universal is not provided by port php4.
DEBUG: Requested variant i386 is not provided by port php4.
DEBUG: Executing variant macosx provides macosx
DEBUG: Executing variant apache2 provides apache2
DEBUG: Executing variant curl provides curl
DEBUG: Executing variant mysql5 provides mysql5
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Requested variant apache2 is not provided by port libiconv.
DEBUG: Requested variant darwin is not provided by port libiconv.
DEBUG: Requested variant universal is not provided by port libiconv.
DEBUG: Requested variant i386 is not provided by port libiconv.
DEBUG: Requested variant curl is not provided by port libiconv.
DEBUG: Requested variant mysql5 is not provided by port libiconv.
DEBUG: Requested variant macosx is not provided by port libiconv.
DEBUG: Searching for dependency: libiconv
DEBUG: Found Dependency: receipt exists for libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Requested variant apache2 is not provided by port expat.
DEBUG: Requested variant darwin is not provided by port expat.
DEBUG: Requested variant universal is not provided by port expat.
DEBUG: Requested variant i386 is not provided by port expat.
DEBUG: Requested variant curl is not provided by port expat.
DEBUG: Requested variant mysql5 is not provided by port expat.
DEBUG: Requested variant macosx is not provided by port expat.
DEBUG: Searching for dependency: expat
DEBUG: Found Dependency: receipt exists for expat
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
DEBUG: Requested variant apache2 is not provided by port gettext.
DEBUG: Requested variant darwin is not provided by port gettext.
DEBUG: Requested variant universal is not provided by port gettext.
DEBUG: Requested variant i386 is not provided by port gettext.
DEBUG: Requested variant curl is not provided by port gettext.
DEBUG: Requested variant mysql5 is not provided by port gettext.
DEBUG: Requested variant macosx is not provided by port gettext.
DEBUG: Searching for dependency: gettext
DEBUG: Found Dependency: receipt exists for gettext
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Requested variant apache2 is not provided by port zlib.
DEBUG: Requested variant darwin is not provided by port zlib.
DEBUG: Requested variant universal is not provided by port zlib.
DEBUG: Requested variant i386 is not provided by port zlib.
DEBUG: Requested variant curl is not provided by port zlib.
DEBUG: Requested variant mysql5 is not provided by port zlib.
DEBUG: Requested variant macosx is not provided by port zlib.
DEBUG: Searching for dependency: zlib
DEBUG: Didn't find receipt, going to depspec regex for: zlib
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl
DEBUG: Requested variant apache2 is not provided by port openssl.
DEBUG: Requested variant i386 is not provided by port openssl.
DEBUG: Requested variant curl is not provided by port openssl.
DEBUG: Requested variant mysql5 is not provided by port openssl.
DEBUG: Requested variant macosx is not provided by port openssl.
DEBUG: Executing variant darwin provides darwin
DEBUG: Executing variant universal provides universal
DEBUG: Searching for dependency: openssl
DEBUG: Didn't find receipt, going to depspec regex for: openssl
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/tiff
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/tiff
DEBUG: Requested variant apache2 is not provided by port tiff.
DEBUG: Requested variant darwin is not provided by port tiff.
DEBUG: Requested variant universal is not provided by port tiff.
DEBUG: Requested variant i386 is not provided by port tiff.
DEBUG: Requested variant curl is not provided by port tiff.
DEBUG: Requested variant mysql5 is not provided by port tiff.
DEBUG: Executing variant macosx provides macosx
DEBUG: Searching for dependency: tiff
DEBUG: Didn't find receipt, going to depspec regex for: tiff
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libxml2
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libxml2
DEBUG: Requested variant apache2 is not provided by port libxml2.
DEBUG: Requested variant darwin is not provided by port libxml2.
DEBUG: Requested variant universal is not provided by port libxml2.
DEBUG: Requested variant i386 is not provided by port libxml2.
DEBUG: Requested variant curl is not provided by port libxml2.
DEBUG: Requested variant mysql5 is not provided by port libxml2.
DEBUG: Requested variant macosx is not provided by port libxml2.
DEBUG: Searching for dependency: libxml2
DEBUG: Didn't find receipt, going to depspec regex for: libxml2
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libtool
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libtool
DEBUG: Requested variant apache2 is not provided by port libtool.
DEBUG: Requested variant darwin is not provided by port libtool.
DEBUG: Requested variant universal is not provided by port libtool.
DEBUG: Requested variant i386 is not provided by port libtool.
DEBUG: Requested variant curl is not provided by port libtool.
DEBUG: Requested variant mysql5 is not provided by port libtool.
DEBUG: Requested variant macosx is not provided by port libtool.
DEBUG: Searching for dependency: libtool
DEBUG: Didn't find receipt, going to depspec regex for: libtool
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/www/apache2
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/apache2
DEBUG: Requested variant apache2 is not provided by port apache2.
DEBUG: Requested variant universal is not provided by port apache2.
DEBUG: Requested variant i386 is not provided by port apache2.
DEBUG: Requested variant curl is not provided by port apache2.
DEBUG: Requested variant mysql5 is not provided by port apache2.
DEBUG: Requested variant macosx is not provided by port apache2.
DEBUG: Executing variant darwin provides darwin
DEBUG: Searching for dependency: apache2
DEBUG: Didn't find receipt, going to depspec regex for: apache2
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/net/curl
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/net/curl
DEBUG: Requested variant apache2 is not provided by port curl.
DEBUG: Requested variant darwin is not provided by port curl.
DEBUG: Requested variant universal is not provided by port curl.
DEBUG: Requested variant i386 is not provided by port curl.
DEBUG: Requested variant curl is not provided by port curl.
DEBUG: Requested variant mysql5 is not provided by port curl.
DEBUG: Requested variant macosx is not provided by port curl.
DEBUG: Searching for dependency: curl
DEBUG: Didn't find receipt, going to depspec regex for: curl
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5
DEBUG: Requested variant apache2 is not provided by port mysql5.
DEBUG: Requested variant darwin is not provided by port mysql5.
DEBUG: Requested variant universal is not provided by port mysql5.
DEBUG: Requested variant i386 is not provided by port mysql5.
DEBUG: Requested variant curl is not provided by port mysql5.
DEBUG: Requested variant mysql5 is not provided by port mysql5.
DEBUG: Requested variant macosx is not provided by port mysql5.
DEBUG: Searching for dependency: mysql5
DEBUG: Didn't find receipt, going to depspec regex for: mysql5
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Searching for dependency: zlib
DEBUG: Didn't find receipt, going to depspec regex for: zlib
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/jpeg
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/jpeg
DEBUG: Requested variant apache2 is not provided by port jpeg.
DEBUG: Requested variant darwin is not provided by port jpeg.
DEBUG: Requested variant universal is not provided by port jpeg.
DEBUG: Requested variant i386 is not provided by port jpeg.
DEBUG: Requested variant curl is not provided by port jpeg.
DEBUG: Requested variant mysql5 is not provided by port jpeg.
DEBUG: Requested variant macosx is not provided by port jpeg.
DEBUG: Searching for dependency: jpeg
DEBUG: Didn't find receipt, going to depspec regex for: jpeg
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Searching for dependency: zlib
DEBUG: Didn't find receipt, going to depspec regex for: zlib
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Searching for dependency: libiconv
DEBUG: Found Dependency: receipt exists for libiconv
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Searching for dependency: zlib
DEBUG: Didn't find receipt, going to depspec regex for: zlib
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/apr
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/apr
DEBUG: Requested variant apache2 is not provided by port apr.
DEBUG: Requested variant darwin is not provided by port apr.
DEBUG: Requested variant universal is not provided by port apr.
DEBUG: Requested variant i386 is not provided by port apr.
DEBUG: Requested variant curl is not provided by port apr.
DEBUG: Requested variant mysql5 is not provided by port apr.
DEBUG: Requested variant macosx is not provided by port apr.
DEBUG: Executing variant darwin_9 provides darwin_9
DEBUG: Searching for dependency: apr
DEBUG: Found Dependency: receipt exists for apr
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/apr-util
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/apr-util
DEBUG: Requested variant apache2 is not provided by port apr-util.
DEBUG: Requested variant darwin is not provided by port apr-util.
DEBUG: Requested variant universal is not provided by port apr-util.
DEBUG: Requested variant i386 is not provided by port apr-util.
DEBUG: Requested variant curl is not provided by port apr-util.
DEBUG: Requested variant mysql5 is not provided by port apr-util.
DEBUG: Requested variant macosx is not provided by port apr-util.
DEBUG: Searching for dependency: apr-util
DEBUG: Found Dependency: receipt exists for apr-util
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: Searching for dependency: expat
DEBUG: Found Dependency: receipt exists for expat
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl
DEBUG: Searching for dependency: openssl
DEBUG: Didn't find receipt, going to depspec regex for: openssl
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pcre
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pcre
DEBUG: Requested variant apache2 is not provided by port pcre.
DEBUG: Requested variant darwin is not provided by port pcre.
DEBUG: Requested variant universal is not provided by port pcre.
DEBUG: Requested variant i386 is not provided by port pcre.
DEBUG: Requested variant curl is not provided by port pcre.
DEBUG: Requested variant mysql5 is not provided by port pcre.
DEBUG: Requested variant macosx is not provided by port pcre.
DEBUG: Searching for dependency: pcre
DEBUG: Didn't find receipt, going to depspec regex for: pcre
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Searching for dependency: zlib
DEBUG: Didn't find receipt, going to depspec regex for: zlib
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pkgconfig
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/pkgconfig
DEBUG: Requested variant apache2 is not provided by port pkgconfig.
DEBUG: Requested variant darwin is not provided by port pkgconfig.
DEBUG: Requested variant universal is not provided by port pkgconfig.
DEBUG: Requested variant i386 is not provided by port pkgconfig.
DEBUG: Requested variant curl is not provided by port pkgconfig.
DEBUG: Requested variant mysql5 is not provided by port pkgconfig.
DEBUG: Requested variant macosx is not provided by port pkgconfig.
DEBUG: Searching for dependency: pkgconfig
DEBUG: Didn't find receipt, going to depspec regex for: pkgconfig
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Searching for dependency: zlib
DEBUG: Didn't find receipt, going to depspec regex for: zlib
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl
DEBUG: Searching for dependency: openssl
DEBUG: Didn't find receipt, going to depspec regex for: openssl
DEBUG: Skipping completed org.macports.main (zlib)
DEBUG: Skipping completed org.macports.fetch (zlib)
DEBUG: Skipping completed org.macports.checksum (zlib)
DEBUG: setting option extract.cmd to /usr/bin/bzip2
DEBUG: Skipping completed org.macports.extract (zlib)
DEBUG: Skipping completed org.macports.patch (zlib)
DEBUG: Skipping completed org.macports.configure (zlib)
--->  Building zlib with target all
DEBUG: Executing org.macports.build (zlib)
DEBUG: Environment: 
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.3" && make all'
gcc -dynamiclib -install_name /opt/local/lib/libz.1.dylib -compatibility_version 1 -current_version 1.2.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -o libz.1.2.3.dylib adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
ld:ld:  librarylibrary  notnot  foundfound  forfor  --ldylib1.10.5.oldylib1.10.5.o

collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccqu9Ii7.out (No such file or directory)
make: *** [libz.1.2.3.dylib] Error 1
Error: Target org.macports.build 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.3" && make all " returned error 2
Command output: gcc -dynamiclib -install_name /opt/local/lib/libz.1.dylib -compatibility_version 1 -current_version 1.2.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -o libz.1.2.3.dylib adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
ld:ld:  librarylibrary  notnot  foundfound  forfor  --ldylib1.10.5.oldylib1.10.5.o

collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccqu9Ii7.out (No such file or directory)
make: *** [libz.1.2.3.dylib] Error 1

Warning: the following items did not execute (for zlib): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: The following dependencies failed to build: apache2 openssl zlib pcre curl pkgconfig libtool libxml2 mysql5 tiff jpeg
Error: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 16 years ago by cssdev

Owner: changed from macports-dev@… to jwa@…

Assign to the port maintainer.

comment:2 Changed 16 years ago by cssdev

Milestone: Port Bugs

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

Cc: landonf@… added
Owner: changed from jwa@… to ryandesign@…
Summary: Can't install PHP4 on Mac OS 10.5 (Leopard)Can't install zlib +universal on Mac OS X 10.5 (Leopard)

The problem is with zlib, not php4. Assigning to maintainer of zlib.

You're building universal. Any particular reason? Do you really need to use this software on both an Intel and a PowerPC Mac? If you only need to use it on either an Intel or a PowerPC Mac, don't build universal. While I agree the port should work universal, if you don't need universal, then don't request it.

I'm very confused by the double-word error message "ld:ld: librarylibrary notnot foundfound forfor --ldylib1.10.5.oldylib1.10.5.o"

Does the problem still occur if you "sudo port clean --work zlib" and try again?

Does the problem still occur if you upgrade to MacPorts 1.6.0 with "sudo port selfupdate"?

comment:4 Changed 16 years ago by simon.wade@…

I just tried to do what you asked, but it's already installed and working - probably from building something else. Is there anything you'd like me to try?

comment:5 Changed 15 years ago by tobypeterson

Resolution: worksforme
Status: newclosed

comment:6 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.