Hi Angelo,

On Thu, Jan 4, 2018 at 11:11 PM, Angelo Hongens <ang...@hongens.nl> wrote:
> On 03-01-2018 17:39, Lukas Tribus wrote:
>>
>> To compile Haproxy 1.8 with threads, at least GCC 4.7 is needed.
>> CentOs 6 only ships GCC 4.4.7, therefor compilation fails.
>> You can disable thread support, by adding USE_THREAD= to the make
>> command (nothing comes after the equal sign):
>
>
> I'm no packaging expert, but 1.8 seems to build fine on my CentOS6 build box
> without any errors.
>
> I'm running gcc version 4.4.7 20120313 on CentOS 6.9.
>
> Here's my spec file for building RPM packages:
>
> https://github.com/AxisNL/haproxy-rpmbuild/blob/master/SPECS/haproxy-1.8.3.el6.spec
>
> Am I doing something strange?? :-)

Your are using the older build TARGET=linux26, which is for kernels
older than 2.6.28. It doesn't enable newer features for example thread
support (which would cause the build issue).
For kernels >= 2.6.28 (which CentOs 6 is) we have the linux2628 build target.

Willy is working on thread support for the older kernel though, so the
build issue will be fixed soon.


cheers,
lukas

Reply via email to