jvlad wrote: >>> Further investigation shown that compiler takes about 1GB(!) of memory >>> when >>> it compiles php5.3-200906221030/ext/fileinfo/libmagic/apprentice.c >>> On some systems this amount of memory is not available and may lead to >>> errors such as hangs or crashes. >>> >>> Is it a known problem? >>> Is this requirement specified somewhere? >>> Can it be fixed or improved? >> Try compiling with -O0 > > unfortunately, it did not help (tried with fresh sources):
There really isn't much we can do about this. Restructuring perfectly valid code because certain old versions of gcc use a lot of memory compiling it isn't something I am very keen on. Compile on a box with more memory or move to gcc4. -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php