View Issue Details

IDProjectCategoryView StatusLast Update
0011609libextractorbuild systempublic2026-07-28 23:22
ReporterSMillerDev Assigned ToChristian Grothoff  
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 Modified Username Field Change
2026-07-06 11:31 SMillerDev New Issue
2026-07-28 20:38 Christian Grothoff Assigned To => Christian Grothoff
2026-07-28 20:38 Christian Grothoff Status new => assigned
2026-07-28 23:22 Christian Grothoff Status assigned => resolved
2026-07-28 23:22 Christian Grothoff Resolution open => fixed
2026-07-28 23:22 Christian Grothoff Fixed in Version => 1.18
2026-07-28 23:22 Christian Grothoff Product Version => Git master
2026-07-28 23:22 Christian Grothoff Target Version => 1.18
2026-07-28 23:22 Christian Grothoff Status resolved => closed