[MacPorts] #26224: zlib fails to configure shared library
#26224: zlib fails to configure shared library ---------------------------+------------------------------------------------ Reporter: aj@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: zlib ---------------------------+------------------------------------------------ fresh install of macports. building zlib fails on make install on a copy $SHAREDLV line where $SHAREDLV is null. Running configure manually in the build dir configures zlib properly to build the shared library and fill out the makefile properly. You can then use ports to install zlib, as make install will run correctly. -- Ticket URL: <http://trac.macports.org/ticket/26224> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26224: zlib fails to configure shared library ---------------------------+------------------------------------------------ Reporter: aj@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: zlib ---------------------------+------------------------------------------------ Changes (by ryandesign@…): * cc: landonf@… (added) * owner: macports-tickets@… => ryandesign@… Comment: Please Cc port maintainers. In the past, I believe this problem was caused by attempting to install zlib while Xcode was not properly installed, then installing Xcode properly, then re-attempting to install zlib without having first cleaned it. So please ensure the correct version of Xcode for your OS version is installed properly, clean zlib, and try again, and let us know if that works or not. If not, attach the main.log file. -- Ticket URL: <http://trac.macports.org/ticket/26224#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26224: zlib fails to configure shared library ---------------------------+------------------------------------------------ Reporter: aj@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: zlib ---------------------------+------------------------------------------------ Comment(by aj@…): XCode is v3.2.2 gcc: is i686-apple-darwin10-gcc-4.2.1 -- Ticket URL: <http://trac.macports.org/ticket/26224#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26224: zlib fails to configure shared library ---------------------------+------------------------------------------------ Reporter: aj@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: zlib ---------------------------+------------------------------------------------ Comment(by aj@…): Line 40 in the main.log is where the configuration error happens -- Ticket URL: <http://trac.macports.org/ticket/26224#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26224: zlib fails to configure shared library when using 'configuredistcc yes' ---------------------------+------------------------------------------------ Reporter: aj@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: zlib ---------------------------+------------------------------------------------ -- Ticket URL: <http://trac.macports.org/ticket/26224#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26224: zlib fails to configure shared library when using 'configuredistcc yes' ---------------------------+------------------------------------------------ Reporter: aj@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: zlib ---------------------------+------------------------------------------------ Comment(by ryandesign@…): I've never tried using distcc. Do you see the same problem without it? -- Ticket URL: <http://trac.macports.org/ticket/26224#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26224: zlib fails to configure shared library when using 'configuredistcc yes' ---------------------------+------------------------------------------------ Reporter: aj@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: zlib ---------------------------+------------------------------------------------ Comment(by aj@…): Indeed. That's it. It works fine without distcc on. Somehow the distcc failure kills the config. probably kills something in the environment or fails to set something up when distcc fails. -- Ticket URL: <http://trac.macports.org/ticket/26224#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26224: zlib fails to configure shared library when using 'configuredistcc yes' ---------------------------+------------------------------------------------ Reporter: aj@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: zlib ---------------------------+------------------------------------------------ Comment(by dmitrij.ledkov@…): Building with configure.compiler=clang installs only .a and .so. Building with default gcc-4.2 compiler install dylib. There is a makefile patch. Probably it needs updating. -- Ticket URL: <https://trac.macports.org/ticket/26224#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26224: zlib fails to configure shared library when using 'configuredistcc yes' ---------------------------+------------------------------------------------ Reporter: aj@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: zlib ---------------------------+------------------------------------------------ Comment(by dmitrij.ledkov@…): {{{ test -z "$CC" && echo Checking for ${CROSS_PREFIX}gcc... cc=${CC-${CROSS_PREFIX}gcc} cflags=${CFLAGS-"-O3"} # to force the asm version use: CFLAGS="-O3 -DASMV" ./configure case "$cc" in *gcc*) gcc=1 ;; esac if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then dylib options in the darwin case else no darwin case endif }}} This is in the hand-written configure script. So if we are building with something that is not gcc, we are not getting dylib =( -- Ticket URL: <https://trac.macports.org/ticket/26224#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26224: zlib fails to configure shared library when using 'configuredistcc yes' ---------------------------+------------------------------------------------ Reporter: aj@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: zlib ---------------------------+------------------------------------------------ Comment(by ryandesign@…): Changing a port's compiler is not something a user should be doing and is not supported (unless the port offers variants for doing that, which zlib does not). -- Ticket URL: <https://trac.macports.org/ticket/26224#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts