/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldb-4.2 But I have the use flag -berkdb Reproducible: Always Steps to Reproduce: 1. 2. 3.
Which version of subversion?
1.2.1
Because of the lack of information I'm having to guess here, but probably you used to have db-4.2 installed, linked apache-2 or apr/apr-util against it and then unmerged it. Your solution is to remerge (if they exist), apr and apr-util (if they don't remerge apache-2).
It worked. Thank you.