<div dir="ltr">Hi,<br><div><br>On Wed, Dec 10, 2014 at 10:35 AM, Norbert Thiebaud <<a href="mailto:nthiebaud@gmail.com">nthiebaud@gmail.com</a>> wrote:<br>><br>> On Wed, Dec 10, 2014 at 3:16 AM, Maarten Hoes <<a href="mailto:hoes.maarten@gmail.com">hoes.maarten@gmail.com</a>> wrote:<br>> > Hrm.<br>> ><br>> ><br>> > It appears I get the openldap build error when I do the build like this<br>> > (like it happens with the tb script) :<br>> ><br>> > $ LDFLAGS+='-fprofile-arcs'<br>> > $ CFLAGS+='-fprofile-arcs -ftest-coverage'<br>> > $ CXXFLAGS+='-fprofile-arcs -ftest-coverage'<br>> > $ CPPFLAGS+='-fprofile-arcs -ftest-coverage'<br>> > $ export LDFLAGS CFLAGS CXXFLAGS CPPFLAGS<br>> > $ ./autogen.sh --enable-python=internal --disable-online-update<br>> > --without-system-libs --without-system-headers<br>> > $ make build-nocheck<br>> ><br>> ><br>> ><br>> > But not when I do the build like this (like I do on the cmdline, or is done<br>> > in the lcov-report.sh script) :<br>> ><br>> > $ LDFLAGS+='-fprofile-arcs' CFLAGS+='-fprofile-arcs -ftest-coverage'<br>> > CXXFLAGS+='-fprofile-arcs -ftest-coverage' \<br>> > CPPFLAGS+='-fprofile-arcs -ftest-coverage' ./autogen.sh<br>> > --enable-python=internal --disable-online-update \<br>> > --without-system-libs --without-system-headers<br>> > $ make build-nocheck<br>> ><br>><br>> then the easiest work around is to define a custom phase for that<br>> profile that overide the configure (aka autogen) step<br>> so that it does it the second way (and remove the *FLAGS from the<br>> profile's config<br>><br>> Norbert<br><br><br>Ive taken another look at your suggestion, and I dont know where it went wrong with my earlier attempts, but now it seems that at least Im getting past the stage of building internal openldap correctly. Of course, this workaround does mean that now there is a custom do_autogen() in phases.sh that contains hardcoded FLAGS and options for autogen.sh, instead of setting them in 'config' and autogen.lastrun. Im now doing a full build and testrun to see if the rest of phase.sh does what I intended it to do.<br><br>If still interested (and my tests completes as expected), I could submit the contents of my .tb directory somewhere, but im not too sure if that's still needed or relevant anymore with your current modifications/version of the script: it lets tb do a make build-nocheck, lcov-report -b, make check, lcov-report -a, in separate steps (inside of a custom do_make in phases.sh) instead of your 'lcov-report -f' everything in a single run.<br><br><br>- Maarten<br><br><br><br><br></div></div>