On 01/05/2017 19:18, Bruce Dubbs wrote: > Pierre Labastie wrote: >> For me the instructions to install unbound-1.6.1 (same for 1.6.2) in the >> book lead to the error: >> ------------------ >> /sources/unbound/unbound-1.6.2/.libs/libunbound.so: undefined reference to >> `ub_c >> _in' >> /sources/unbound/unbound-1.6.2/.libs/libunbound.so: undefined reference to >> `ub_c >> _lex' >> ------------------ >> I have installed the patch provided to flex, and it still fails with the >> same error. >> So I did a bisection on flex source, and actually, for me, the commit >> which fixes build is >> https://github.com/westes/flex/commit/078b46c69d063aef1715b11348a2871d6036f253, >> >> while the provided patch is >> https://github.com/westes/flex/commit/f5d87f1a26f4a5c3402497008ae10e9a1345d327. >> >> >> Can somebody confirm this? I can upload the second patch to the patch repo >> if needed. > > The provided patch was all I needed. I rebuilt flex with the patch in the > current LFS -dev book and unbound-1.6.{1,2} built fine. > > There seems to be a newline in the vars above. It should be: > > `ub_c_in' not > > `ub_c > _in' > > Or is that email wrapping? > > -- Bruce > It is email wrapping, sorry for that, but when I sent it, it was OK ;-)
I can't explain why it works for you and not for me... When I found that I could not build unbound with flex-2.6.3 + patch in the current LFS, I had to make several test. What I did was to configure and make flex (with various patches), and instead of installing, I tried building unbound by prepending LEX=<flex build topdir>/src/flex before the configure instruction. Maybe somebody could try building flex with the current patch (without installing, stop after make), then build unbound 1.6.2 using the LEX= thing above. It does not take much time, and there's no need to install unbound. The timings are a fraction of SBU... Pierre -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
