On Fri, 28 May 1999, Mindaugas Riauba wrote:
> I have problems while running Mandrake pgcc compiled quake2 mod. If I use
> default options from id Makefile quake2 server segmentation faults on
> startup. If I remove all optimisations - it segfaults after client connect.
> strace log shows nothing suspicious. How could I try to resolve this
> problem?
I've forwarded the problem to the pgcc mailing list - can you provide any
more details?
Do you get any warnings when compiling with -Wall? (egcs and pgcc are
sometimes a bit stricter about bad typecasts than gcc 2.7.x/2.8.x).
> P.S. gcc 2.7.2.3 compiled mod run fine.
Then the obvious workaround is to use gcc 2.7.2.3 for this. ;)
You might also want to disable even the standard optimizations, using
CFLAGS like
-g -m486 -O0 -fno-strength-reduce -mieee-fp
LLaP
bero