Page MenuHomePhabricator

Enlightenment complains pam.h not found
Open, Pending on user inputPublic

Description

I am doing a meson build from git and I am getting the below

Has header "security/pam_appl.h": NO

meson.build:200:6: ERROR: Problem encountered: PAM is not disabled and not found on non-free+open BSD platforms

The following is what I am seeing in the logs

Build started at 2018-07-28T00:48:45.893398
Main binary: /usr/bin/python3
Python system: Linux
The Meson build system
Version: 0.47.1
Source dir: /home/jaquilina/Enlightenment/enlightenment
Build dir: /home/jaquilina/Enlightenment/enlightenment/build
Build type: native build
Project name: enlightenment
Project version: 0.22.99
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc /home/jaquilina/Enlightenment/enlightenment/build/meson-private/sanitycheckc.c -o /home/jaquilina/Enlightenment/enlightenment/build/meson-private/sanitycheckc.exe
Sanity check compile stdout:


Sanity check compile stderr:


Running test binary command: /home/jaquilina/Enlightenment/enlightenment/build/meson-private/sanitycheckc.exe
Native C compiler: cc (gcc 7.3.1 "cc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-6)")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Running command: /home/jaquilina/Enlightenment/enlightenment/meson/clean_check.sh

  • stdout ---
  • stderr ---

Program git found: YES (/bin/git)
Running command: /bin/git rev-list --count HEAD

  • stdout ---

23412

  • stderr ---

Running compile:
Working directory: /tmp/tmpedecv1co
Command line: cc /tmp/tmpedecv1co/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpedecv1co/output.obj -O0 -Wall

Code:
int i;

Compiler stdout:

Compiler stderr:

Compiler for C supports arguments -Wall: YES
Running compile:
Working directory: /tmp/tmpoe8rgug1
Command line: cc /tmp/tmpoe8rgug1/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpoe8rgug1/output.obj -O0 -W

Code:
int i;

Compiler stdout:

Compiler stderr:

Compiler for C supports arguments -W: YES
Running compile:
Working directory: /tmp/tmp_i3jcna7
Command line: cc /tmp/tmp_i3jcna7/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmp_i3jcna7/output.obj -O0 -Wpointer-arith

Code:
int i;

Compiler stdout:

Compiler stderr:

Compiler for C supports arguments -Wpointer-arith: YES
Running compile:
Working directory: /tmp/tmpb73iyv_g
Command line: cc /tmp/tmpb73iyv_g/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpb73iyv_g/output.obj -O0 -Wshadow

Code:
int i;

Compiler stdout:

Compiler stderr:

Compiler for C supports arguments -Wshadow: YES
Running compile:
Working directory: /tmp/tmpw3nk44_p
Command line: cc /tmp/tmpw3nk44_p/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpw3nk44_p/output.obj -O0 -Wno-missing-field-initializers -Wmissing-field-initializers

Code:
int i;

Compiler stdout:

Compiler stderr:

Compiler for C supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES
Running compile:
Working directory: /tmp/tmpma57sr8w
Command line: cc /tmp/tmpma57sr8w/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpma57sr8w/output.obj -O0 -Wfloat-equal

Code:
int i;

Compiler stdout:

Compiler stderr:

Compiler for C supports arguments -Wfloat-equal: YES
Running compile:
Working directory: /tmp/tmpd8n0faha
Command line: cc /tmp/tmpd8n0faha/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpd8n0faha/output.obj -O0 -Wuninitialized

Code:
int i;

Compiler stdout:

Compiler stderr:

Compiler for C supports arguments -Wuninitialized: YES
Running compile:
Working directory: /tmp/tmp2f5y5pti
Command line: cc /tmp/tmp2f5y5pti/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmp2f5y5pti/output.obj -O0 -Wundef

Code:
int i;

Compiler stdout:

Compiler stderr:

Compiler for C supports arguments -Wundef: YES
Running compile:
Working directory: /tmp/tmpyai7b4
Command line: cc /tmp/tmpyai7
b4/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpyai7__b4/output.obj -O0 -Wcast-align

Code:
int i;

Compiler stdout:

Compiler stderr:

Compiler for C supports arguments -Wcast-align: YES
Running compile:
Working directory: /tmp/tmpjvpratq3
Command line: cc /tmp/tmpjvpratq3/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpjvpratq3/output.obj -O0 -Wformat=2

Code:
int i;

Compiler stdout:

Compiler stderr:

Compiler for C supports arguments -Wformat=2: YES
Running compile:
Working directory: /tmp/tmp4oetgs25
Command line: cc /tmp/tmp4oetgs25/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmp4oetgs25/output.obj -O0 -Wno-format-y2k -Wformat-y2k

