It seems like your pkgconfig installation/configuration is broken. Are you sure that /usr/local/lib/pkgconfig is included in your PKGCONFIG search path? To me it seems the .pc files of libosmocore are installed there but your sytem configuration never attempts to look for .pc files there.
Have you used pkgconfig successfully with other libraries installed in /usr/local/* before?