[MacPorts] #16559: Leopard apache2 fails with "ld: library not found for -ldb-4.5" (db45 problem)

MacPorts noreply at macports.org
Sat Oct 9 20:58:11 PDT 2010


#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


More information about the macports-tickets mailing list