Hi,
no sure how you ended up with a libosmocore directory inside osmo-hnbgw one...
My advise would be to first decide whether you want to run self-compiled stuff or prebuilt packages. Unless you need to modify code or develop new stuff there, I'd suggest avoiding building stuff on your own.
In case you want to build stuff, use "make V=1" to get more output verbosity on what the make/compiler process is doing.
Make sure you properly tell configure & make to install and read files from proper place, to avoid instead compiling against pre-built installed libs:
export prefix="/usr/local" export PATH="$PATH:$prefix/bin" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$prefix/lib" export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$prefix/lib/pkgconfig" opt_prefix="--prefix=$prefix --with-systemdsystemunitdir=$prefix/lib/systemd/system" configure $opt_prefix make V=1