Hi John, in the utils.cpp the utils.h must be included before using the HAVE_GETPWUID macro. Currently, I'm getting the following compilation error:
util.cpp: In function 'const char* ibis::util::userName()': util.cpp:1828:24: error: aggregate 'ibis::util::userName()::passwd pass' has incomplete type and cannot be defined util.cpp:1836:67: error: 'getpwuid_r' was not declared in this scope util.cpp:1847:52: error: 'getpwuid' was not declared in this scope util.cpp:1849:27: error: invalid use of incomplete type 'struct ibis::util::userName()::passwd' util.cpp:1828:16: error: forward declaration of 'struct ibis::util::userName()::passwd' Please see the attached patch. Best regards, Petr Velan
--- util.cpp 2015-03-31 09:46:12.010253428 +0200 +++ util.cpp.new 2015-03-31 09:46:07.250377436 +0200 @@ -5,6 +5,7 @@ // // implementation of the utility functions defined in util.h (namespace // ibis::util) +#include "util.h" #if defined(_WIN32) && defined(_MSC_VER) #pragma warning(disable:4786) // some identifier longer than 256 characters #include <direct.h> // _rmdir @@ -18,7 +19,6 @@ #include <dirent.h> // DIR, opendir, readdir #endif -#include "util.h" #include "horometer.h" #include "resource.h" #include <stdarg.h> // vsprintf
_______________________________________________ FastBit-users mailing list [email protected] https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
