The relevant part of the build log appears to be (from the main configure output):
... checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... no checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... no ... I've attached a patch which fixes the compilation for me. (Although it directly patches configure, so I won't tag the bug +patch.) -- Daniel Schepler
diff -urN unixodbc-2.2.11.old/configure unixodbc-2.2.11/configure --- unixodbc-2.2.11.old/configure 2007-07-25 10:27:29.000000000 +0000 +++ unixodbc-2.2.11/configure 2007-07-25 10:26:51.000000000 +0000 @@ -11497,7 +11497,7 @@ objext_CXX=$objext # Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;\n" +lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'