Code:
$ readelf -a passwd.cgi | grep interpreter
[Requesting program interpreter: /lib/ld-linux.so.2]

For libdb-4.0.so, I tried making a link to libdb-4.so, which at least let it move past the error, however, it got just as stuck on the next library.
Code:
./passwd.cgi: error while loading shared libraries: libmysqlclient.so.10: 
cannot open shared object file: No such file or directory

I've just found a couple Makefiles, the nominal one did not have valid paths. These may be, I haven't chased them all down yet:
Code:
CC=gcc -Dlinux -Wall -O
#CC=gcc -Dsolaris -Wall
#CC=cc -Dluke0
#DBINC=-I/usr/local/BerkeleyDB/include
DBINC=-I/usr/include
SQLINC=-I/usr/include/mysql 
CGIINC=-I/usr/local/etc/httpd/cgi-src/include
SQLLIB=-L/usr/lib/mysql -lmysqlclient 
DBLIB=-I/usr/lib -ldb -lcrypt
CGILIB=-L/usr/local/etc/httpd/cgi-src/lib -lcgihtml



Edited by matthew_k (21/10/2009 19:38)