RE: Compile ZLIB in OpenBSD 5.4

2014-09-27 Thread Lukas Tribus
 At the end, i have compiled Haproxy in OpenBSD 5.4 with SSL 
  
 .- Haproxy 1.5.4 
 .- install gmake and gcc from ports and compile with gmake USE_SSL 
  
 All Ok, thanks 


Thats the correct thing todo, yes. BSD and OSX makefiles have since been
removed, because they lacked all the new features and broke often.

Lukas

  


RE: Compile ZLIB in OpenBSD 5.4

2014-04-13 Thread Lukas Tribus
 Looks like there are currently multiple issues in the build system when
 using openbsd.

 Go back do dev19, install gmake and compile with:
 $ gmake TARGET=openbsd CPU=native USE_ZLIB=1

Actually, you can stick to dev22 as long as you use gmake instead of make.

The issue that caused the build failure in dev22 was fixed [1], but is
irrelevant when you use gmake.

There is another issue with building under OpenBSD, but only when you are
using git and it can worked around by defining IGNOREGIT=1
$ gmake clean; gmake TARGET=openbsd CPU=native USE_ZLIB=1 IGNOREGIT=1

I guess you don't use git so you probably didn't hit this problem.


Remember to gmake clean (or make -f Makefile.bsd clean) before you
build to cleanup old files.




Regards,

Lukas


[1] 
http://haproxy.1wt.eu/git?p=haproxy.git;a=commit;h=01193d6efbb731dd83eeb9addc14cecb16c431af

  


RE: Compile ZLIB in OpenBSD 5.4

2014-04-12 Thread Lukas Tribus
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

  

bsd-makefile-zlib.diff
Description: Binary data


RE: Compile ZLIB in OpenBSD 5.4

2014-04-12 Thread Jorge Severino
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 luky...@hotmail.com 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




RE: Compile ZLIB in OpenBSD 5.4

2014-04-12 Thread Lukas Tribus
Hi,


 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.

Looks like there are currently multiple issues in the build system when
using openbsd.

Go back do dev19, install gmake and compile with:
$ gmake TARGET=openbsd CPU=native USE_ZLIB=1


This will make zlib and http compression work.


I will see what we can do about the different issues in current code.




Thanks,

Lukas

  


Re: Compile ZLIB in OpenBSD 5.4

2014-04-07 Thread Jorge Severino
The same error, i add -lz in ADDLIB the Makefile.bsd and run:

