If your build fails, you will be dropped to a chrooted shell.

This shell performs some tools like vim to edit files an a full running pakfire to install all available packages if necessary.

Determine dependencies

If your configure script fails, because there are some header files missing, you can change to the source directory of the package with:

cd /usr/src/pkgname/

Check all available configure flags by typing

./configure --help

Disable the support for unneeded functions or install the development packages with pakfire:

pakfire install pkgname-devel
Note!
Document all your changes. Without change documentation your changes will be dismissed and you have to apply them again!