Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2015 18:06:03 -0800
From:      Michael Sinatra <michael+lists@burnttofu.net>
To:        Jonathan Chen <jonc@chen.org.nz>, freebsd-stable@freebsd.org
Subject:   Re: SOL_TCP def?
Message-ID:  <56833C0B.6040609@burnttofu.net>
In-Reply-To: <CAJuc1zM3dGVPVN0u8C_utKdOGb7edSy3UinQpOokES=2j05OcQ@mail.gmail.com>
References:  <CAJuc1zM3dGVPVN0u8C_utKdOGb7edSy3UinQpOokES=2j05OcQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/29/15 10:28, Jonathan Chen wrote:
> Hi,
> 
> I've just recently updated on 10/STABLE to r292878; and on rebuilding
> devel/gsoap, I get:
> 
> cc -DHAVE_CONFIG_H -I. -I..       -DFREEBSD -O2 -pipe
> -fstack-protector -fno-strict-aliasing -MT libgsoap_a-stdsoap2.o -MD
> -MP -MF .deps/libgsoap_a-stdsoap2.Tpo -c -o libgsoap_a-stdsoap2.o
> `test -f 'stdsoap2.c' || echo './'`stdsoap2.c
> stdsoap2.c:5107:64: error: use of undeclared identifier 'SOL_TCP'
>   if (!(soap->omode & SOAP_IO_UDP) && setsockopt(soap->master,
> SOL_TCP, TCP_FASTOPEN, (char*)&set, sizeof(int)))

As Dmitry notes, you must patch both stdsoap2.c and stdsoap2.cpp to use
IPPROTO_TCP instead of SOL_TCP.  The reason for the change is that the
code looks to see if TCP_FASTOPEN is defined, and, if so, it assumes
that it's some sort of Linux-based stack that uses SOL_TCP instead of
IPPROTO_TCP.  Once TCP Fast Open (RFC 7413) was MFC'd to STABLE,
TCP_FASTOPEN became defined so gsoap tried to use it with the wrong
SOL_TCP definition.

michael





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56833C0B.6040609>