Package: barada-pam Version: 0.5-3.1 in barada-pam, it use both stdint.h and boost/cstdint make it fails when built.
HOTPCredentials.cpp:47:33: error: expected constructor, destructor, or type conversion before '(' token HOTPCredentials::HOTPCredentials(uint64_t counter, uint32_t pin, unsigned char *key) { ^ HOTPCredentials.cpp:66:34: error: variable or field 'setCounter' declared void void HOTPCredentials::setCounter(uint64_t counter) { ^ HOTPCredentials.cpp:66:34: error: reference to 'uint64_t' is ambiguous In file included from /usr/lib/gcc/mips64el-linux-gnuabi64/4.8/include/stdint.h:9:0, from HOTPCredentials.h:23, from HOTPCredentials.cpp:20: /usr/include/stdint.h:55:27: note: candidates are: typedef long unsigned int uint64_t typedef unsigned long int uint64_t; ^ In file included from /usr/include/boost/numeric/conversion/numeric_cast_traits.hpp:27:0, from /usr/include/boost/numeric/conversion/cast.hpp:34, from /usr/include/boost/lexical_cast.hpp:159, from HOTPCredentials.cpp:29: /usr/include/boost/cstdint.hpp:311:42: note: typedef boost::ulong_long_type boost::uint64_t typedef ::boost::ulong_long_type uint64_t; ^ HOTPCredentials.cpp:70:1: error: reference to 'uint64_t' is ambiguous uint64_t HOTPCredentials::getCounter() { ^ In file included from /usr/lib/gcc/mips64el-linux-gnuabi64/4.8/include/stdint.h:9:0, from HOTPCredentials.h:23, from HOTPCredentials.cpp:20: /usr/include/stdint.h:55:27: note: candidates are: typedef long unsigned int uint64_t typedef unsigned long int uint64_t; ^ In file included from /usr/include/boost/numeric/conversion/numeric_cast_traits.hpp:27:0, from /usr/include/boost/numeric/conversion/cast.hpp:34, from /usr/include/boost/lexical_cast.hpp:159, from HOTPCredentials.cpp:29: /usr/include/boost/cstdint.hpp:311:42: note: typedef boost::ulong_long_type boost::uint64_t typedef ::boost::ulong_long_type uint64_t; ^ -- Yunqiang Su
Index: barada-pam-0.5/HOTPCredentials.h =================================================================== --- barada-pam-0.5.orig/HOTPCredentials.h 2010-02-16 21:38:42.000000000 +0000 +++ barada-pam-0.5/HOTPCredentials.h 2014-03-31 05:49:11.887050979 +0000 @@ -20,7 +20,10 @@ #ifndef __HOTP_CREDENTIALS_H__ #define __HOTP_CREDENTIALS_H__ -#include <stdint.h> +#include <boost/cstdint.hpp> +using boost::uint32_t; +using boost::uint64_t; + #include <string> #include <security/pam_modules.h> Index: barada-pam-0.5/Util.h =================================================================== --- barada-pam-0.5.orig/Util.h 2009-09-07 16:32:21.000000000 +0000 +++ barada-pam-0.5/Util.h 2014-03-31 05:50:18.672210083 +0000 @@ -1,7 +1,10 @@ #ifndef __UTIL_H__ #define __UTIL_H__ -#include <stdint.h> +#include <boost/cstdint.hpp> +using boost::uint32_t; +using boost::uint64_t; + #include <security/pam_modules.h> #include <security/pam_ext.h> #include <syslog.h> Index: barada-pam-0.5/HOTP.h =================================================================== --- barada-pam-0.5.orig/HOTP.h 2010-02-16 21:40:19.000000000 +0000 +++ barada-pam-0.5/HOTP.h 2014-03-31 05:54:59.152690824 +0000 @@ -23,7 +23,10 @@ #include <security/pam_modules.h> #include <security/pam_ext.h> -#include <stdint.h> +#include <boost/cstdint.hpp> +using boost::uint32_t; +using boost::uint64_t; +using boost::uint8_t; class HOTP { Index: barada-pam-0.5/HOTPWindow.cpp =================================================================== --- barada-pam-0.5.orig/HOTPWindow.cpp 2010-02-16 21:38:54.000000000 +0000 +++ barada-pam-0.5/HOTPWindow.cpp 2014-03-31 05:53:46.160500202 +0000 @@ -17,7 +17,9 @@ * USA */ -#include <stdint.h> +#include <boost/cstdint.hpp> +using boost::uint32_t; +using boost::uint64_t; #include "HOTPWindow.h" #include "HOTP.h" Index: barada-pam-0.5/pam_barada.cpp =================================================================== --- barada-pam-0.5.orig/pam_barada.cpp 2010-02-16 21:40:04.000000000 +0000 +++ barada-pam-0.5/pam_barada.cpp 2014-03-31 05:54:14.598001416 +0000 @@ -19,10 +19,13 @@ #include <boost/lexical_cast.hpp> #include <string.h> -#include <stdint.h> #include <string> #include <unistd.h> +#include <boost/cstdint.hpp> +using boost::uint32_t; +using boost::uint64_t; + #include <security/pam_modules.h> #include <security/pam_ext.h>