Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#20592 closed defect (invalid)

apr-util: Wrong library path in apu-1-config

Reported by: nrc@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: apr-util

Description

% apu-1-config --link-ld --libs
 -L/opt/local/lib -laprutil-1  -ldb-4.6    -lexpat -liconv

However, actually trying to use these linker flags results in an error, because db-4.6 cannot be found. That is because the given "-L" library path is unsufficient: MacPorts has installed db4.6 in /opt/local/lib/db4.6 rather than /opt/local/lib, so db-4.6 cannot be found.

Change History (3)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to dluke@…
Port: apr-util added

comment:2 Changed 15 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: newclosed

which version of apr-util do you have installed?

Here's what I have for the current version:

% apu-1-config --link-ld

-L/opt/local/lib -laprutil-1

% apu-1-config --libs

-ldb-4.6 -lexpat -liconv

% apu-1-config --ldflags

-L/opt/local/lib/db46 -L/opt/local/lib

closing as 'invalid' - will re-open if this is happening with the current version.

comment:3 Changed 15 years ago by nrc@…

Fair enough: I had neglected to use --ldflags, since --link-ld provides most (but not all) of the linker flags required. I agree this isn't a bug.

Note: See TracTickets for help on using tickets.