Re: compiling vmailmgr-0.97 on OpenBSD 3.8
Rik Burt <[email protected]> Sun, 19 Feb 2006 19:30:37 -0700
| Newsgroups | gmane.mail.vmailmgr |
|---|---|
| Message-ID | <[email protected]> |
Joan Picanyol i Puig wrote: > * Greg <[email protected]> [20060129 00:14]: > [...] >> bash-3.00# make check >> Making check in php >> Making check in lib >> Making check in misc >> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -fno-rtti -fno-exceptions >> -Wall -c crc32.cc > [...] >> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -fno-rtti -fno-exceptions >> -Wall -c server.cc >> server.cc: In function `unsigned char* encode_string(unsigned char*, >> mystring) >> ': >> server.cc:36: error: `memcpy' undeclared (first use this function) >> server.cc:36: error: (Each undeclared identifier is reported only once for >> each >> function it appears in.) >> server.cc: In member function `int server_call::connect(const mystring&) >> const >> ': >> server.cc:82: error: `strcpy' undeclared (first use this function) >> server.cc:83: error: `strlen' undeclared (first use this function) >> *** Error code 1 >> >> Stop in /usr/local/src/vmailmgr-0.97/lib/misc. >> *** Error code 1 >> >> Stop in /usr/local/src/vmailmgr-0.97/lib (line 190 of Makefile). >> *** Error code 1 >> >> Stop in /usr/local/src/vmailmgr-0.97 (line 177 of Makefile). > > This one is because str{cpy,len} are not defined in stdlib.h but > string.h on *BSD. Add a line like the following to the beggining of > server.cc: > > #include <string.h> I added this line and my failure was: 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 > > after this it fails for me like: > > Making check in cdb++ > g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -fno-rtti -fno-exceptions -Wall -c datum.cc > In file included from ../fdbuf/fdbuf.h:79, > from datum.h:5, > from datum.cc:17: > ../fdbuf/fdobuf.h:53: error: expected `;' before '(' token I didn't see this error. Did you try a make clean? > > And I'm stumped here :( Me too but I ran 'gmake check' and it compiled fine. Haven't checked how it works but I am about to find out. > > qvb > -- > pica > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]