trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2012

Re: [trinity-devel] basket notepad failure (oh no!) - 'getuid' was not declared in this scope ??

From: "David C. Rankin" <drankinatty@...>
Date: Tue, 10 Apr 2012 13:31:33 -0500
On 04/10/2012 01:11 PM, David C. Rankin wrote:
> error: 'getuid' was not declared in this scope

Looks like all the package failures will be gcc47. However, it looks like the
fix will be fairly simple, but time consuming. Apparently, the errors occur
because gcc 47 removed numerous "unnecessary" includes from the standard library
headers.

    You will now be required to #include <unistd.h> where you experience build
failures of the type:

error: ‘access’ was not declared in this scope
error: 'getuid' was not declared in this scope
error: ‘sleep’ was not declared in this scope
error: ‘usleep’ was not declared in this scope

and on and on and on....

-- 
David C. Rankin, J.D.,P.E.