Re: [Opentnl-general] Problems compiling on FreeBSD
Brought to you by:
mark_frohnmayer,
s_alanet
From: Ville A. B. <vbe...@cc...> - 2006-01-26 14:48:46
|
On Wed, 25 Jan 2006, Aaron Dalton wrote: > I am running FreeBSD5.4-RELEASE and GCC 3.4.2. I have been trying to compile > the TNL library but with a number of difficulties. > 5) I shout for joy as the libtnl is finally linked but then frown deeply when > I get the following error in the libtomcrypt directory: > cc -c -I./ -Wall -Wsign-compare -W -Wno-unused -Wshadow -Werror -Os -c -o > tiger.o tiger.c > tiger.c:544: warning: conflicting types for built-in function 'round' > gmake[1]: *** [tiger.o] Error 1 With newer GCCs, "round" seems to be a reserved name (although why this is a warning instead of an error escapes me). You can fix this by adding the following #define/#undef pair around tiger.c: #define round HACK_round // tiger.c goes here #undef round BTW, this has been fixed in newer libtomcrypt versions. Time to upgrade? Cheers, Ville -- Ville Bergholm http://www.hut.fi/u/vberghol/ mobile +358-44-5722802 |