Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381917 - net-proxy/tsocks-1.8_beta5-r3[tordns]: build failed on FreeBSD
Summary: net-proxy/tsocks-1.8_beta5-r3[tordns]: build failed on FreeBSD
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 380077
  Show dependency tree
 
Reported: 2011-09-05 11:03 UTC by Naohiro Aota
Modified: 2011-11-19 16:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
complete build.log (tsocks-build.log,7.11 KB, text/plain)
2011-09-05 11:06 UTC, Naohiro Aota
Details
proposed patch (tsocks-1.8_beta5-mmap.patch,1.46 KB, patch)
2011-09-05 11:38 UTC, Naohiro Aota
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Naohiro Aota gentoo-dev 2011-09-05 11:03:13 UTC
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
Comment 1 Naohiro Aota gentoo-dev 2011-09-05 11:06:37 UTC
Created attachment 285609 [details]
complete build.log
Comment 2 Naohiro Aota gentoo-dev 2011-09-05 11:38:11 UTC
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.
Comment 3 Naohiro Aota gentoo-dev 2011-11-04 12:37:17 UTC
ping. Could anyone apply the patch?
Comment 4 Naohiro Aota gentoo-dev 2011-11-19 16:26:05 UTC
I've added new patch to the tree. Closing.