Hi Pieter,

On Sun, Nov 19, 2017 at 05:35:36PM +0100, PiBa-NL wrote:
> Hi haproxy-list,
> 
> I'm trying to build 1.8rc4 on FreeBSD 11.1,  but it throws a few errors for
> me..
> 
> src/listener.o: In function `listener_accept':
> /usr/ports/net/haproxy-devel/work/haproxy-1.8-rc4/src/listener.c:455:
> undefined reference to `__unsupported_argument_size_for_pl_try_s__'
> src/signal.o: In function `__signal_process_queue':
> /usr/ports/net/haproxy-devel/work/haproxy-1.8-rc4/src/signal.c:74: undefined
> reference to `__unsupported_argument_size_for_pl_try_s__'
> src/fd.o: In function `fd_process_cached_events':
> /usr/ports/net/haproxy-devel/work/haproxy-1.8-rc4/src/fd.c:248: undefined
> reference to `__unsupported_argument_size_for_pl_try_s__'
> cc: error: linker command failed with exit code 1 (use -v to see invocation)
> 
> Removing line 119 & 120 from plock.h makes the build succeed.. But i am not
> sure what gets broken by doing so if anything?..
> 
> With those lines removed i get the result below from haproxy -vv, looks good
> :) but i didn't actually start it yet with a proper config.

Wow that's really strange. In short, haproxy detected that longs are neither
32 nor 64 bits on your machine, which very likely is not the case, or that
something odd happens with the way the locks are used at these few places.

Your workaround has disabled locking so you'll get random bugs if you enable
threads. Could you please send the output of "cc -v" ? That should help
figure how this situation is possible. In the mean time you can build with
"USE_THREAD=" to disable threads.

Thanks!
Willy

Reply via email to