alloca considered harmful
David Relson
relson at osagesoftware.com
Tue May 20 01:17:52 CEST 2003
At 01:39 PM 5/19/03, Matthias Andree wrote:
>Solaris:
>
>/opt/SUNWspro/bin/cc -DBOGOFILTER -xtarget=ultra2 -xarch=v9 -g -xO3
>-L/usr/local/BerkeleyDB.4.1//lib -R/usr/local/BerkeleyDB.4.1//lib -o
>bogofilter bogofilter.o main.o method.o graham.o robinson.o fisher.o
>libbogofilter.a -lm -ldb
>ild: (undefined symbol) alloca -- referenced in the text segment of
>libbogofilter.a(lexer_v3.o)
>
>Besides that, alloca is generally non-portable.
>
>I'll try to back alloca changes back out if separate or try to find
>proper free() calls if not.
Matthias,
I think I only used it in one place.
David
More information about the bogofilter-dev
mailing list