root@haproxy01 $ make Makefile.bsd
USE_ZLIB=1
*** Parse error in /tmp/haproxy-1.5-dev22: Missing dependency operator
(Makefile:202)
*** Parse error: Need an operator in 'else' (Makefile:206)
*** Parse error: Missing dependency operator (Makefile:207)
*** Parse error: Need an operator in 'else' (Makefile:213)
*** Parse error: Missing dependency operator (Makefile:214)
*** Parse error: Need an operator in 'else' (Makefile:221)
*** Parse error: Missing dependency operator (Makefile:222)
*** Parse error: Need an operator in 'else' (Makefile:231)
*** Parse error: Missing dependency operator (Makefile:232)
*** Parse error: Need an operator in 'else' (Makefile:241)
*** Parse error: Missing dependency operator (Makefile:242)
*** Parse error: Need an operator in 'else' (Makefile:256)
*** Parse error: Missing dependency operator (Makefile:257)
*** Parse error: Need an operator in 'else' (Makefile:267)
*** Parse error: Missing dependency operator (Makefile:268)
*** Parse error: Need an operator in 'else' (Makefile:274)
*** Parse error: Missing dependency operator (Makefile:275)
*** Parse error: Need an operator in 'else' (Makefile:281)
*** Parse error: Missing dependency operator (Makefile:282)
*** Parse error: Need an operator in 'else' (Makefile:287)
*** Parse error: Missing dependency operator (Makefile:288)
*** Parse error: Need an operator in 'else' (Makefile:294)
*** Parse error: Missing dependency operator (Makefile:295)
*** Parse error: Missing dependency operator (Makefile:301)
*** Parse error: Missing dependency operator (Makefile:302)
*** Parse error: Missing dependency operator (Makefile:303)
*** Parse error: Missing dependency operator (Makefile:304)
*** Parse error: Missing dependency operator (Makefile:305)
*** Parse error: Missing dependency operator (Makefile:306)
*** Parse error: Missing dependency operator (Makefile:307)
*** Parse error: Missing dependency operator (Makefile:308)
*** Parse error: Missing dependency operator (Makefile:309)
*** Parse error: Missing dependency operator (Makefile:310)
*** Parse error: Missing dependency operator (Makefile:311)
*** Parse error: Missing dependency operator (Makefile:312)
*** Parse error: Missing dependency operator (Makefile:323)
*** Parse error: Need an operator in '' (Makefile:325)
*** Parse error: Need an operator in 'endif' (Makefile:326)
*** Parse error: Missing dependency operator (Makefile:328)
*** Parse error: Need an operator in '' (Makefile:330)
*** Parse error: Need an operator in 'endif' (Makefile:331)
*** Parse error: Missing dependency operator (Makefile:334)
*** Parse error: Need an operator in '' (Makefile:336)
*** Parse error: Need an operator in 'endif' (Makefile:337)
*** Parse error: Missing dependency operator (Makefile:345)
*** Parse error: Need an operator in ',)' (Makefile:347)
Bad modifier: %ci | cut -f1 -d' ' | tr '-' '/')
*** Parse error: Need an operator in 'endif' (Makefile:351)
*** Parse error: Need an operator in 'endif' (Makefile:352)
*** Parse error: Need an operator in ',)' (Makefile:355)
*** Parse error: Need an operator in 'endif' (Makefile:357)
*** Parse error: Need an operator in ',)' (Makefile:358)
*** Parse error: Need an operator in 'endif' (Makefile:360)
Bad modifier: %ci | cut -f1 -d' ' | tr '-' '/')
*** Parse error: Missing dependency operator (Makefile:361)
*** Parse error: Need an operator in 'endif' (Makefile:363)
*** Parse error: Missing dependency operator (Makefile:381)
*** Parse error: Need an operator in '' (Makefile:382)
*** Parse error: Need an operator in 'endif' (Makefile:383)
*** Parse error: Missing dependency operator (Makefile:385)
*** Parse error: Need an operator in 'endif' (Makefile:388)
*** Parse error: Missing dependency operator (Makefile:390)
*** Parse error: Need an operator in 'endif' (Makefile:394)
*** Parse error: Missing dependency operator (Makefile:396)
*** Parse error: Need an operator in 'endif' (Makefile:399)
*** Parse error: Missing dependency operator (Makefile:401)
*** Parse error: Need an operator in 'endif' (Makefile:404)
*** Parse error: Missing dependency operator (Makefile:406)
*** Parse error: Need an operator in 'endif' (Makefile:410)
*** Parse error: Missing dependency operator (Makefile:412)
*** Parse error: Need an operator in 'endif' (Makefile:415)
*** Parse error: Missing dependency operator (Makefile:417)
*** Parse error: Need an operator in 'endif' (Makefile:420)
*** Parse error: Missing dependency operator (Makefile:422)
*** Parse error: Need an operator in 'endif' (Makefile:429)
*** Parse error: Missing dependency operator (Makefile:431)
*** Parse error: Need an operator in 'endif' (Makefile:435)
*** Parse error: Missing dependency operator (Makefile:437)
*** Parse error: Need an operator in 'endif' (Makefile:441)
*** Parse error: Missing dependency operator (Makefile:443)
*** Parse error: Need an operator in 'endif' (Makefile:446)
*** Parse error: Missing dependency operator (Makefile:448)
*** 

Re: Compile ZLIB in OpenBSD 5.4

2014-04-07 Thread Jorge Severino
If install gmake for compile in openbsd, i work?



