Hi

if haproxy is build without USE_THREAD (e.g. by using TARGET=generic or
by explicitely setting USE_THREAD=) it fails to link, because
import/plock.h is not included when src/fd.c is being compiled.

> src/fd.c: In function ‘fd_rm_from_fd_list’:
> src/fd.c:268:9: warning: implicit declaration of function ‘pl_deref_int’ 
> [-Wimplicit-function-declaration]
>   next = pl_deref_int(&fdtab[fd].cache.next);
>          ^

*snip*

> src/fd.o: In function `fd_rm_from_fd_list':
> /scratch/haproxy/src/fd.c:268: undefined reference to `pl_deref_int'
> /scratch/haproxy/src/fd.c:276: undefined reference to `pl_deref_int'
> collect2: error: ld returned 1 exit status
> Makefile:898: recipe for target 'haproxy' failed
> make: *** [haproxy] Error 1

Best regards
Tim Düsterhus

Reply via email to