[tor-talk] Compilation error in tor- FreeBSD

grarpamp grarpamp at gmail.com
Thu Mar 22 10:49:48 UTC 2012

On FreeBSD RELENG_4 i386 gcc 2.95.4+, I get this:

container.c: In function `smartlist_ensure_capacity':
container.c:72: `SIZE_MAX' undeclared (first use in this function)
container.c:72: (Each undeclared identifier is reported only once
container.c:72: for each function it appears in.)

SIZE_MAX is not defined in the tarball or /usr/include.

You can find any needed /usr/include .. machine .. *.h here:


I intended this note to contain a patch against in
continuance of a former thread, but of course I lost it and
have to start over. It should be forthcoming.

This error is new somewhere in

Any fix I can include?

Here are some warnings as well:

In file included from address.c:44:
/usr/include/sys/param.h:213: warning: `MIN' redefined
compat.h:649: warning: this is the location of the previous definition
/usr/include/sys/param.h:214: warning: `MAX' redefined
compat.h:646: warning: this is the location of the previous definition

More information about the tor-talk mailing list