2014-04-07 12:34 GMT-03:00 Jorge Severino severino.jo...@gmail.com:

 The same error, i add -lz in ADDLIB the Makefile.bsd and run:

 root@haproxy01 $ make Makefile.bsd
 USE_ZLIB=1
 *** Parse error in /tmp/haproxy-1.5-dev22: Missing dependency operator
 (Makefile:202)
 *** Parse error: Need an operator in 'else' (Makefile:206)
 *** Parse error: Missing dependency operator (Makefile:207)
 *** Parse error: Need an operator in 'else' (Makefile:213)
 *** Parse error: Missing dependency operator (Makefile:214)
 *** Parse error: Need an operator in 'else' (Makefile:221)
 *** Parse error: Missing dependency operator (Makefile:222)
 *** Parse error: Need an operator in 'else' (Makefile:231)
 *** Parse error: Missing dependency operator (Makefile:232)
 *** Parse error: Need an operator in 'else' (Makefile:241)
 *** Parse error: Missing dependency operator (Makefile:242)
 *** Parse error: Need an operator in 'else' (Makefile:256)
 *** Parse error: Missing dependency operator (Makefile:257)
 *** Parse error: Need an operator in 'else' (Makefile:267)
 *** Parse error: Missing dependency operator (Makefile:268)
 *** Parse error: Need an operator in 'else' (Makefile:274)
 *** Parse error: Missing dependency operator (Makefile:275)
 *** Parse error: Need an operator in 'else' (Makefile:281)
 *** Parse error: Missing dependency operator (Makefile:282)
 *** Parse error: Need an operator in 'else' (Makefile:287)
 *** Parse error: Missing dependency operator (Makefile:288)
 *** Parse error: Need an operator in 'else' (Makefile:294)
 *** Parse error: Missing dependency operator (Makefile:295)
 *** Parse error: Missing dependency operator (Makefile:301)
 *** Parse error: Missing dependency operator (Makefile:302)
 *** Parse error: Missing dependency operator (Makefile:303)
 *** Parse error: Missing dependency operator (Makefile:304)
 *** Parse error: Missing dependency operator (Makefile:305)
 *** Parse error: Missing dependency operator (Makefile:306)
 *** Parse error: Missing dependency operator (Makefile:307)
 *** Parse error: Missing dependency operator (Makefile:308)
 *** Parse error: Missing dependency operator (Makefile:309)
 *** Parse error: Missing dependency operator (Makefile:310)
 *** Parse error: Missing dependency operator (Makefile:311)
 *** Parse error: Missing dependency operator (Makefile:312)
 *** Parse error: Missing dependency operator (Makefile:323)
 *** Parse error: Need an operator in '' (Makefile:325)
 *** Parse error: Need an operator in 'endif' (Makefile:326)
 *** Parse error: Missing dependency operator (Makefile:328)
 *** Parse error: Need an operator in '' (Makefile:330)
 *** Parse error: Need an operator in 'endif' (Makefile:331)
 *** Parse error: Missing dependency operator (Makefile:334)
 *** Parse error: Need an operator in '' (Makefile:336)
 *** Parse error: Need an operator in 'endif' (Makefile:337)
 *** Parse error: Missing dependency operator (Makefile:345)
 *** Parse error: Need an operator in ',)' (Makefile:347)
 Bad modifier: %ci | cut -f1 -d' ' | tr '-' '/')
 *** Parse error: Need an operator in 'endif' (Makefile:351)
 *** Parse error: Need an operator in 'endif' (Makefile:352)
 *** Parse error: Need an operator in ',)' (Makefile:355)
 *** Parse error: Need an operator in 'endif' (Makefile:357)
 *** Parse error: Need an operator in ',)' (Makefile:358)
 *** Parse error: Need an operator in 'endif' (Makefile:360)
 Bad modifier: %ci | cut -f1 -d' ' | tr '-' '/')
 *** Parse error: Missing dependency operator (Makefile:361)
 *** Parse error: Need an operator in 'endif' (Makefile:363)
 *** Parse error: Missing dependency operator (Makefile:381)
 *** Parse error: Need an operator in '' (Makefile:382)
 *** Parse error: Need an operator in 'endif' (Makefile:383)
 *** Parse error: Missing dependency operator (Makefile:385)
 *** Parse error: Need an operator in 'endif' (Makefile:388)
 *** Parse error: Missing dependency operator (Makefile:390)
 *** Parse error: Need an operator in 'endif' (Makefile:394)
 *** Parse error: Missing dependency operator (Makefile:396)
 *** Parse error: Need an operator in 'endif' (Makefile:399)
 *** Parse error: Missing dependency operator (Makefile:401)
 *** Parse error: Need an operator in 'endif' (Makefile:404)
 *** Parse error: Missing dependency operator (Makefile:406)
 *** Parse error: Need an operator in 'endif' (Makefile:410)
 *** Parse error: Missing dependency operator (Makefile:412)
 *** Parse error: Need an operator in 'endif' (Makefile:415)
 *** Parse error: Missing dependency operator (Makefile:417)
 *** Parse error: Need an operator in 'endif' (Makefile:420)
 *** Parse error: Missing dependency operator (Makefile:422)
 *** Parse error: Need an operator in 'endif' (Makefile:429)
 *** Parse error: Missing dependency operator (Makefile:431)
 *** Parse error: Need an operator in 'endif' (Makefile:435)
 *** Parse error: Missing dependency operator (Makefile:437)
 *** Parse error: Need an operator in 

RE: Compile ZLIB in OpenBSD 5.4

