[MacPorts] #44729: port install clhep fails at ImageMagick
#44729: port install clhep fails at ImageMagick ---------------------------------------+-------------------------------- Reporter: jmhanly@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: geant4, clhep, ImageMagik | Port: ---------------------------------------+-------------------------------- I have been trig to port some packages - geant4 and clhep. They both fail and it seems to occur at ImageMagick part. I tried to update ImageMagick and it failed as well. Before this I update MacPorts and I'm running Version: 2.3.1. -- Ticket URL: <https://trac.macports.org/ticket/44729> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: port install clhep fails at ImageMagick ------------------------+--------------------------------------- Reporter: jmhanly@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: geant4, clhep, ImageMagik Port: | ------------------------+--------------------------------------- Comment (by jmhanly@…): I am running Mac OS 10.9.4 -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion -------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagik | -------------------------+-------------------------- Changes (by ryandesign@…): * cc: jmhanly@… (removed) * keywords: geant4, clhep, ImageMagik => * port: => ImageMagik * owner: macports-tickets@… => ryandesign@… Comment: This wasn't a clean build. Please [https://guide.macports.org/chunked/project.html#project.tickets run "sudo port clean ImageMagick"] and then try again. -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Changes (by mf2k@…): * port: ImageMagik => ImageMagick -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): i attached the new log file. -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): i did the clean but it failed again... -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by ryandesign@…): Thanks, I'll compare that log with mine and hopefully spot what's different. Meanwhile, I'll ask about a common cause of problems: do you have anything installed in /usr/local? If so, try removing it, then cleaning ImageMagick and trying again. -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): yes I just attached output from ls -lrt /usr/local -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): thanks for helping with this.. -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): i don't know how I got so much in my /usr/local directory but i am creating a tar to remove it all. -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by ryandesign@…): Knowing what's in /usr/local/include and /usr/local/lib specifically might help. I suspect you may have a copy of zlib or libpng installed there that is interfering. Such interference is why we don't support having software installed in /usr/local while using MacPorts. See wiki:FAQ#usrlocal. -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): in usr/local/lib i have maybe a 100 or so files starting with lib*** and in /usr/local/include i have 2 directories: aquaterm and CLHEP -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): i have tarred the whole directory but now I am afraid to remove all these files... -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by ryandesign@…): You can just rename /usr/local temporarily to see if it helps, e.g. {{{ sudo mv /usr/local{,-off} }}} And later to bring it back: {{{ sudo mv /usr/local{-off,} }}} -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): should 2nd line be sudo mv /usr/local{-off,} ?? -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): i just did as you suggested. then I ran sudo port clean ImageMagick and then sudo port install ImageMagick It still crashed... sorry -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): really sorry to be such a pest!!! -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by ryandesign@…): Looking more closely at your log, I see this line: {{{ :info:build ld: warning: ignoring file /opt/local/lib/libz.dylib, missing required architecture x86_64 in file /opt/local/lib/libz.dylib (2 slices) }}} MacPorts ensures that the architectures of dependencies (in this case zlib) match the architectures of the port you're about to install (ImageMagick), according to MacPorts' installation registry. Despite that check, it appears that your zlib doesn't actually contain x86_64 code. To verify these things, you can run: {{{ port -v installed zlib lipo -info /opt/local/lib/libz.dylib }}} The first command shows the architectures MacPorts recorded that it installed the port for, and the latter shows the architecture actually in the file on disk now. If your system is in the state I think it's in, then the first command will show that MacPorts thinks zlib is installed for x86_64, but the second command will show a different architecture (or architectures). One way this can happen is if you ran a third-party installer that was itself built with MacPorts (configured for different architectures) which overwrote your MacPorts-installed files. Could that be? If so, let us know what third-party installer it was. To fix this problem for zlib, you should deactivate and reactivate zlib: {{{ sudo port -f deactivate zlib sudo port activate zlib }}} This will remove all the zlib files, then re-extract them from the archive MacPorts created at original install time. And then clean ImageMagick and try again. However, if some third-party installer replaced zlib, who knows what else it replaced. You could ensure that all files of ports you have installed are the ones they should be by deactivating all active ports, then re- activating them again. I can give you instructions on that later if necessary. -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:18> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): the two commands you requested: port -v installed zlib The following ports are currently installed: zlib @1.2.8_0 (active) platform='darwin 13' archs='x86_64' lipo -info /opt/local/lib/libz.dylib Architectures in the fat file: /opt/local/lib/libz.dylib are: i386 ppc -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:19> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): now i get port -v installed zlib The following ports are currently installed: zlib @1.2.8_0 (active) platform='darwin 13' archs='x86_64' lipo -info /opt/local/lib/libz.dylib Non-fat file: /opt/local/lib/libz.dylib is architecture: x86_64 -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:20> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): It Worked!!!!!! port install ImageMagick ran to completion and said No broken files found.. I really appreciate your help. This was obviously a self-inflected wound but thank you very much. Great job... -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:21> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: invalid | Keywords: Port: ImageMagick | --------------------------+-------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: Glad that worked. But bear in mind what I said: we don't know how that 32-bit zlib got on your system; whatever third-party installer put it there could have also replaced other libraries with 32-bit versions, which may cause similar errors when you try to install other ports in the future. Additionally, the unidentified installer may have installed files belonging to ports that you don't have installed; this would be a problem if you ever in the future try to install those ports, as you will then get an error message that the files already exist. One solution would be to uninstall MacPorts and all ports, then remove /opt/local entirely, then reinstall MacPorts and the ports you want. But this can be inconvenient and time-consuming. -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:22> MacPorts <http://www.macports.org/> Ports system for OS X
#44729: ImageMagick: Undefined symbols _crc32 _zlibVersion --------------------------+-------------------------- Reporter: jmhanly@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: invalid | Keywords: Port: ImageMagick | --------------------------+-------------------------- Comment (by jmhanly@…): Thanks again. I understand your comments and will keep those in mind. -- Ticket URL: <https://trac.macports.org/ticket/44729#comment:23> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts