Comment 4 for bug 1131231

Revision history for this message
eyousey (eyousey) wrote : Re: Compile error on FreeBSD 9.0 64-bit

Saw that the version has been bumped to 2.0.1. So I grabbed the latest main branch (3/6/2013) from git and tried to compile. I'm still getting similar errors as to what is in my previous post. I also grabbed the orig.tar.gz source code file and tried the same with it, but got the same errors as what you see below.

Before re-running the configure script after the git update, I did a make clean on the build directory.

Thanks.

[ 42%] Building CXX object src/CMakeFiles/brewtarget.dir/Algorithms.cpp.o
[ 43%] Building CXX object src/CMakeFiles/brewtarget.dir/BeerXMLElement.cpp.o
In file included from /root/git/brewtarget/src/BeerXMLElement.h:35,
                 from /root/git/brewtarget/src/BeerXMLElement.cpp:19:
/root/git/brewtarget/src/pstdint.h:839:7: warning: no newline at end of file
In file included from /root/git/brewtarget/src/BeerXMLElement.h:35,
                 from /root/git/brewtarget/src/BeerXMLElement.cpp:19:
/root/git/brewtarget/src/pstdint.h:397: error: conflicting declaration 'typedef long long int int64_t'
/usr/include/sys/_stdint.h:49: error: 'int64_t' has a previous declaration as 'typedef __int64_t int64_t'
/root/git/brewtarget/src/pstdint.h:492: error: conflicting declaration 'typedef long long unsigned int uint64_t'
/usr/include/sys/_stdint.h:69: error: 'uint64_t' has a previous declaration as 'typedef __uint64_t uint64_t'
/root/git/brewtarget/src/pstdint.h:652: error: conflicting declaration 'typedef signed char int_fast8_t'
/usr/include/stdint.h:48: error: 'int_fast8_t' has a previous declaration as 'typedef __int_fast8_t int_fast8_t'
/root/git/brewtarget/src/pstdint.h:653: error: conflicting declaration 'typedef unsigned char uint_fast8_t'
/usr/include/stdint.h:53: error: 'uint_fast8_t' has a previous declaration as 'typedef __uint_fast8_t uint_fast8_t'
/root/git/brewtarget/src/pstdint.h:654: error: conflicting declaration 'typedef short int int_fast16_t'
/usr/include/stdint.h:49: error: 'int_fast16_t' has a previous declaration as 'typedef __int_fast16_t int_fast16_t'
/root/git/brewtarget/src/pstdint.h:655: error: conflicting declaration 'typedef short unsigned int uint_fast16_t'
/usr/include/stdint.h:54: error: 'uint_fast16_t' has a previous declaration as 'typedef __uint_fast16_t uint_fast16_t'
*** Error code 1

Stop in /root/git/brewtarget/build.
*** Error code 1

Stop in /root/git/brewtarget/build.
*** Error code 1

Stop in /root/git/brewtarget/build.