2014-04-07 Thread Lukas Tribus
Hi,


 The same error, i add -lz in ADDLIB the Makefile.bsd and run: 
  
 root@haproxy01 $ make Makefile.bsd USE_ZLIB=1 

Wrong command, you are missing the -f.


And yes, GNU make would work with the default makefile.



Regards,

Lukas 


Re: Compile ZLIB in OpenBSD 5.4

2014-04-05 Thread Baptiste
You should use bsd make with Makefile.bsd provided in HAProxy source
archive or git.

Baptiste

On Sat, Apr 5, 2014 at 1:43 AM, William Lallemand wlallem...@irq6.net wrote:
 On Fri, 4 Apr 2014 18:36:10 -0300
 Jorge Severino severino.jo...@gmail.com wrote:

 root@haproxy01 $ make TARGET=openbsd CPU=native USE_ZLIB=1
 ZLIB_INC=/usr/include ZLIB_LIB=/usr/lib
 *** Parse error in /tmp/haproxy-1.5-dev22: Missing dependency operator
 (Makefile:202)
 *** Parse error: Need an operator in 'else' (Makefile:206)
 *** Parse error: Missing dependency operator (Makefile:207)
 *** Parse error: Need an operator in 'else' (Makefile:213)
 [...]

 You should install and use GNU Make, not the BSD one.


 --
 William Lallemand




Re: Compile ZLIB in OpenBSD 5.4

2014-04-05 Thread Jorge Severino
What is a option for enable zlib in makefile.bsd?
 El 05/04/2014 09:26, Baptiste bed...@gmail.com escribió:

 You should use bsd make with Makefile.bsd provided in HAProxy source
 archive or git.

 Baptiste

 On Sat, Apr 5, 2014 at 1:43 AM, William Lallemand wlallem...@irq6.net
 wrote:
  On Fri, 4 Apr 2014 18:36:10 -0300
  Jorge Severino severino.jo...@gmail.com wrote:
 
  root@haproxy01 $ make TARGET=openbsd CPU=native USE_ZLIB=1
  ZLIB_INC=/usr/include ZLIB_LIB=/usr/lib
  *** Parse error in /tmp/haproxy-1.5-dev22: Missing dependency operator
  (Makefile:202)
  *** Parse error: Need an operator in 'else' (Makefile:206)
  *** Parse error: Missing dependency operator (Makefile:207)
  *** Parse error: Need an operator in 'else' (Makefile:213)
  [...]
 
  You should install and use GNU Make, not the BSD one.
 
 
  --
  William Lallemand
 



Compile ZLIB in OpenBSD 5.4

2014-04-04 Thread Jorge Severino
Hello:

I tried the enable ZLIB Compression in OpenBSD 5.4 amd64 but not work:

root@haproxy01 $ ./haproxy
-vv

HA-Proxy version 1.5-dev19 2013/06/17
Copyright 2000-2013 Willy Tarreau w...@1wt.eu

Build options :
  TARGET  = openbsd
  CPU = generic
  CC  = gcc

Default settings :
  maxconn = 65535, bufsize = 16060, maxrewrite = 10300, maxpollevents = 200

