Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] OT: GeoIP compilation fails

2007-08-02 by Oliver Fromme

Kai Schaetzl wrote:
 > Wanted to try out version 4 on my "test production" machine and decided to 
 > try out GeoIP as well. Downloaded latest source for libGeoIP and started 
 > compiling. When compiling the regionname object cc1 starts to grab memory 
 > infitely. It least it seems that it is not going to stop, I stopped it 
 > around 750 MB as it seemed largely inappropriate to me that it should need 
 > that much memory for compilation (and I was about running out of memory). 
 > This is a SuSE 9.0 system. Has anyone seen this problem?

What version of gcc is that?  (Type "gcc -v".)

Version 4.2 has an efficiency problem (some call it bug)
that it consumes large amounts of memory for certain kinds
of source files.  In particular, it requires about 1 GB
of memory (RAM + swap) for one file in the Xorg tree when
the optimization level is >= 1.  That problem (and several
others) is fixed in gcc 4.2.1.

Bottom line:  Try updating your gcc, and/or try compiling
that particular file with a lower optimization level
(-O0 if everything else fails).

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Gesch\ufffdftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M\ufffdn-
chen, HRB 125758,  Gesch\ufffdftsf\ufffdhrer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"C++ is to C as Lung Cancer is to Lung."
        -- Thomas Funke

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.