Note (probably harmless): No library found for -ldb2
This is most likely the problem (note that although it says "probably harmless", it definitely isn't, as this is the essential library here).
When you see this message, the respective link instruction is removed from the list, which means the Perl binding .../DBD/DB2/DB2.so won't be linked against the library — resulting in the "symbol not found" error later at dynamic link time.
In case you're sure you do have the right library in the specified place (/home/db2inst1/lib), the pragmatic way to resolve the issue (instead of trying to figure out why the above MakeMaker check failed) would be to manually rerun the final link command with the appropriate link instruction added, i.e. (from within the build directory)
gcc -G DB2.o dbdimp.o -o blib/arch/auto/DBD/DB2/DB2.so -L/home/db2
+inst1/lib -ldb2
^^^^^^^^^^
+^^^^^^^^^^^^^^^
(if you get an error, you don't have the right library)
Then run make test && make install, as usual. |