Encrypted password support via crypt(3): no
Built without zlib support (USE_ZLIB not set)
Compression algorithms supported : identity
Built without OpenSSL support (USE_OPENSSL not set)
Built without PCRE support (using libc's regex instead)
Built with transparent proxy support using: SO_BINDANY

Available polling systems :
 kqueue : pref=300,  test result OK
   poll : pref=200,  test result OK
 select : pref=150,  test result OK
Total: 3 (3 usable), will use kqueue.


I tried with change Makefile.bsd and make -f Makefile.bsd USE_ZLIB=1

But not compile with ZLIB Support.

Thanks...

-- 
Atte
Jorge Severino


RE: Compile ZLIB in OpenBSD 5.4

2014-04-04 Thread Lukas Tribus
Hi,


 I tried the enable ZLIB Compression in OpenBSD 5.4 amd64 but not work: 
 
 root@haproxy01 $ ./haproxy -vv 
 HA-Proxy version 1.5-dev19 2013/06/17 

Please try recent code (latest snapshot preferably).

But I suspect the bsd makefile doesn't implement zlib.



Regards,

Lukas 


RE: Compile ZLIB in OpenBSD 5.4

2014-04-04 Thread Lukas Tribus
Hi Jorge,


 Date: Fri, 4 Apr 2014 12:53:26 -0300 
 Subject: Re: Compile ZLIB in OpenBSD 5.4 
 From: severino.jo...@gmail.com 
 
 haproxy not support ZLIB in OpenBSD? 

No, I don't think this is intentional.


Please try with current code, if it still doesn't work,
we will take a look at it.


Just make sure you the devel package of zlib is installed
on the system.



Also, please always respond to the mailing list, so
others see your reply as well.




Regards,

Lukas 


Re: Compile ZLIB in OpenBSD 5.4

2014-04-04 Thread Jorge Severino
In OpenBSD library is libZ?

I have in /usr/lib

oot@haproxy01 $ ls -l /usr/lib/libz*
-r--r--r--  1 root  bin  296850 Jul 30  2013 /usr/lib/libz.a
-r--r--r--  1 root  bin  201378 Jul 30  2013 /usr/lib/libz.so.4.1
-r--r--r--  1 root  bin  305920 Jul 30  2013 /usr/lib/libz_p.a



2014-04-04 13:07 GMT-03:00 Lukas Tribus luky...@hotmail.com:

 Hi Jorge,


  Date: Fri, 4 Apr 2014 12:53:26 -0300
  Subject: Re: Compile ZLIB in OpenBSD 5.4
  From: severino.jo...@gmail.com
 
  haproxy not support ZLIB in OpenBSD?

 No, I don't think this is intentional.


 Please try with current code, if it still doesn't work,
 we will take a look at it.


 Just make sure you the devel package of zlib is installed
 on the system.



 Also, please always respond to the mailing list, so
 others see your reply as well.




 Regards,

 Lukas




-- 
Atte
Jorge Severino
Numero movil Personal: 08-7775834


RE: Compile ZLIB in OpenBSD 5.4

2014-04-04 Thread Lukas Tribus
Hi,

 In OpenBSD library is libZ?
 
 I have in /usr/lib
 
 root@haproxy01 $ ls -l /usr/lib/libz*
 -r--r--r--  1 root  bin  296850 Jul 30  2013 /usr/lib/libz.a
 -r--r--r--  1 root  bin  201378 Jul 30  2013 /usr/lib/libz.so.4.1
 -r--r--r--  1 root  bin  305920 Jul 30  2013 /usr/lib/libz_p.a


Ok, the lib is there. Please:

- use current code, get dev22 from http://haproxy.1wt.eu/
- use the generic makefile, not the BSD one, try:
 make TARGET=openbsd CPU=native USE_ZLIB=1
- try to force the path, which is probably (otherwise lookup the header
 files, your already found .a file):
 make TARGET=openbsd CPU=native USE_ZLIB=1 ZLIB_INC=/usr/include 
ZLIB_LIB=/usr/lib
- if it still doesn't work, post the full make process somewhere



Regards,

Lukas 


Re: Compile ZLIB in OpenBSD 5.4

2014-04-04 Thread Jorge Severino
root@haproxy01 $ make TARGET=openbsd CPU=native USE_ZLIB=1
ZLIB_INC=/usr/include ZLIB_LIB=/usr/lib
*** Parse error in /tmp/haproxy-1.5-dev22: Missing dependency operator
(Makefile:202)
*** Parse error: Need an operator in 'else' (Makefile:206)
*** Parse error: Missing dependency operator (Makefile:207)
*** Parse error: Need an operator in 'else' (Makefile:213)
*** Parse error: Missing dependency operator (Makefile:214)
*** Parse error: Need an operator in 'else' (Makefile:221)
*** Parse error: Missing dependency operator (Makefile:222)
*** Parse error: Need an operator in 'else' (Makefile:231)
*** Parse error: Missing dependency operator (Makefile:232)
*** Parse error: Need an operator in 'else' (Makefile:241)
*** Parse error: Missing dependency operator (Makefile:242)
*** Parse error: Need an operator in 'else' (Makefile:256)
*** Parse error: Missing dependency operator (Makefile:257)
*** Parse error: Need an operator in 'else' (Makefile:267)
*** Parse error: Missing dependency operator (Makefile:268)
*** Parse error: Need an operator in 'else' (Makefile:274)
*** Parse error: Missing dependency operator (Makefile:275)
*** Parse error: Need an operator in 'else' (Makefile:281)
*** Parse error: Missing dependency operator (Makefile:282)
*** Parse error: Need an operator in 'else' (Makefile:287)
*** Parse error: Missing dependency operator (Makefile:288)
*** Parse error: Need an operator in 'else' (Makefile:294)
*** Parse error: Missing dependency operator (Makefile:295)
*** Parse error: Missing dependency operator (Makefile:301)
*** Parse error: Missing dependency operator (Makefile:302)
*** Parse error: Missing dependency operator (Makefile:303)
*** Parse error: Missing dependency operator (Makefile:304)
*** Parse error: Missing dependency operator (Makefile:305)
*** Parse error: Missing dependency operator (Makefile:306)
*** Parse error: Missing dependency operator (Makefile:307)
*** Parse error: Missing dependency operator (Makefile:308)
*** Parse error: Missing dependency operator (Makefile:309)
*** Parse error: Missing dependency operator (Makefile:310)
*** Parse error: Missing dependency operator (Makefile:311)
*** Parse error: Missing dependency operator (Makefile:312)
*** Parse error: Missing dependency operator (Makefile:323)
*** Parse error: Need an operator in '' (Makefile:325)
*** Parse error: Need an operator in 'endif' (Makefile:326)
*** Parse error: Missing dependency operator (Makefile:328)
*** Parse error: Need an operator in '' (Makefile:330)
*** Parse error: Need an operator in 'endif' (Makefile:331)
*** Parse error: Missing dependency operator (Makefile:334)
*** Parse error: Need an operator in '' (Makefile:336)
*** Parse error: Need an operator in 'endif' (Makefile:337)
*** Parse error: Missing dependency operator (Makefile:345)
*** Parse error: Need an operator in ',)' (Makefile:347)
Bad modifier: %ci | cut -f1 -d' ' | tr '-' '/')
*** Parse error: Need an operator in 'endif' (Makefile:351)
*** Parse error: Need an operator in 'endif' (Makefile:352)
*** Parse error: Need an operator in ',)' (Makefile:355)
*** Parse error: Need an operator in 'endif' (Makefile:357)
*** Parse error: Need an operator in ',)' (Makefile:358)
*** Parse error: Need an operator in 'endif' (Makefile:360)
Bad modifier: %ci | cut -f1 -d' ' | tr '-' '/')
*** Parse error: Missing dependency operator (Makefile:361)
*** Parse error: Need an operator in 'endif' (Makefile:363)
*** Parse error: Missing dependency operator (Makefile:381)
*** Parse error: Need an operator in '' (Makefile:382)
*** Parse error: Need an operator in 'endif' (Makefile:383)
*** Parse error: Missing dependency operator (Makefile:385)
*** Parse error: Need an operator in 'endif' (Makefile:388)
*** Parse error: Missing dependency operator (Makefile:390)
*** Parse error: Need an operator in 'endif' (Makefile:394)
*** Parse error: Missing dependency operator (Makefile:396)
*** Parse error: Need an operator in 'endif' (Makefile:399)
*** Parse error: Missing dependency operator (Makefile:401)
*** Parse error: Need an operator in 'endif' (Makefile:404)
*** Parse error: Missing dependency operator (Makefile:406)
*** Parse error: Need an operator in 'endif' (Makefile:410)
*** Parse error: Missing dependency operator (Makefile:412)
*** Parse error: Need an operator in 'endif' (Makefile:415)
*** Parse error: Missing dependency operator (Makefile:417)
*** Parse error: Need an operator in 'endif' (Makefile:420)
*** Parse error: Missing dependency operator (Makefile:422)
*** Parse error: Need an operator in 'endif' (Makefile:429)
*** Parse error: Missing dependency operator (Makefile:431)
*** Parse error: Need an operator in 'endif' (Makefile:435)
*** Parse error: Missing dependency operator (Makefile:437)
*** Parse error: Need an operator in 'endif' (Makefile:441)
*** Parse error: Missing dependency operator (Makefile:443)
*** Parse error: Need an operator in 'endif' (Makefile:446)
*** Parse error: Missing dependency operator (Makefile:448)
*** Parse error: 

Re: Compile ZLIB in OpenBSD 5.4

2014-04-04 Thread William Lallemand
On Fri, 4 Apr 2014 18:36:10 -0300
Jorge Severino severino.jo...@gmail.com wrote:

 root@haproxy01 $ make TARGET=openbsd CPU=native USE_ZLIB=1
 ZLIB_INC=/usr/include ZLIB_LIB=/usr/lib
 *** Parse error in /tmp/haproxy-1.5-dev22: Missing dependency operator
 (Makefile:202)
 *** Parse error: Need an operator in 'else' (Makefile:206)
 *** Parse error: Missing dependency operator (Makefile:207)
 *** Parse error: Need an operator in 'else' (Makefile:213)
 [...]

You should install and use GNU Make, not the BSD one.


-- 
William Lallemand