1.4 dev 1 under FreeBSD 7.2 and gmake-3.81_3 error when compiling

From: Andrew Azarov <equand#gmail.com>
Date: Tue, 04 Aug 2009 01:10:52 +0200


Hi,

While compiling the 1.4 dev 1 version snapshot I encountered this error

fw# gmake USE_PCRE=1 TARGET=freebsd
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" \

              -DBUILD_TARGET='"freebsd"' \
              -DBUILD_ARCH='""' \
              -DBUILD_CPU='"generic"' \
              -DBUILD_CC='"gcc"' \
              -DBUILD_CFLAGS='"-O2 -g"' \
              -DBUILD_OPTIONS='"USE_PCRE=1"' \
               -c -o src/haproxy.o src/haproxy.c
gcc -Iinclude -Wall  -O2 -g       -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE 

-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/sessionhash.o
src/sessionhash.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/base64.o src/base64.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/protocols.o src/protocols.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/uri_auth.o src/uri_auth.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/standard.o src/standard.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/buffers.o src/buffers.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/log.o src/log.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/task.o src/task.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/time.o src/time.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/fd.o src/fd.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/pipe.o src/pipe.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/regex.o src/regex.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/cfgparse.o src/cfgparse.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/server.o src/server.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/checks.o src/checks.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/queue.o src/queue.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/client.o src/client.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/proxy.o src/proxy.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/proto_uxst.o src/proto_uxst.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/proto_http.o src/proto_http.c
gcc -Iinclude -Wall -O2 -g -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE
-DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4-dev1\"
-DCONFIG_HAPROXY_DATE=\"2009/07/27\" -c -o src/stream_sock.o
src/stream_sock.c
In file included from src/stream_sock.c:19: /usr/include/netinet/tcp.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tcp_seq'
/usr/include/netinet/tcp.h:50: error: expected specifier-qualifier-list before 'u_short'
/usr/include/netinet/tcp.h:175: error: expected specifier-qualifier-list before 'u_int8_t'
gmake: *** [src/stream_sock.o] Error 1

fw# gmake -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for amd64-portbld-freebsd7.2

is there any way to compile it under freebsd 7.2?

BRG,
Andrew Received on 2009/08/04 01:10

This archive was generated by hypermail 2.2.0 : 2009/08/04 01:15 CEST