Hello. Sorry for my little problem.
My workstation is linux centos. I edit Makefile.bsd direct with vi in openbsd. Maybe makefile.bsd corrupt in dev22, in dev19 no problem for compile. I will Tomorrow install gmake. Haproxy is a production system. El 12/04/2014 07:01, "Lukas Tribus" <[email protected]> escribió: > Hi Jorge, > > > > I changed line 72 for include -lz > > > > root@haproxy01 $ make -f Makefile.bsd USE_ZLIB=1 > > gcc -Wall -Iinclude -Iebtree -O2 -DENABLE_POLL -DENABLE_KQUEUE > > -fno-strict-aliasing -DBUFSIZE=8030 -DMAXREWRITE=1030 > > -DSYSTEM_MAXCONN=1024 -DCONFIG_HAPROXY_VERSION=\"1.5-dev22-1a34d57 \" > > -DCONFIG_HAPROXY_DATE=\"2014-02-03 00:41:29 +0100 2014/02/03\" -DTPROXY > > -g -DBUILD_TARGET='"openbsd"' -DBUILD_CC='"gcc"' > > -DBUILD_CPU='"generic"' -DBUILD_REGEX='"libc"' > > -DBUILD_OPTS='"-Iinclude -Iebtree -O2 -DENABLE_POLL -DENABLE_KQUEUE > > -fno-strict-aliasing -DBUFSIZE=8030 -DMAXREWRITE=1030 > > -DSYSTEM_MAXCONN=1024 -DCONFIG_HAPROXY_VERSION=\"1.5-dev22-1a34d57 \" > > -DCONFIG_HAPROXY_DATE=\"2014-02-03 00:41:29 +0100 2014/02/03\" > > -DTPROXY"' -c -o src/haproxy.o src/haproxy.c > > gcc: ": No such file or directory > > gcc: 00:41:29: No such file or directory > > gcc: +0100: No such file or directory > > gcc: 2014/02/03": No such file or directory > > <command-line>: warning: missing terminating " character > > <command-line>: warning: missing terminating " character > > src/haproxy.c: In function 'display_version': > > src/haproxy.c:213: error: missing terminating " character > > src/haproxy.c:213: error: expected ')' before string constant > > src/haproxy.c:213: error: missing terminating " character > > *** Error 1 in /tmp/haproxy-1.5-dev22 (Makefile.bsd:139 'src/haproxy.o') > > root@haproxy01 $ gcc > > gcc: no input files > > root@haproxy01 $ > > I don't understand at all what happens here. Building haproxy worked > for you when using no modifications in the makefile and a simple: > $ make -f Makefile.bsd > > right (expect that zlib is missing)? So I don't get why adding -lz would > cause this mess above, expect the Makefile.bsd was somehow corrupted > (broken > newlines or something like that). You did not use some editor on a Windows > machine to edit the Makefile, right? Whats the md5sum after the -lz change? > > It should be: > $ md5sum Makefile.bsd > 105ea0f9e57a0fae3e69db78a9141e79 Makefile.bsd > > > If its not, restore the original Makefile.bsd and apply the diff attached, > recheck the md5sum and retry. > > > > > Is required ZLIB for HTTP compression? > > Yes. > > > > The alternative to the BSD makefile hacks is that you install GNU make and > simply use the default Makefile and enable zlib via USE flags: > $ gmake TARGET=openbsd CPU=native USE_ZLIB=1 > > > The latter is probably the most simple and efficient way to build HAProxy, > it will also allow you to build with PCRE and SSL if needed, by just adding > additional USE flags. > > > Please remember to respond to the mailing list. > > > > Regards, > > Lukas > >

