After make repo-chroot-init
you get a fresh var/lib/mock/centos-5-x86_64/root. On my RPM_DIST_DIR folder there was a previous sipxportlib-devel-4.4.0 rpm. You have to delete that rpm, then createrepo, If there are both sipxportlib-devel-4.4.0.rpm and sipxportlib-devel-0.0.4.5.2.rpm on repo, mock installs 4.4.0 version. Therefore you can not get OsLogger.h on mock root folder. maybe make repo-clean does what I did manually. Right ? _lvnd_ (^_^) On Mon, May 9, 2011 at 4:01 PM, Douglas Hubler <[email protected]> wrote: > On Mon, May 9, 2011 at 8:48 AM, Levend Sayar <[email protected]> wrote: >> Mock uses it own chroot filesystem on >> /var/lib/mock/centos-5-x86_64/root for my build. >> >> So while building sipXtacklib rpm, when it says -I/usr/include on the >> compilation command, I think it looks >> /var/lib/mock/centos-5-x86_64/root/usr/include directory. So I put >> missing files by hand, not to do recompilation from scratch, > > yes, this exactly how the build happens. i think the build will > remove any directory before rebuilding so copying in the files > probably wouldn't be too effective. Instead, try to find out why the > files are missing. Check to see if the tarball includes the missing > files. If it does, are you sure the right tarball is getting pulled > into the src rpm or that the correct src rpm is getting installed > before the build. > _______________________________________________ > sipx-dev mailing list > [email protected] > List Archive: http://list.sipfoundry.org/archive/sipx-dev/ > _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev/
