building "master" under mock buildroot

Phil Mayers p.mayers at imperial.ac.uk
Thu Nov 15 14:10:29 CET 2012


All,

I'm preparing a FreeRADIUS 3 RPM, in the hope we can move to a 
pre-release of the "master" branch, for a bit of soak testing but also 
because I'm tired of backporting stuff to our local 2.x branch ;o)

Sadly, the source builds fine in the "native" OS, but doesn't build 
under "mock" (and RPM "build in chroot" tool). I'm extremely reluctant 
to deviate from our normal build procedures.

The errors at the end of the log are pretty mysterious:

+ make
gcc /builddir/build/BUILD/freeradius3-3.0.0pre1/scripts/jlibtool.c -o 
/builddir/build/BUILD/freeradius3-3.0.0pre1/scripts/jlibtool
/builddir/build/BUILD/freeradius3-3.0.0pre1/scripts/jlibtool.c: In 
function 'parse_args':
/builddir/build/BUILD/freeradius3-3.0.0pre1/scripts/jlibtool.c:1771: 
warning: assignment discards qualifiers from pointer target type
Making all in src...
ln -sf include freeradius-devel
Making all in src/include...
gmake[4]: *** [features.h] Error 1
gmake[3]: *** [include] Error 2
gmake[2]: *** [all] Error 2
gmake[1]: *** [src] Error 2
RPM build errors:
make: *** [all] Error 2


More annoying, if I "mock shell" into the buildroot and re-try "make", 
it all works fine. I can't see any obvious culprits such as an 
environment variable further up.

Does anyone have any idea what could cause the build to fail in this 
way, with those gmake errors?


More information about the Freeradius-Users mailing list