I was trying to compile Pound-2.1.7 in FreeBSD 6.1 and was occurring
the following error:
[/usr/local/Pound-2.1.7]# ./configure --prefix=/usr/local/pound2
gcc -DF_CONF=\"/usr/local/pound2/etc/pound.cfg\" -DVERSION=\"2.1.7\"
-g -O2 -D_THREAD_SAFE -pthread -DUPER -DNEED_STACK -DHAVE_SYSLOG_H=1
-D_THREAD_SAFE -pthread -I/usr/local/openssl-0.9.8/include
-D_REENTRANT -D_THREAD_SAFE -Wstrict-prototypes -pipe -c http.c
http.c: In function `thr_http':
http.c:437: error: `SOL_TCP' undeclared (first use in this function)
http.c:437: error: (Each undeclared identifier is reported only once
http.c:437: error: for each function it appears in.)
*** Error code 1
Stop in /usr/local/Pound-2.1.7.
checking http.c I've got :
432 #ifdef TCP_LINGER2
433 n = 5;
434 setsockopt(sock, SOL_TCP, TCP_LINGER2, (void *)&n, sizeof(n));
436 n = 1;
437 setsockopt(sock, SOL_TCP, TCP_NODELAY, (void *)&n, sizeof(n));
checking FreeBSD setsockopt man page I not found any SOL_TCP level.
So I commented out lines 436 and 437 and compiling worked successful.
Is that a bug or just doesn't works specifically in FreeBSD ?