[MacPorts] #14394: zlib +universal requires -mmacosx-version-min=10.4
#14394: zlib +universal requires -mmacosx-version-min=10.4 ----------------------------------+----------------------------------------- Reporter: gui_dos@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | ----------------------------------+----------------------------------------- When not adding to the zlib's portfile the line {{{ configure.universal_cflags-append -mmacosx-version-min=10.4 }}} the compilation fails reporting the error: {{{ /usr/bin/gcc-4.0 -dynamiclib -install_name /opt/local/lib/libz.1.dylib -compatibility_version 1 -current_version 1.2.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -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: library not found for -ldylib1.10.5.o collect2: ld returned 1 exit status ld: library not found for -ldylib1.10.5.o collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccrJTQkz.out (No such file or directory) make: *** [libz.1.2.3.dylib] Error 1 }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14394> MacPorts </projects/macports> Ports system for Mac OS
#14394: zlib +universal requires -mmacosx-version-min=10.4 -----------------------------------+---------------------------------------- Reporter: gui_dos@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: | Keywords: -----------------------------------+---------------------------------------- Comment (by ryandesign@macports.org): What version of Mac OS X, MacPorts and Xcode do you have and what kind of processor is in your Mac? MacPorts trunk already includes -mmacosx-version-min=whatever when running on Leopard. See r33480. I'm running Mac OS X 10.4.11 with Xcode 3.0 and MacPorts trunk on Intel, but I have never seen this error with previous MacPorts versions either. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14394#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#14394: zlib +universal requires -mmacosx-version-min=10.4 -----------------------------------+---------------------------------------- Reporter: gui_dos@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: | Keywords: -----------------------------------+---------------------------------------- Comment (by gui_dos@macports.org): As I reported, I am referring to MacPorts 1.7.0 from trunk. I am trying to rebuild from scratch all the universal variants on a G4 with Leopard 10.5.2. The other ports are seeing the extended LDFLAGS but the "gcc-4.0 -dynamiclib" of zlib isn't using them and you have to modify the CFLAGS in order to enforce passing "-mmacosx-version-min=10.4" to it. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14394#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#14394: zlib +universal requires -mmacosx-version-min=10.4 -----------------------------------+---------------------------------------- Reporter: gui_dos@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: | Keywords: -----------------------------------+---------------------------------------- Changes (by gui_dos@macports.org): * cc: afb@macports.org (added) -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14394#comment:3> MacPorts </projects/macports> Ports system for Mac OS
#14394: zlib +universal requires -mmacosx-version-min=10.4 -----------------------------------+---------------------------------------- Reporter: gui_dos@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: | Keywords: -----------------------------------+---------------------------------------- Comment (by gui_dos@macports.org): The same issue happens with jpeg: {{{ /usr/bin/gcc-4.0 -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I. -dynamiclib -o .libs/libjpeg.62.0.0.dylib jcapimin.lo jcapistd.lo jctrans.lo jcparam.lo jdatadst.lo jcinit.lo jcmaster.lo jcmarker.lo jcmainct.lo jcprepct.lo jccoefct.lo jccolor.lo jcsample.lo jchuff.lo jcphuff.lo jcdctmgr.lo jfdctfst.lo jfdctflt.lo jfdctint.lo jdapimin.lo jdapistd.lo jdtrans.lo jdatasrc.lo jdmaster.lo jdinput.lo jdmarker.lo jdhuff.lo jdphuff.lo jdmainct.lo jdcoefct.lo jdpostct.lo jddctmgr.lo jidctfst.lo jidctflt.lo jidctint.lo jidctred.lo jdsample.lo jdcolor.lo jquant1.lo jquant2.lo jdmerge.lo jcomapi.lo jutils.lo jerror.lo jmemmgr.lo jmemnobs.lo -lc -install_name /opt/local/lib/libjpeg.62.dylib -compatibility_version 63 -current_version 63.0 ld: library not found for -ldylib1.10.5.o collect2: ld returned 1 exit status ld: library not found for -ldylib1.10.5.o collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccjUnvIf.out (No such file or directory) make: *** [libjpeg.la] Error 1 }}} Instead of modifying the configure/makefile scripts, we could simply add {{{ configure.universal_cflags-append -mmacosx-version-min=10.4 }}} in the configure_get_universal_cflags proc of portconfigure.tcl, too -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14394#comment:4> MacPorts </projects/macports> Ports system for Mac OS
#14394: zlib +universal requires -mmacosx-version-min=10.4 -----------------------------------+---------------------------------------- Reporter: gui_dos@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: duplicate | Keywords: -----------------------------------+---------------------------------------- Changes (by afb@macports.org): * status: new => closed * resolution: => duplicate Comment: Dupe, #14399. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14394#comment:5> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts