[tor-bugs] #7975 [Tor]: Tor 0.2.4.9 fails to compile on EL5.8/x86_64
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Jan 19 00:27:15 UTC 2013
#7975: Tor 0.2.4.9 fails to compile on EL5.8/x86_64
--------------------+-------------------------------------------------------
Reporter: hiviah | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.4.x-final
Component: Tor | Version:
Keywords: | Parent:
Points: | Actualpoints:
--------------------+-------------------------------------------------------
Comment(by hiviah):
Using vanilla gcc 4.4.6 on EL5 works around this bug. Suggested solution
would be to package the gcc for EL5, put it in a temporary repo, so that
`mock` will use it when building (until there is a proper fix).
Submitted to RedHat's bugzilla -
https://bugzilla.redhat.com/show_bug.cgi?id=901750
Note to self on building gcc 4.4.6 (so that I don't forget later):
- http://gcc.gnu.org/wiki/FAQ#configure (non-trivial configuration)
- glibc-devel.i386 must be installed on x86_64 machine, build fails
otherwise
- configure must be run in separate dir than unpacked source, otherwise
build fails; see invocation below
- remove gmp-devel and any libmpfr.(so|a) lying around, it will confuse
the gcc build scripts and break whole thing upon linking
{{{
../gcc-4.4.6/configure \
--with-mpfr-include=/usr/local/include \
--with-mpfr-lib=/usr/local/lib \
--with-mpc-include=/usr/local/include \
--with-mpc-lib=/usr/local/lib \
--with-gmp-include=/usr/local/include \
--with-gmp-lib=/usr/local/lib \
--enable-languages=c
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7975#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list