During the build process of Fossil I've got errors about undefined references.
This is on FreeBSD 6.4 with gcc 3.4.6

Changing the order of the SSL libraries in the Makefile from "-lcrypto -lssl" to
"-lssl -lcrypto" solved the problem.

-- tsbg