Checking your choice of C compiler and flags for coherency... I've tried to compile and run the following simple program: #include int main() { printf("Ok\n"); return(0); } I used the command: gcc -o try -O -fno-strict-aliasing -pipe -Wdeclaration-after-statement - I/usr/local/include -L/usr/local/lib try.c -lsocket -lnsl -ldb -ldl -lm -lc ./try and I got the following output: ld: fatal: library -ldb: not found ld: fatal: File processing errors. No output written to try collect2: ld returned 1 exit status I can't compile the test program. (The supplied flags or libraries might be incorrect.) You have a BIG problem. Shall I abort Configure [y] Ok. Stopping Configure. #### SunOS zg4800 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire new server # find / -name "libdb.so*" -print /usr/lib/sparcv9/libdb.so.1 /usr/lib/apoc/libdb.so.1 /usr/lib/libdb.so.1