Re: compiling vmailmgr-0.97 on OpenBSD 3.8
Rik Burt <[email protected]> Tue, 21 Feb 2006 20:25:52 -0700
| Newsgroups | gmane.mail.vmailmgr |
|---|---|
| Message-ID | <[email protected]> |
Giam Teck Choon wrote:
> Try the following patches:
>
> --- lib/fdbuf/fdbuf.h.orig Mon Feb 20 01:21:46 2006
> +++ lib/fdbuf/fdbuf.h Mon Feb 20 01:23:45 2006
> @@ -21,6 +21,8 @@
> #include "config.h"
> #include <string.h>
> #include <fcntl.h>
> +#include <unistd.h>
>
> #ifdef _REENTRANT
> #include <pthread.h>
>
> --- lib/misc/server.cc.orig Mon Feb 20 01:07:16 2006
> +++ lib/misc/server.cc Mon Feb 20 01:07:32 2006
> @@ -20,6 +20,7 @@
> #include <unistd.h>
> #include "un.h"
> #include "debug.h"
> +#include <string.h>
>
> server_call::~server_call()
> {
Both patches applied cleanly but I get the following error:
g++ -g -O2 -fno-rtti -fno-exceptions -Wall -o vauthenticate
vauthenticate.o authvlib.o ../lib/libvmailmgr.a
../lib/libvmailmgr.a(exec.o)(.text+0x39): In function `presetenv(char
const*, mystring const&)':
/home/rikb/DJB/build/vmailmgr-0.97/lib/misc/exec.cc:32: warning:
strcpy() is almost always misused, please use strlcpy()
make: don't know how to make checkvpw.1. Stop in
/home/rikb/DJB/build/vmailmgr-0.97/authenticate.
*** Error code 1
Stop in /home/rikb/DJB/build/vmailmgr-0.97 (line 177 of Makefile).
*** Error code 1
Stop in /home/rikb/DJB/build/vmailmgr-0.97 (line 306 of Makefile).
However if I use gmake I have no problem.
Rik
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]