HTTP Anti-Virus Proxy
http://havp.hege.li/forum/

OpenBSD
http://havp.hege.li/forum/viewtopic.php?f=3&t=38
Page 1 of 1

Author:  DaveM [ 15 Mar 2006 06:59 ]
Post subject:  OpenBSD

Has anyone installed HAVP on OpenBSD? If Yes, are there any special instructions?

Thanks......

Author:  hege [ 15 Mar 2006 09:40 ]
Post subject: 

Like FreeBSD, there is no support for mandatory locks.. it will not work until there is a stripped down version of HAVP.

Cheers,
Henrik

Author:  ejantzen [ 22 Nov 2006 17:04 ]
Post subject: 

hello,

I use havp with NetBSD and it work very well, but now I use OpenBSD.

I want too compile havp on OpenBSD 4.0, but I have problem with
socket include.
I have this error, did you know where is the problem?

thank's

cd havp && gmake
gmake[1]: Entering directory `/root/havp-0.83/havp'
g++ -O2 -I/usr/local/include -O2 -pipe -Wall -DNOMAND -DUSECLAMLIB -c -o helper.o helper.cpp
g++ -O2 -I/usr/local/include -O2 -pipe -Wall -DNOMAND -DUSECLAMLIB -c -o logfile.o logfile.cpp
g++ -O2 -I/usr/local/include -O2 -pipe -Wall -DNOMAND -DUSECLAMLIB -c -o scannerhandler.o scannerhandler.cpp
In file included from sockethandler.h:23,
from genericscanner.h:22,
from scannerhandler.h:22,
from scannerhandler.cpp:19:
/usr/include/sys/socket.h:145: error: 'u_int8_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:146: error: 'sa_family_t' is used as a type, but is
not defined as a type.
/usr/include/sys/socket.h:163: error: 'u_int8_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:164: error: 'sa_family_t' is used as a type, but is
not defined as a type.
/usr/include/sys/socket.h:166: error: 'u_int64_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:230: error: 'uid_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:231: error: 'uid_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:232: error: 'gid_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:233: error: 'gid_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:235: error: syntax error before `[' token
/usr/include/sys/socket.h:348: error: 'socklen_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:352: error: 'socklen_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:374: error: 'socklen_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:429: error: 'caddr_t' is used as a type, but is not
defined as a type.
/usr/include/sys/socket.h:433: error: 'caddr_t' is used as a type, but is not
defined as a type.
In file included from sockethandler.h:23,
from genericscanner.h:22,
from scannerhandler.h:22,
from scannerhandler.cpp:19:
/usr/include/sys/socket.h:444: error: syntax error before `*' token
/usr/include/sys/socket.h:445: error: type specifier omitted for parameter `
socklen_t'
/usr/include/sys/socket.h:446: error: type specifier omitted for parameter `
socklen_t'
/usr/include/sys/socket.h:447: error: syntax error before `*' token
/usr/include/sys/socket.h:448: error: syntax error before `*' token
/usr/include/sys/socket.h:449: error: syntax error before `*' token
/usr/include/sys/socket.h:450: error: syntax error before `*' token
/usr/include/sys/socket.h:452: error: syntax error before `,' token
/usr/include/sys/socket.h:453: error: syntax error before `,' token
/usr/include/sys/socket.h:454: error: syntax error before `,' token
/usr/include/sys/socket.h:455: error: syntax error before `,' token
/usr/include/sys/socket.h:456: error: syntax error before `,' token
/usr/include/sys/socket.h:458: error: syntax error before `,' token
/usr/include/sys/socket.h:459: error: type specifier omitted for parameter `
socklen_t'
gmake[1]: *** [scannerhandler.o] Error 1
gmake[1]: Leaving directory `/root/havp-0.83/havp'
gmake: *** [all] Error 2

Author:  ejantzen [ 02 Jan 2007 20:05 ]
Post subject: 

OK.... I find the solution for OpenBSD compile:

we must add:
#include <sys/types.h>
in sockethandler.h
just before:
#include <sys/socket.h>

with this, all work well like with NetBSD.

Can you add this define in future version?

Thank's

Author:  hege [ 02 Jan 2007 20:12 ]
Post subject: 

Sure, thanks..

Author:  skamui [ 22 Jun 2007 23:16 ]
Post subject:  Havp 0.86 problem

# cd /usr/local/src/havp-0.86/
# gmake
cd havp && gmake
gmake[1]: Entering directory `/usr/local/src/havp-0.86/havp'
cd scanners && gmake
gmake[2]: Entering directory `/usr/local/src/havp-0.86/havp/scanners'
rm -f scanners.a
ar cr scanners.a avgscanner.o f-protscanner.o kasperskyscanner.o nod32scanner.o clamdscanner.o sophiescanner.o avastscanner.o arcavirscanner.o clamlibscanner.o
gmake[2]: Leaving directory `/usr/local/src/havp-0.86/havp/scanners'
g++ -I/usr/local/include -Wall -O2 -o havp helper.o logfile.o scannerhandler.o connectiontobrowser.o genericscanner.o httphandler.o params.o sockethandler.o connectiontohttp.o havp.o proxyhandler.o utils.o whitelist.o scanners/scanners.a -L/usr/local/lib -L/usr/local/lib -lclamav
/usr/local/lib/libclamav.so.2.3: warning: strcpy() is almost always misused, please use strlcpy()
/usr/local/lib/libclamav.so.2.3: warning: sprintf() is often misused, please use snprintf()
scanners/scanners.a(nod32scanner.o)(.text+0x1445): In function `NOD32Scanner::ScanV21(char const*)':
: warning: strcat() is almost always misused, please use strlcat()
/usr/local/lib/libclamav.so.2.3: undefined reference to `pthread_create'
/usr/local/lib/libclamav.so.2.3: undefined reference to `pthread_mutex_unlock'
/usr/local/lib/libclamav.so.2.3: undefined reference to `pthread_mutex_lock'
/usr/local/lib/libclamav.so.2.3: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
gmake[1]: *** [havp] Error 1
gmake[1]: Leaving directory `/usr/local/src/havp-0.86/havp'
gmake: *** [all] Error 2

Author:  skamui [ 25 Jun 2007 22:02 ]
Post subject:  libclamav

The problem was resolved thus :
./configure --disable-locking --disable-clamav
clamd is funcionality disable the libclamav

Author:  hege [ 25 Jun 2007 22:59 ]
Post subject: 

Seems the Makefile is missing -lpthread..

Page 1 of 1 All times are UTC + 2 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/