I was able to compile dbmail with the postgres db, I am now doing the same
for the mysql db.
 
I am getting an error.
 
I have 
__DBTYPE__=mysql
__LIBS__=-lmysqlclient -lcrypto -lssl -lnsl -lsocket -lm -lz
__LIBDIR__=/usr/local/mysql-3.23.52-sun-solaris2.8-sparc/lib
__INCDIR__=/usr/local/mysql-3.23.52-sun-solaris2.8-sparc/include
in my makefile
 
Error
 
gcc     -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE main.c -o dbmail-smtp list.o
debug.o pipe.o mime.o mysql/dbmysql.o dbmd5.o md5.o bounce.o forward.o
memblock.o mysql/dbauthmysql.o config.o
-L/usr/local/mysql-3.23.52-sun-solaris2.8-sparc/lib
-I/usr/local/mysql-3.23.52-sun-solaris2.8-sparc/include -lmysqlclient
-lcrypto -lssl -lnsl -lsocket -lm -lz
main.c: In function `main':
main.c:49: warning: implicit declaration of function `openlog'
gcc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE pop3d.c -o dbmail-pop3d pop3.o
list.o debug.o mysql/dbmysql.o serverchild.o server.o dbmd5.o md5.o mime.o
misc.o memblock.o mysql/dbauthmysql.o config.o
-L/usr/local/mysql-3.23.52-sun-solaris2.8-sparc/lib
-I/usr/local/mysql-3.23.52-sun-solaris2.8-sparc/include -lmysqlclient
-lcrypto -lssl -lnsl -lsocket -lm -lz
pop3d.c: In function `main':
pop3d.c:65: warning: implicit declaration of function `openlog'
server.o: In function `CreateSocket':
server.o(.text+0x594): undefined reference to `inet_aton'
collect2: ld returned 1 exit status
make: *** [pop3d] Error 1
 
Thank You.

Reply via email to