venture37

snprintf in opensmtpd

Feb 3rd, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. OpenSMTPD has been configured with the following options:
  2. User binaries: /usr/local/bin
  3. System binaries: /usr/local/sbin
  4. Configuration files: /usr/local/etc
  5. mail.local program: /usr/local/libexec/opensmtpd/mail.local
  6. encrypt program: /usr/local/libexec/opensmtpd/encrypt
  7. Manual pages: /usr/local/share/man/manX
  8. smtpd.sock dir: /var/run
  9. Privilege separation chroot path: /var/empty
  10. Manpage format: doc
  11. PAM support: no
  12. BSD Auth support: no
  13.  
  14. Host: x86_64-apple-darwin15.3.0
  15. Compiler: gcc
  16. Compiler flags: -g -O2 -Qunused-arguments -Wunknown-warning-option -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset
  17. Preprocessor flags: -I/Users/sme/pkg/include
  18. Linker flags: -L/Users/sme/pkg/lib
  19. Libraries: -lasr -levent -lcrypto -lssl -lresolv -lz
  20. DB Libraries:
  21.  
  22. 1059 % make
  23. /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
  24. Making all in openbsd-compat
  25. gcc -DHAVE_CONFIG_H -I. -I.. -I../smtpd -I../openbsd-compat -I/Users/sme/pkg/include -g -O2 -Qunused-arguments -Wunknown-warning-option -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -c -o arc4random.o arc4random.c
  26. In file included from arc4random.c:27:
  27. In file included from ./includes.h:77:
  28. ./openbsd-compat.h:152:5: warning: incompatible redeclaration of library function 'snprintf' [-Wincompatible-library-redeclaration]
  29. int snprintf(char *, size_t, SNPRINTF_CONST char *, ...);
  30. ^
  31. ./openbsd-compat.h:152:5: note: 'snprintf' is a builtin with type 'int (char *, unsigned long, const char *, ...)'
  32. 1 warning generated.
  33. gcc -DHAVE_CONFIG_H -I. -I.. -I../smtpd -I../openbsd-compat -I/Users/sme/pkg/include -g -O2 -Qunused-arguments -Wunknown-warning-option -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -c -o base64.o base64.c
  34. In file included from base64.c:47:
  35. In file included from ./includes.h:77:
  36. ./openbsd-compat.h:152:5: warning: incompatible redeclaration of library function 'snprintf' [-Wincompatible-library-redeclaration]
  37. int snprintf(char *, size_t, SNPRINTF_CONST char *, ...);
  38. ^
  39. ./openbsd-compat.h:152:5: note: 'snprintf' is a builtin with type 'int (char *, unsigned long, const char *, ...)'
  40. In file included from base64.c:58:
  41. /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/stdio.h:421:6: error:
  42. conflicting types for 'snprintf'
  43. int snprintf(char * __restrict, size_t, const char * __restrict, ...) __printflike(3, 4);
  44. ^
  45. ./openbsd-compat.h:152:5: note: previous declaration is here
  46. int snprintf(char *, size_t, SNPRINTF_CONST char *, ...);
  47. ^
  48. 1 warning and 1 error generated.
  49. make[2]: *** [base64.o] Error 1
  50. make[1]: *** [all-recursive] Error 1
  51. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment