Summary: | Build/Linker errors on FreeBSD 11.2 | ||
---|---|---|---|
Product: | Slurm | Reporter: | Joseph Mingrone <jrm> |
Component: | Build System and Packaging | Assignee: | Jacob Jenson <jacob> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | 6 - No support contract | ||
Priority: | --- | CC: | bacon4000, sts |
Version: | 18.08.0 | ||
Hardware: | Other | ||
OS: | Other | ||
Site: | -Other- | Alineos Sites: | --- |
Atos/Eviden Sites: | --- | Confidential Site: | --- |
Coreweave sites: | --- | Cray Sites: | --- |
DS9 clusters: | --- | HPCnow Sites: | --- |
HPE Sites: | --- | IBM Sites: | --- |
NOAA SIte: | --- | NoveTech Sites: | --- |
Nvidia HWinf-CS Sites: | --- | OCF Sites: | --- |
Recursion Pharma Sites: | --- | SFW Sites: | --- |
SNIC sites: | --- | Tzag Elita Sites: | --- |
Linux Distro: | --- | Machine Name: | |
CLE Version: | Version Fixed: | ||
Target Release: | --- | DevPrio: | --- |
Emory-Cloud Sites: | --- | ||
Attachments: | srun_job: Fix FreeBSD build by defining environ and __environ |
Description
Joseph Mingrone
2018-09-29 10:50:44 MDT
Created attachment 7918 [details]
srun_job: Fix FreeBSD build by defining environ and __environ
1. glibc has `extern char **environ;` in <unistd.h>, but hidden behind `#ifdef
__USE_GNU`. Since libc has the `environ` symbol defined, simply defining it
here should work. Guard it behind #ifdef __FreeBSD__ to ensure this does not
cause problems elsewhere.
2. #define __environ environ
While this fixes the build, I am not familiar enough to do sufficient run-time tests. If there are specific tests you recommend, just let me know.
This patch is included in bug 8602 along with several others. *** This ticket has been marked as a duplicate of ticket 8602 *** |