Build failed with undeclared symbol "MAP_ANONYMOUS". MAP_ANONYMOUS is used to replace "MAP_ANON" but it's only so on Linux (or GNU libc). On the other system we should use MAP_ANON instead. i686-gentoo-freebsd8.2-gcc -fPIC -O2 -march=native -pipe -fomit-frame-pointer -Wall -I. -c dead_pool.c -o dead_pool.o dead_pool.c: In function 'init_pool': dead_pool.c:71:33: error: 'MAP_ANONYMOUS' undeclared (first use in this function) dead_pool.c:71:33: note: each undeclared identifier is reported only once for each function it appears in gmake: *** [dead_pool.o] Error 1 Reproducible: Always Steps to Reproduce: 1. emerge tsocks
Created attachment 285609 [details] complete build.log
Created attachment 285617 [details, diff] proposed patch With this patch applied USE="tordns" emerge tsocks passed on FreeBSD. The problem code is originate from mirror://gentoo/${PN}-${PV/_beta/b}-tordns1-gentoo-r1.patch.gz, so please review the attached patch and apply on it.
ping. Could anyone apply the patch?
I've added new patch to the tree. Closing.