Code:
int i;

Compiler stdout:

Compiler stderr:
cc1: warning: -Wformat-y2k ignored without -Wformat [-Wformat-y2k]

Compiler for C supports arguments -Wno-format-y2k -Wformat-y2k: YES
Running compile:
Working directory: /tmp/tmp9708jir1
Command line: cc /tmp/tmp9708jir1/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmp9708jir1/output.exe -O0 -Wl,--start-group -lintl -Wl,--end-group

Code:
int main(int argc, char **argv) { return 0; }
Compiler stdout:

Compiler stderr:
/bin/ld: cannot find -lintl
collect2: error: ld returned 1 exit status

Library intl found: NO
Running compile:
Working directory: /tmp/tmp3fo5pxcp
Command line: cc /tmp/tmp3fo5pxcp/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmp3fo5pxcp/output.obj -O0 -std=gnu99

Code:

#include <features.h>
int main () {
    /* If it's not defined as a macro, try to use as a symbol */
    #ifndef __UCLIBC__
        __UCLIBC__;
    #endif
}

Compiler stdout:

Compiler stderr:
/tmp/tmp3fo5pxcp/testfile.c: In function ‘main’:
/tmp/tmp3fo5pxcp/testfile.c:6:17: error: ‘UCLIBC’ undeclared (first use in this function); did you mean ‘GLIBC’?

__UCLIBC__;
^~~~~~~~~~
__GLIBC__

/tmp/tmp3fo5pxcp/testfile.c:6:17: note: each undeclared identifier is reported only once for each function it appears in

Header <features.h> has symbol "UCLIBC": NO
Running compile:
Working directory: /tmp/tmpsufdy4jb
Command line: cc /tmp/tmpsufdy4jb/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmpsufdy4jb/output.obj -O0 -std=gnu99

Code:

#include <features.h>
int main () {
    /* If it's not defined as a macro, try to use as a symbol */
    #ifndef __dietlibc__
        __dietlibc__;
    #endif
}

Compiler stdout:

Compiler stderr:
/tmp/tmpsufdy4jb/testfile.c: In function ‘main’:
/tmp/tmpsufdy4jb/testfile.c:6:17: error: ‘dietlibc’ undeclared (first use in this function); did you mean ‘__divtc3’?

__dietlibc__;
^~~~~~~~~~~~
__divtc3

/tmp/tmpsufdy4jb/testfile.c:6:17: note: each undeclared identifier is reported only once for each function it appears in

Header <features.h> has symbol "dietlibc": NO
Running compile:
Working directory: /tmp/tmp353jf7ok
Command line: cc /tmp/tmp353jf7ok/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmp353jf7ok/output.exe -O0 -std=gnu99

Code:

#define setenv meson_disable_define_of_setenv

#include <limits.h>
#undef setenv

#ifdef __cplusplus
extern "C"
#endif
char setenv ();

#if defined __stub_setenv || defined __stub___setenv
fail fail fail this function is not going to work
#endif

int main () {
  return setenv ();
}

Compiler stdout:

Compiler stderr:

Checking for function "setenv" : YES
Running compile:
Working directory: /tmp/tmpfxyf76oi
Command line: cc /tmp/tmpfxyf76oi/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpfxyf76oi/output.exe -O0 -std=gnu99

Code:

#define unsetenv meson_disable_define_of_unsetenv

#include <limits.h>
#undef unsetenv

#ifdef __cplusplus
extern "C"
#endif
char unsetenv ();

#if defined __stub_unsetenv || defined __stub___unsetenv
fail fail fail this function is not going to work
#endif

int main () {
  return unsetenv ();
}

Compiler stdout:

Compiler stderr:

Checking for function "unsetenv" : YES
Running compile:
Working directory: /tmp/tmp3c3os62c
Command line: cc /tmp/tmp3c3os62c/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmp3c3os62c/output.exe -O0 -std=gnu99

Code:

#define clearenv meson_disable_define_of_clearenv

#include <limits.h>
#undef clearenv

#ifdef __cplusplus
extern "C"
#endif
char clearenv ();

#if defined __stub_clearenv || defined __stub___clearenv
fail fail fail this function is not going to work
#endif

int main () {
  return clearenv ();
}

Compiler stdout:

Compiler stderr:

Checking for function "clearenv" : YES
Running compile:
Working directory: /tmp/tmp2xb6lfp1
Command line: cc /tmp/tmp2xb6lfp1/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -E -P -O0 -std=gnu99

Code:

#ifdef __has_include
 #if !__has_include("features.h")
  #error "Header 'features.h' could not be found"
 #endif
