Hello everyone,
Sorry, it seems my email was sent without body.
I retry now, using plain text instead of HTML and without attaching the .c file.
Marek
From: Marek Jansa
Sent: Wednesday, December 14, 2016 10:45 PM
To: 'samba at lists.samba.org' <samba at lists.samba.org>
Subject: cwrap: pam_wrapper: pam_wrapper.c errors
Hey,
I get source code errors when making pam_wrapper_1.0.2. Am I doing something
wrong, please?
Running on RHEL 6.4.
[root at nlbavltls31 pam_wrapper-1.0.2]# mkdir obj
[root at nlbavltls31 ~]# cd obj
[root at nlbavltls31 obj]# cmake -DCMAKE_INSTALL_PREFIX=/root/pam_wrapper_build
..
-- The C compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Performing Test WITH_FPIC
-- Performing Test WITH_FPIC - Success
-- Performing Test WITH_STACK_PROTECTOR
-- Performing Test WITH_STACK_PROTECTOR - Success
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found PythonInterp: /usr/bin/python (found version "2.6.6")
-- Found PythonLibs: /usr/lib64/libpython2.6.so (found version
"2.6.6")
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for security/pam_appl.h
-- Looking for security/pam_appl.h - not found
-- Looking for security/pam_modules.h
-- Looking for security/pam_modules.h - not found
-- Looking for security/pam_ext.h
-- Looking for security/pam_ext.h - not found
-- Looking for strncpy
-- Looking for strncpy - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for pam_vsyslog
-- Looking for pam_vsyslog - not found
-- Looking for pam_syslog
-- Looking for pam_syslog - not found
-- Checking prototype pam_vprompt for HAVE_PAM_VPROMPT_CONST - False
-- Checking prototype pam_prompt for HAVE_PAM_PROMPT_CONST - False
-- Checking prototype pam_strerror for HAVE_PAM_STRERROR_CONST - False
-- Looking for openpam_set_option in /lib64/libpam.so.0
-- Looking for openpam_set_option in /lib64/libpam.so.0 - not found
-- Performing Test HAVE_GCC_ATOMIC_BUILTINS
-- Performing Test HAVE_GCC_ATOMIC_BUILTINS - Failed
-- Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE - Success
-- Performing Test HAVE_CONSTRUCTOR_ATTRIBUTE
-- Performing Test HAVE_CONSTRUCTOR_ATTRIBUTE - Success
-- Performing Test HAVE_DESTRUCTOR_ATTRIBUTE
-- Performing Test HAVE_DESTRUCTOR_ATTRIBUTE - Success
-- Performing Test HAVE_FUNCTION_ATTRIBUTE_FORMAT
-- Performing Test HAVE_FUNCTION_ATTRIBUTE_FORMAT - Success
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found Doxygen: /usr/bin/doxygen (found version "1.6.1")
-- Found DOXYFILE_IN: /root/pam_wrapper-1.0.2/doc/Doxyfile.in
-- Configuring done
-- Generating done
-- Build files have been written to: /root/pam_wrapper-1.0.2/obj
[root at nlbavltls31 obj]# make
Scanning dependencies of target pam_wrapper
[ 16%] Building C object src/CMakeFiles/pam_wrapper.dir/pam_wrapper.c.o
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:168: error: expected declaration
specifiers or "..." before "pam_handle_t"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:168: warning: "struct
pam_conv" declared inside parameter list
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:168: warning: its scope is only this
definition or declaration, which is probably not what you want
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:170: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:172: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:174: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:176: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:178: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:180: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:182: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:184: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:186: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:188: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:190: error: type defaults to
"int" in declaration of "pam_handle_t"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:190: error: expected ";",
"," or ")" before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:194: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:198: error: type defaults to
"int" in declaration of "pam_handle_t"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:198: error: expected ";",
"," or ")" before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:202: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:209: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:215: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:233: error: expected
specifier-qualifier-list before "__libpam_pam_end"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:233: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:234: error: expected
specifier-qualifier-list before "__libpam_pam_authenticate"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:234: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:235: error: expected
specifier-qualifier-list before "__libpam_pam_chauthtok"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:235: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:236: error: expected
specifier-qualifier-list before "__libpam_pam_acct_mgmt"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:236: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:237: error: expected
specifier-qualifier-list before "__libpam_pam_putenv"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:237: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:238: error: expected
specifier-qualifier-list before "__libpam_pam_getenv"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:238: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:239: error: expected
specifier-qualifier-list before "__libpam_pam_getenvlist"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:239: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:240: error: expected
specifier-qualifier-list before "__libpam_pam_open_session"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:240: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:241: error: expected
specifier-qualifier-list before "__libpam_pam_close_session"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:241: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:242: error: expected
specifier-qualifier-list before "__libpam_pam_setcred"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:242: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:243: error: expected
specifier-qualifier-list before "__libpam_pam_get_item"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:243: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:244: error: expected
specifier-qualifier-list before "__libpam_pam_set_item"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:244: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:245: error: expected
specifier-qualifier-list before "__libpam_pam_get_data"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:245: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:246: error: expected
specifier-qualifier-list before "__libpam_pam_set_data"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:246: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:247: error: expected
specifier-qualifier-list before "__libpam_pam_vprompt"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:247: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:248: error: expected
specifier-qualifier-list before "__libpam_pam_strerror"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:248: error: union has no members
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:353: error: expected declaration
specifiers or "..." before "pam_handle_t"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:353: warning: "struct
pam_conv" declared inside parameter list
/root/pam_wrapper-1.0.2/src/pam_wrapper.c: In function
"libpam_pam_start":
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:360: error: "pamh"
undeclared (first use in this function)
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:360: error: (Each undeclared
identifier is reported only once
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:360: error: for each function it
appears in.)
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:360: error: passing argument 3 of
"pwrap.libpam.symbols._libpam_pam_start.f" from incompatible pointer
type
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:360: note: expected "const struct
pam_conv *" but argument is of type "const struct pam_conv *"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:360: error: too many arguments to
function "pwrap.libpam.symbols._libpam_pam_start.f"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c: At top level:
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:363: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:370: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:377: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:384: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:391: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:398: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:405: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:412: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:419: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:426: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:433: error: type defaults to
"int" in declaration of "pam_handle_t"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:433: error: expected ";",
"," or ")" before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:440: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:447: error: type defaults to
"int" in declaration of "pam_handle_t"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:447: error: expected ";",
"," or ")" before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:458: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:473: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:491: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1031: error: expected declaration
specifiers or "..." before "pam_handle_t"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1031: warning: "struct
pam_conv" declared inside parameter list
/root/pam_wrapper-1.0.2/src/pam_wrapper.c: In function
"pwrap_pam_start":
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1047: error: "pamh"
undeclared (first use in this function)
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1047: error: passing argument 3 of
"libpam_pam_start" from incompatible pointer type
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:350: note: expected "const struct
pam_conv *" but argument is of type "const struct pam_conv *"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1047: error: too many arguments to
function "libpam_pam_start"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c: At top level:
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1055: error: expected declaration
specifiers or "..." before "pam_handle_t"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1055: warning: "struct
pam_conv" declared inside parameter list
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1052: warning: no previous prototype
for "pam_start"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c: In function "pam_start":
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1057: error: "pamh"
undeclared (first use in this function)
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1057: error: passing argument 3 of
"pwrap_pam_start" from incompatible pointer type
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1028: note: expected "const
struct pam_conv *" but argument is of type "const struct pam_conv
*"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1057: error: too many arguments to
function "pwrap_pam_start"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c: At top level:
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1060: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1067: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1072: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1078: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1083: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1089: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1094: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1100: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1105: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1111: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1116: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1122: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1127: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1133: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1138: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1144: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1149: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1155: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1160: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1166: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1190: error: type defaults to
"int" in declaration of "pam_handle_t"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1190: error: expected ";",
"," or ")" before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1264: error: type defaults to
"int" in declaration of "pam_handle_t"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1264: error: expected ";",
"," or ")" before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1269: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1338: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1343: error: type defaults to
"int" in declaration of "pam_handle_t"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1343: error: expected ";",
"," or ")" before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1352: error: type defaults to
"int" in declaration of "pam_handle_t"
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1352: error: expected ";",
"," or ")" before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1359: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1372: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1385: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1407: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1427: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1450: error: expected ")"
before "*" token
/root/pam_wrapper-1.0.2/src/pam_wrapper.c:1470: error: expected ")"
before "*" token
make[2]: *** [src/CMakeFiles/pam_wrapper.dir/pam_wrapper.c.o] Error 1
make[1]: *** [src/CMakeFiles/pam_wrapper.dir/all] Error 2
make: *** [all] Error 2
[root at nlbavltls31 obj]#
Could you help, please?
Thank you!
Kind regards,
http://www.infor.com/services
Marek Jansa | Senior Technical Support Analyst
office: +420 225 660 330
mailto:marek.jansa at infor.com | http://www.infor.com/services
From: samba [mailto:samba-bounces at lists.samba.org] On Behalf Of Marek Jansa
via samba
Sent: Wednesday, December 14, 2016 10:45 PM
To: samba at lists.samba.org
Subject: [Samba] cwrap: pam_wrapper: pam_wrapper.c errors