Advertisement
Guest User

yubico-pam compile-time errors

a guest
Aug 28th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.77 KB | None | 0 0
  1. alex@openindiana:~/yubico-pam$ ./configure --without-cr --without-ldap
  2. checking for a BSD-compatible install... /usr/gnu/bin/install -c
  3. checking whether build environment is sane... yes
  4. checking for a thread-safe mkdir -p... /usr/gnu/bin/mkdir -p
  5. checking for gawk... gawk
  6. checking whether make sets $(MAKE)... yes
  7. checking whether make supports nested variables... yes
  8. checking whether make supports nested variables... (cached) yes
  9. checking for style of include used by make... GNU
  10. checking for gcc... gcc
  11. checking whether the C compiler works... yes
  12. checking for C compiler default output file name... a.out
  13. checking for suffix of executables...
  14. checking whether we are cross compiling... no
  15. checking for suffix of object files... o
  16. checking whether we are using the GNU C compiler... yes
  17. checking whether gcc accepts -g... yes
  18. checking for gcc option to accept ISO C89... none needed
  19. checking whether gcc understands -c and -o together... yes
  20. checking dependency style of gcc... gcc3
  21. checking for ar... ar
  22. checking the archiver (ar) interface... ar
  23. checking build system type... i386-pc-solaris2.11
  24. checking host system type... i386-pc-solaris2.11
  25. checking how to print strings... print -r
  26. checking for a sed that does not truncate output... /usr/gnu/bin/sed
  27. checking for grep that handles long lines and -e... /usr/gnu/bin/grep
  28. checking for egrep... /usr/gnu/bin/grep -E
  29. checking for fgrep... /usr/gnu/bin/grep -F
  30. checking for ld used by gcc... /usr/bin/ld
  31. checking if the linker (/usr/bin/ld) is GNU ld... no
  32. checking for BSD- or MS-compatible name lister (nm)... /usr/gnu/bin/nm -B
  33. checking the name lister (/usr/gnu/bin/nm -B) interface... BSD nm
  34. checking whether ln -s works... yes
  35. checking the maximum length of command line arguments... 786240
  36. checking whether the shell understands some XSI constructs... yes
  37. checking whether the shell understands "+="... yes
  38. checking how to convert i386-pc-solaris2.11 file names to i386-pc-solaris2.11 format... func_convert_file_noop
  39. checking how to convert i386-pc-solaris2.11 file names to toolchain format... func_convert_file_noop
  40. checking for /usr/bin/ld option to reload object files... -r
  41. checking for objdump... objdump
  42. checking how to recognize dependent libraries... pass_all
  43. checking for dlltool... dlltool
  44. checking how to associate runtime and link libraries... print -r --
  45. checking for archiver @FILE support... @
  46. checking for strip... strip
  47. checking for ranlib... ranlib
  48. checking command to parse /usr/gnu/bin/nm -B output from gcc object... ok
  49. checking for sysroot... no
  50. checking for mt... mt
  51. checking if mt is a manifest tool... no
  52. checking how to run the C preprocessor... gcc -E
  53. checking for ANSI C header files... yes
  54. checking for sys/types.h... yes
  55. checking for sys/stat.h... yes
  56. checking for stdlib.h... yes
  57. checking for string.h... yes
  58. checking for memory.h... yes
  59. checking for strings.h... yes
  60. checking for inttypes.h... yes
  61. checking for stdint.h... yes
  62. checking for unistd.h... yes
  63. checking for dlfcn.h... yes
  64. checking for objdir... .libs
  65. checking if gcc supports -fno-rtti -fno-exceptions... no
  66. checking for gcc option to produce PIC... -fPIC -DPIC
  67. checking if gcc PIC flag -fPIC -DPIC works... yes
  68. checking if gcc static flag -static works... no
  69. checking if gcc supports -c -o file.o... yes
  70. checking if gcc supports -c -o file.o... (cached) yes
  71. checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
  72. checking whether -lc should be explicitly linked in... no
  73. checking dynamic linker characteristics... solaris2.11 ld.so
  74. checking how to hardcode library paths into programs... immediate
  75. checking whether stripping libraries is possible... no
  76. checking if libtool supports shared libraries... yes
  77. checking whether to build shared libraries... yes
  78. checking whether to build static libraries... no
  79. checking security/pam_appl.h usability... yes
  80. checking security/pam_appl.h presence... yes
  81. checking for security/pam_appl.h... yes
  82. checking for security/pam_modules.h... yes
  83. checking for security/_pam_macros.h... no
  84. checking for security/pam_modutil.h... no
  85. checking for pam_start in -lpam... yes
  86. checking for library containing pam_modutil_drop_priv... no
  87. checking for ld used by GCC... /usr/bin/ld
  88. checking if the linker (/usr/bin/ld) is GNU ld... no
  89. checking for shared library run path origin... done
  90. checking for 64-bit host... no
  91. checking for libykclient... yes
  92. checking how to link with libykclient... /usr/local/lib/libykclient.so -lcurl -R/usr/local/lib
  93. checking for libyubikey... yes
  94. checking how to link with libyubikey... /usr/local/lib/libyubikey.so -R/usr/local/lib
  95. configure: PAM installation path $(exec_prefix)/lib/security
  96. checking that generated files are newer than configure... done
  97. configure: creating ./config.status
  98. config.status: creating Makefile
  99. config.status: creating tests/Makefile
  100. config.status: executing depfiles commands
  101. config.status: executing libtool commands
  102. configure: Summary of build options:
  103.  
  104. Version: 2.24
  105. Host type: i386-pc-solaris2.11
  106. Install prefix: /usr/local
  107. Compiler: gcc
  108. Library types: Shared=yes, Static=no
  109. LDAP: no
  110. Challenge-Response: no
  111.  
  112. alex@openindiana:~/yubico-pam$ gmake
  113. Making all in .
  114. gmake[1]: Entering directory '/home/alex/yubico-pam'
  115. CC drop_privs.lo
  116. CC util.lo
  117. CCLD libpam_util.la
  118. CC pam_yubico.lo
  119. pam_yubico.c: In function 'authorize_user_token':
  120. pam_yubico.c:167:15: error: too many arguments to function 'getpwnam_r'
  121. pwres = getpwnam_r (username, &pass, buf, buflen, &p);
  122. ^
  123. In file included from util.h:39:0,
  124. from pam_yubico.c:44:
  125. /usr/include/pwd.h:167:23: note: declared here
  126. extern struct passwd *getpwnam_r(const char *, struct passwd *, char *, int);
  127. ^
  128. pam_yubico.c:167:13: warning: assignment makes integer from pointer without a cast
  129. pwres = getpwnam_r (username, &pass, buf, buflen, &p);
  130. ^
  131. pam_yubico.c: In function 'pam_sm_authenticate':
  132. pam_yubico.c:855:32: warning: passing argument 2 of 'pam_get_user' from incompatible pointer type
  133. retval = pam_get_user (pamh, &user, NULL);
  134. ^
  135. In file included from drop_privs.h:40:0,
  136. from pam_yubico.c:45:
  137. /usr/include/security/pam_appl.h:225:1: note: expected 'char **' but argument is of type 'const char **'
  138. pam_get_user(
  139. ^
  140. pam_yubico.c:875:49: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
  141. retval = pam_get_item (pamh, PAM_AUTHTOK, (const void **) &password);
  142. ^
  143. In file included from drop_privs.h:40:0,
  144. from pam_yubico.c:45:
  145. /usr/include/security/pam_appl.h:186:1: note: expected 'void **' but argument is of type 'const void **'
  146. pam_get_item(
  147. ^
  148. pam_yubico.c:968:46: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
  149. retval = pam_get_item (pamh, PAM_CONV, (const void **) &conv);
  150. ^
  151. In file included from drop_privs.h:40:0,
  152. from pam_yubico.c:45:
  153. /usr/include/security/pam_appl.h:186:1: note: expected 'void **' but argument is of type 'const void **'
  154. pam_get_item(
  155. ^
  156. pam_yubico.c:997:35: warning: passing argument 2 of 'conv->conv' from incompatible pointer type
  157. retval = conv->conv (nargs, pmsg, &resp, conv->appdata_ptr);
  158. ^
  159. pam_yubico.c:997:35: note: expected 'struct pam_message **' but argument is of type 'const struct pam_message **'
  160. gmake[1]: *** [Makefile:670: pam_yubico.lo] Error 1
  161. gmake[1]: Leaving directory '/home/alex/yubico-pam'
  162. gmake: *** [Makefile:774: all-recursive] Error 1
  163.  
  164. alex@openindiana:~/yubico-pam$ uname -a
  165. SunOS openindiana 5.11 illumos-2f7f7a6 i86pc i386 i86pc Solaris
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement