Re: OpenBSD and sophie

"David Mitchell" <[email protected]>
Newsgroups gmane.comp.security.virus.vtools
Organization Alphalink (Australia) Pty Ltd
Message-ID <[email protected]>
I've had the same error compiling 3.04rc1 and rc2 on a few machines. I've
found that commenting out the following lines in sophie.c:

        sophie_print(1, "%s fd %d setting TCP_NODELAY", NOTESTR, fd);
        if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof opt)
== -1)
                sophie_print(0, "%s setsockopt TCP_NODELAY: %.100s",
WARNSTR, strerror(errno));

lets you compile cleanly and provides a working sophie binary.

This was on Linux machines so YMMV on BSD.

Cheers,
Dave

----- Original Message ----- 
From: Will Harris
Sent: Wednesday, February 11, 2004 1:03 PM

I am trying to compile sophie 3.03 or 3.04rc2 on OpenBSD 3.4, but i am
running into some problems.  I got sophos sweep working by using the FreeBSD
(elf) version, enabling FreeBSD emulation, and then installing the freebsd
libs from the ports.

"./configure --with-savilib=/emul/freebsd/usr/lib" worked just fine for both
3.3 and 3.4rc2, but i get (different) compiling problems when i try to
'make' either of them.

with sophie-3.04rc2 i get the following:

# make
gcc -g -O2 -Wall -Isav_if  -c sophie.c
sophie.c: In function `set_sockopts':
sophie.c:171: `IPPROTO_TCP' undeclared (first use in this function)
sophie.c:171: (Each undeclared identifier is reported only once
sophie.c:171: for each function it appears in.)
*** Error code 1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.