[MacPorts] #16559: Leopard apache2 fails with "ld: library not found for -ldb-4.5" (db45 problem)
#16559: Leopard apache2 fails with "ld: library not found for -ldb-4.5" (db45 problem) ---------------------------+------------------------------------------------ Reporter: i@foohack.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: ---------------------------+------------------------------------------------ The apache2 port fails on Leopard with this error: `/opt/local/share/apr-1/build/libtool --silent --mode=link /usr/bin/gcc-4.0 -I/opt/local/include -O2 -L/opt/local/lib/db44 -L/opt/local/lib -o htpasswd htpasswd.lo -L/opt/local/lib -lpcre /opt/local/lib/libaprutil-1.la -ldb-4.5 -lsqlite3 -lexpat -liconv /opt/local/lib/libapr-1.la -lpthread ld: library not found for -ldb-4.5 collect2: ld returned 1 exit status make[2]: *** [htpasswd] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1` I was able to find the required libraries and fix the problem like this: `cd /opt/local/lib sudo ln -s db45/libdb* .` which links the library files from local/db45/lib into local/lib, where apache2 expects to find them. -- Ticket URL: <http://trac.macports.org/ticket/16559> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16559: Leopard apache2 fails with "ld: library not found for -ldb-4.5" (db45 problem) ----------------------------+----------------------------------------------- Reporter: i@foohack.com | Owner: imajes@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: apache2 | ----------------------------+----------------------------------------------- Changes (by jmr@macports.org): * owner: macports-tickets@lists.macosforge.org => imajes@macports.org * port: => apache2 Comment: Assigning to maintainer. I don't understand why apache would be trying to link to db45, as it depends on db46 via apr-util. -- Ticket URL: <http://trac.macports.org/ticket/16559#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16559: Leopard apache2 fails with "ld: library not found for -ldb-4.5" (db45 problem) --------------------------+------------------------------------------------- Reporter: i@… | Owner: imajes@… Type: defect | Status: new Priority: Normal | Component: ports Version: 1.6.0 | Keywords: Port: apache2 | --------------------------+------------------------------------------------- Comment(by jeremy.g.ross@…): I'm encountering this issue after upgrading to Snow Leopard, reinstalling MacPorts, then doing a "port upgrade outdated". Is this port still supported? The workaround mentioned above doesn't work for me since I don't have db45 and the db45 port doesn't seem to exist anymore. -- Ticket URL: <http://trac.macports.org/ticket/16559#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16559: Leopard apache2 fails with "ld: library not found for -ldb-4.5" (db45 problem) ----------------------------+----------------------------------------------- Reporter: i@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: Port: apache2 | ----------------------------+----------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => worksforme Old description:
The apache2 port fails on Leopard with this error:
`/opt/local/share/apr-1/build/libtool --silent --mode=link /usr/bin/gcc-4.0 -I/opt/local/include -O2 -L/opt/local/lib/db44 -L/opt/local/lib -o htpasswd htpasswd.lo -L/opt/local/lib -lpcre /opt/local/lib/libaprutil-1.la -ldb-4.5 -lsqlite3 -lexpat -liconv /opt/local/lib/libapr-1.la -lpthread ld: library not found for -ldb-4.5 collect2: ld returned 1 exit status make[2]: *** [htpasswd] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1`
I was able to find the required libraries and fix the problem like this:
`cd /opt/local/lib sudo ln -s db45/libdb* .`
which links the library files from local/db45/lib into local/lib, where apache2 expects to find them.
New description: The apache2 port fails on Leopard with this error: {{{ /opt/local/share/apr-1/build/libtool --silent --mode=link /usr/bin/gcc-4.0 -I/opt/local/include -O2 -L/opt/local/lib/db44 -L/opt/local/lib -o htpasswd htpasswd.lo -L/opt/local/lib -lpcre /opt/local/lib/libaprutil-1.la -ldb-4.5 -lsqlite3 -lexpat -liconv /opt/local/lib/libapr-1.la -lpthread ld: library not found for -ldb-4.5 collect2: ld returned 1 exit status make[2]: *** [htpasswd] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 }}} I was able to find the required libraries and fix the problem like this: {{{ cd /opt/local/lib sudo ln -s db45/libdb* . }}} which links the library files from local/db45/lib into local/lib, where apache2 expects to find them. -- Comment: I can't reproduce this. -- Ticket URL: <https://trac.macports.org/ticket/16559#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts