During make ran into the following error. Strange don' t quite know how to apporach this one.

cc -g -O2 /usr/local/BerkeleyDB/lib -o dtest dtest.o -L/usr/local/openldap-2.2.14/libraries/liblber ./.libs/liblber.a ../../libraries/liblutil/liblutil.a -lresolv
/usr/bin/ld: cannot open /usr/local/BerkeleyDB/lib: File format not recognized
collect2: ld returned 1 exit status