Compilation error installing p11-kit on Tiger-PPC

michele.bert at posteo.net michele.bert at posteo.net
Thu Apr 24 07:01:43 UTC 2025


Hello everyone.
Eventually it completed all the compilations for bash, and it works. 
Next step is mutt, which depends on pk11-kit.

This one gives compilation errors like:

| :info:build In file included from common/compat.h:41,
| :info:build                  from common/compat.c:57:
| :info:build /opt/local/include/LegacySupport/sys/stat.h:94:
| error: expected declaration specifiers or '...' before 'filesec_t'

Such type is defined in /usr/include/sys/fcntl.h, but is conditioned to 
_POSIX_C_SOURCE not being defined.

| #ifndef _POSIX_C_SOURCE
| #ifndef _FILESEC_T
| struct _filesec;
| typedef struct _filesec *filesec_t;
| #define _FILESEC_T
| #endif
| typedef enum {
|         FILESEC_OWNER = 1,
|         FILESEC_GROUP = 2,
|         FILESEC_UUID = 3,
|         FILESEC_MODE = 4,
|         FILESEC_ACL = 5,
|         FILESEC_GRPUUID = 6,
|
| /* XXX these are private to the implementation */
|         FILESEC_ACL_RAW = 100,
|         FILESEC_ACL_ALLOCSIZE = 101
| } filesec_property_t;
|
| /* XXX backwards compatibility */
| #define FILESEC_GUID FILESEC_UUID
| #endif /* _POSIX_C_SOURCE */

Currently I am trying to recompile after inserting such snippet in 
/opt/local/include/LegacySupport/sys/fcntl.h, after the inclusion of 
system fcntl.h

I let you know the result, but do I have to signal somewhere this issue, 
and maybe my solution, in case it works?
--
Mick








More information about the macports-users mailing list