View Issue Details

IDProjectCategoryView StatusLast Update
0011609libextractorbuild systempublic2026-07-28 21:22
ReporterSMillerDev Assigned ToChristian Grothoff Due Date
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
PlatformanyOSmacOSOS Versionany
Product VersionGit master 
Target Version1.18Fixed in Version1.18 
Summary0011609: libextractor 1.17 uses secure_getenv, which is not a POSIX standard function
DescriptionWhen trying to build libextractor 1.17 in Homebrew we found it failing on macOS: https://github.com/Homebrew/homebrew-core/pull/291509

It seems to be using https://www.gnu.org/software/gnulib/manual/html_node/secure_005fgetenv.html which is not usable on systems without glibc.
Additional Information```
  extractor_plugpath.c:482:22: error: call to undeclared function 'secure_getenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    482 | (NULL != (p = GETENV ("LIBEXTRACTOR_PREFIX"))) )
        | ^
  extractor_plugpath.c:474:18: note: expanded from macro 'GETENV'
    474 | #define GETENV secure_getenv
        | ^
  extractor_plugpath.c:482:20: error: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion]
    482 | (NULL != (p = GETENV ("LIBEXTRACTOR_PREFIX"))) )
        | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2 errors generated.
  make[3]: *** [libextractor_la-extractor_plugpath.lo] Error 1
```
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date ModifiedUsernameFieldChange
2026-07-06 09:31SMillerDevNew Issue
2026-07-28 18:38Christian GrothoffAssigned To => Christian Grothoff
2026-07-28 18:38Christian GrothoffStatusnew => assigned
2026-07-28 21:22Christian GrothoffStatusassigned => resolved
2026-07-28 21:22Christian GrothoffResolutionopen => fixed
2026-07-28 21:22Christian GrothoffFixed in Version => 1.18
2026-07-28 21:22Christian GrothoffProduct Version => Git master
2026-07-28 21:22Christian GrothoffTarget Version => 1.18
2026-07-28 21:22Christian GrothoffStatusresolved => closed