Re: Question about build HAProxy for Solaris 11

2016-03-11 Thread Samuel Crowell
Thanks a lot for the response. I am getting an account with the website you
provided to get the missing libraries.

The feature I am looking for is the color variation between enabled and
soft start. I left a prod server enabled but not soft started all night. It
was my fault for not noticing there was no traffic through the server.  The
new version with different colors will prevent this in the future. Glad it
was added.

Thanks again.

Sam


Re: Question about build HAProxy for Solaris 11

2016-03-11 Thread Willy Tarreau
Hi Samuel,

On Tue, Mar 01, 2016 at 08:51:09PM -0500, Samuel Crowell wrote:
> I noticed that ya???ll have the binaries for HAProxy 1.4, is there any plan
> to build the executables for newer versions (1.6, etc.)?

No. The main reason is that my Ultra5 is extremely outdated. It still
runs on solaris 8 from 1998 or so and takes around 5 minutes to build
haproxy 1.4. Also we receive no more requests for this OS.

> It???s hard for me to build from source at work due to missing required
> libraries.  It would be nice if I still had the option to grab a version
> already compiled for Solaris.

It really depends on what features you need. I used to build 1.4 with the
following command :

   make TARGET=solaris CPU=ultrasparc USE_STATIC_PCRE=1 

The missing libraries (if any) could easily be found on http://sunfreeware.com/
which you probably know if you're building from sources. The site seems to
still exist.

Overall I've rarely encountered issues to build on Solaris, compilers and
the GNU suite are easy to find and well supported, and the OS provides a
great forward compatibility. The OS is quite modern (it probably was the
most modern of commercial UNIXes), so once you have installed the software
you need, you should have no trouble.

Best regards,
Willy




Re: Question about build HAProxy for Solaris 11

2016-03-02 Thread Michael Rennecke
Hi,

I don't have a sparc box with solaris for testing. You can try to build
HAproxy by youself. I use this script for build HAProxy for ARM. This
should run on Solaris with some changes.

TARGET=solaris
NB_PROC=


#!/bin/bash

# names of latest versions of each package
export HAPROXY_VERSION=1.6.3
export VERSION_PCRE=pcre-8.38
export VERSION_LIBRESSL=libressl-2.3.2
export VERSION_HAPROXY=haproxy-$HAPROXY_VERSION

# URLs to the source directories
export SOURCE_LIBRESSL=ftp://ftp.openbsd.org/pub/OpenBSD/LibreSSL/
export SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
export SOURCE_HAPROXY=http://www.haproxy.org/download


# clean out any files from previous runs of this script
rm -rf build
mkdir build

# proc for building faster
NB_PROC=$(grep -c ^processor /proc/cpuinfo)

# ensure that we have the required software
#sudo apt-get -y install curl wget build-essential libgd-dev
libgeoip-dev checkinstall git

# grab the source files
echo "Download sources"
wget -P ./build "${SOURCE_PCRE}${VERSION_PCRE}.tar.gz"
wget -P ./build "${SOURCE_LIBRESSL}${VERSION_LIBRESSL}.tar.gz"
wget -P ./build "${SOURCE_HAPROXY}/$(echo $HAPROXY_VERSION | cut -d. -f
1-2)/src/$VERSION_HAPROXY.tar.gz"

# expand the source files
echo "Extract Packages"
cd build || exit 1

tar xfz "${VERSION_HAPROXY}.tar.gz"
tar xfz "${VERSION_LIBRESSL}.tar.gz"
tar xfz "${VERSION_PCRE}.tar.gz"
cd ../ || exit 1

export BPATH="${PWD}/build"
export STATICLIBSSL="${BPATH}/${VERSION_LIBRESSL}"

# build static LibreSSL
echo "Configure & Build LibreSSL"
cd "${STATICLIBSSL}" || exit 1
./configure --prefix="${STATICLIBSSL}/_openssl/" --enable-shared=no &&
make install-strip -j "${NB_PROC}"

# build pcre
export STATICLIPCRE="${BPATH}/${VERSION_PCRE}"
cd "${STATICLIPCRE}" || exit 1
./configure --prefix="${STATICLIPCRE}/_pcre" --enable-shared=no
--enable-utf8 --enable-jit
make -j "${NB_PROC}"
make install


echo "Build HAProxy"
cd "${BPATH}/${VERSION_HAPROXY}" || exit 1

make \
-j "${NB_PROC}" \
TARGET=linux2628 \
USE_STATIC_PCRE=1 \
USE_PCRE_JIT=1 \
PCRE_LIB="${STATICLIPCRE}/_pcre/lib" \
PCRE_INC="${STATICLIPCRE}/_pcre/include" \
USE_OPENSSL=1 \
SSL_INC="${STATICLIBSSL}/_openssl/include" \
SSL_LIB="${STATICLIBSSL}/_openssl/lib" \
USE_ZLIB=1 \
DEFINE="-fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2"


echo "All done."
echo "become root and type: "
echo " cp build/haproxy-${HAPROXY_VERSION}/haproxy /usr/local/sbin"




On 02.03.2016 02:51, Samuel Crowell wrote:
> I noticed that ya’ll have the binaries for HAProxy 1.4, is there any plan to 
> build the executables for newer versions (1.6, etc.)?
> 
> It’s hard for me to build from source at work due to missing required 
> libraries.  It would be nice if I still had the option to grab a version 
> already compiled for Solaris.
> 
> Thanks for the help and your product is great.
> 
> Sam Crowell
> 




signature.asc
Description: OpenPGP digital signature


Question about build HAProxy for Solaris 11

2016-03-01 Thread Samuel Crowell
I noticed that ya’ll have the binaries for HAProxy 1.4, is there any plan to 
build the executables for newer versions (1.6, etc.)?

It’s hard for me to build from source at work due to missing required 
libraries.  It would be nice if I still had the option to grab a version 
already compiled for Solaris.

Thanks for the help and your product is great.

Sam Crowell