Okay, here's what I did to get dbmail working on OpenBSD 3.0... don't get mad
at me if it doesn't work for you, because I am incompetent and I am suprised I
got it to work in the first place...
[DBMail install on OpenBSD 3.0][MySQL][Exim][2002-08-12]
Copy Makefile.mysql -> Makefile
[Makefile]
Change: LIB = -lmysqlclient -lcrypt
To: LIB = -lcompat -lmysqlclient -lm
[config.h]
Edit database information to suit your needs.
[user.c]
Change: #include <crypt.h>
To: #include <unistd.h>
[mysql/dbmysql.c]
Change: #include "/usr/include/mysql/mysql.h"
To: #include "/usr/local/include/mysql/mysql.h"
[mysql/dbmsgbufmysql.c]
Change: #include "/usr/include/mysql/mysql.h"
To: #include "/usr/local/include/mysql/mysql.h"
[mysql/dbsearchmysql.c]
Change: #include "/usr/include/mysql/mysql.h"
To: #include "/usr/local/include/mysql/mysql.h"
[mysql/dbauthmysql.c]
Change: #include "/usr/include/mysql/mysql.h"
To: #include "/usr/local/include/mysql/mysql.h"
Change: #include <crypt.h>
To: #include <unistd.h>
[mbox2dbmail.c]
was broke so i replaced it with this, becuase i don't plan to use it anyway
i'm no programmer, but heh... it did what I wanted and now dbmail builds.
int main()
{
return 0;
}
make
cp ./*.o ./mysql
make
cp ./*.o ./mysql
make