The file libgdalalljni.so is nowhere else in the system. This solves the problem: cp .libs/*.so /usr/local/lib seems to solve the problem, I expect it to be run in ...
This time we've got two source files ([two.c] and [two-lib.c]), a header file to define the library interface [two-lib.h], and a new build script [make-two.sh]. The header file is the interesting part ...