I don't think the problem lies in the cc compiler version you're using,
but in the dash-trick patch. There was a small error in it (not
initialzing a variable) that causes this. You have two options:
1) use the newest qmail-ldap patch and dash extension
2) in the current 20010501 patch, after applying it, change two lines of
code:

change
int  dash;
to
int  dash=0;

remove the line (further in the code)
dash=0;

Franky

HF Kwan wrote:

> I want to share my experience of handling this problem.
>
> My Linux machine is Redhat 7.1 on Pentium!!! 933, with 256MB RAM.
>
> I have seen in the mailing list that many user got this problem and
> so do I.
>
> I found that when I use the dash-trick patch with the qmail-ldap
> (20010501), this annoying error message always appear when sending
> mail.
>
> However, when I try to change the compilation parameter at the file
> "conf-cc" from "cc -O2" to just "cc" (without any optimization), such
> error disappers from the maillog forever!
>
> When I see the version of gcc by "gcc -v",
>
>    Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
>    gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)
>
> Oh!! Buggy gcc2.96!!!
>
> Since RH7.1 is using gcc2.96 as it default compiler, I suspect that
> the error Out_of_memory_in_qmail-lspawn is due to the buggy gcc2.96 .
>
> It is fantastic and weird that removing the optimization will solve
> the problem.
>
> Hope my experience can help you.
>
> _______________________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk

Reply via email to