#else
 #include <features.h>
#endif

Compiler stdout:

Compiler stderr:

Has header "features.h": YES
Running compile:
Working directory: /tmp/tmpxvsculr0
Command line: cc /tmp/tmpxvsculr0/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -E -P -O0 -std=gnu99

Code:

#ifdef __has_include
 #if !__has_include("sys/ptrace.h")
  #error "Header 'sys/ptrace.h' could not be found"
 #endif
#else
 #include <sys/ptrace.h>
#endif

Compiler stdout:

Compiler stderr:

Has header "sys/ptrace.h": YES
Running compile:
Working directory: /tmp/tmpziazhsnk
Command line: cc /tmp/tmpziazhsnk/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -E -P -O0 -std=gnu99

Code:

#ifdef __has_include
 #if !__has_include("arpa/inet.h")
  #error "Header 'arpa/inet.h' could not be found"
 #endif
#else
 #include <arpa/inet.h>
#endif

Compiler stdout:

Compiler stderr:

Has header "arpa/inet.h": YES
Running compile:
Working directory: /tmp/tmptplo3fch
Command line: cc /tmp/tmptplo3fch/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -E -P -O0 -std=gnu99

Code:

#ifdef __has_include
 #if !__has_include("netinet/in.h")
  #error "Header 'netinet/in.h' could not be found"
 #endif
#else
 #include <netinet/in.h>
#endif

Compiler stdout:

Compiler stderr:

Has header "netinet/in.h": YES
Running compile:
Working directory: /tmp/tmpbo626xu6
Command line: cc /tmp/tmpbo626xu6/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -E -P -O0 -std=gnu99

Code:

#ifdef __has_include
 #if !__has_include("execinfo.h")
  #error "Header 'execinfo.h' could not be found"
 #endif
#else
 #include <execinfo.h>
#endif

Compiler stdout:

Compiler stderr:

Has header "execinfo.h": YES
Running compile:
Working directory: /tmp/tmpx22c_lpb
Command line: cc /tmp/tmpx22c_lpb/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -E -P -O0 -std=gnu99

Code:

#ifdef __has_include
 #if !__has_include("fnmatch.h")
  #error "Header 'fnmatch.h' could not be found"
 #endif
#else
 #include <fnmatch.h>
#endif

Compiler stdout:

Compiler stderr:

Has header "fnmatch.h": YES
Running compile:
Working directory: /tmp/tmptiank8j5
Command line: cc /tmp/tmptiank8j5/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmptiank8j5/output.exe -O0 -std=gnu99

Code:

#define fnmatch meson_disable_define_of_fnmatch

#include <limits.h>
#undef fnmatch

#ifdef __cplusplus
extern "C"
#endif
char fnmatch ();

#if defined __stub_fnmatch || defined __stub___fnmatch
fail fail fail this function is not going to work
#endif

int main () {
  return fnmatch ();
}

Compiler stdout:

Compiler stderr:

Checking for function "fnmatch" : YES
Running compile:
Working directory: /tmp/tmpqxd7oqx_
Command line: cc -I/System/Library/Frameworks/CoreFoundation.framework/Headers /tmp/tmpqxd7oqx_/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -E -P -O0 -std=gnu99

Code:

#ifdef __has_include
 #if !__has_include("CFBase.h")
  #error "Header 'CFBase.h' could not be found"
 #endif
#else
 #include <CFBase.h>
#endif

Compiler stdout:

Compiler stderr:
/tmp/tmpqxd7oqx_/testfile.c:4:12: error: #error "Header 'CFBase.h' could not be found"

#error "Header 'CFBase.h' could not be found"
 ^~~~~

Has header "CFBase.h": NO
Running compile:
Working directory: /tmp/tmpx8otc5o3
Command line: cc /tmp/tmpx8otc5o3/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -E -P -O0 -std=gnu99

Code:

#ifdef __has_include
 #if !__has_include("security/pam_appl.h")
  #error "Header 'security/pam_appl.h' could not be found"
 #endif
#else
 #include <security/pam_appl.h>
#endif

Compiler stdout:

Compiler stderr:
/tmp/tmpx8otc5o3/testfile.c:4:12: error: #error "Header 'security/pam_appl.h' could not be found"

#error "Header 'security/pam_appl.h' could not be found"
 ^~~~~

Has header "security/pam_appl.h": NO

meson.build:200:6: ERROR: Problem encountered: PAM is not disabled and not found on non-free+open BSD platforms

Can someone let me know what I am doing wrong or if this is actually a bug.

If this is a bug can someone guide me on how I can fix it. I am on fedora 27

eagles051387 triaged this task as Pending on user input priority.