"MvO" == Martijn van Oosterhout writes: >> it worked fine with postgresql 8.2; with 8.3 it started segfaulting, >> and it appeared that the reason is because in postgresql 8.3, the >> "free" is a macro defined in snowball/header.h: #define free(a) >> pfree(a)
MvO> It does seem wrong. Do you include that header file explicitly? MvO> Because it shouldn't be necessary. i needed some prototypes from snowball in the same source file, so i included snowball/header.h; it appears that it is sufficient to use #include <snowball/libstemmer/api.h> instead of #include <snowball/header.h> but please remove the "#define free" from snowball/header.h because, as you said, it's wrong. Best, v. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers