#20071: atlas libraries improperly linked; prevents shogun installation -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: ajb78@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: atlas, shogun -------------------------------------+-------------------------------------- When trying to install shogun (@0.7.3_0) I get: {{{ /usr/bin/ld: warning can't open dynamic library: libptf77blas.dylib referenced from: /mp/lib/liblapack.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) /usr/bin/ld: warning can't open dynamic library: libptcblas.dylib referenced from: /mp/lib/liblapack.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) /usr/bin/ld: warning can't open dynamic library: libatlas.dylib referenced from: /mp/lib/liblapack.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) }}} Looking at this liblapack.dylib (provided by atlas @3.8.3_0) we see it's linking with these other libraries just by the name of the library, when on Mac OS X one must use the absolute path to the library (as is already being correctly done for e.g. libgfortran.3.dylib): {{{ $ port provides /mp/lib/liblapack.dylib /mp/lib/liblapack.dylib is provided by: atlas $ otool -L /mp/lib/liblapack.dylib /mp/lib/liblapack.dylib: liblapack.dylib (compatibility version 0.0.0, current version 0.0.0) libptf77blas.dylib (compatibility version 0.0.0, current version 0.0.0) /mp/lib/gcc43/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0) libptcblas.dylib (compatibility version 0.0.0, current version 0.0.0) libatlas.dylib (compatibility version 0.0.0, current version 0.0.0) /mp/lib/gcc43/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.11) }}} The author of the shogun port has noticed this in some way, and added this message to the post-install of the shogun port: {{{ You will need to set: DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib Or shogun will not be able to find the macports atlas libs }}} However, the port never gets that far (fails during build). Ultimately, this is not shogun's responsibility to fix; it's atlas's. I'm using Mac OS X 10.4.11 with Xcode 2.5 on Intel Core2 Duo with MacPorts 1.7.1. -- Ticket URL: <http://trac.macports.org/ticket/20071> MacPorts <http://www.macports.org/> Ports system for Mac OS