tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Build on OS X host broken by recent mandoc changes



A week ago, I could build on:

	Darwin talon.local 13.4.0 Darwin Kernel Version 13.4.0: Wed Mar 18
16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64 x86_64

Today, I can't:

#   compile  mandoc/main.lo
cc -O -DOSNAME=\"NetBSD\ 7.99\" -DHAVE_CONFIG_H -I. -no-cpp-precomp
-I/Volumes/NB/current-fix/obj/tooldir.Darwin-13.4.0-x86_64/include/compat
-I/Volumes/NB/current-fix/tools/compat -DHAVE_NBTOOL_CONFIG_H=1
-D_FILE_OFFSET_BITS=64 -c -o main.lo.o
/Volumes/NB/current-fix/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/main.c
In file included from
/Volumes/NB/current-fix/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/main.c:19:
./config.h:59:17: error: expected parameter declarator
extern  size_t    strlcat(char *, const char *, size_t);
                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_string.h:111:44:
note: 
      expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_common.h:39:62:
note: 
      expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_common.h:30:32:
note: 
      expanded from macro '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
In file included from
/Volumes/NB/current-fix/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/main.c:19:
./config.h:59:17: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_string.h:111:44:
note: 
      expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_common.h:39:62:
note: 
      expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_common.h:30:32:
note: 
      expanded from macro '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
./config.h:59:17: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_string.h:111:44:
note: 
      expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_common.h:39:53:
note: 
      expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                                                    ^
In file included from
/Volumes/NB/current-fix/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/main.c:19:
./config.h:59:17: warning: type specifier missing, defaults to 'int'
      [-Wimplicit-int]
extern  size_t    strlcat(char *, const char *, size_t);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_string.h:111:44:
note: 
      expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_common.h:39:31:
note: 
      expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                              ^~~~~~~~~~~~~~~~~~~~~
In file included from
/Volumes/NB/current-fix/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/main.c:19:
./config.h:59:17: error: conflicting types for '__builtin___strlcat_chk'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_string.h:111:3:
note: 
      expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
./config.h:59:17: note: '__builtin___strlcat_chk' is a builtin with type
      'unsigned long (char *, const char *, unsigned long, unsigned long)'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_string.h:111:3:
note: 
      expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
In file included from
/Volumes/NB/current-fix/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/main.c:19:
./config.h:60:17: error: expected parameter declarator
extern  size_t    strlcpy(char *, const char *, size_t);
                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_string.h:105:44:
note: 
      expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_common.h:39:62:
note: 
      expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_common.h:30:32:
note: 
      expanded from macro '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
In file included from
/Volumes/NB/current-fix/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/main.c:19:
./config.h:60:17: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_string.h:105:44:
note: 
      expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_common.h:39:62:
note: 
      expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_common.h:30:32:
note: 
      expanded from macro '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
./config.h:60:17: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_string.h:105:44:
note: 
      expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_common.h:39:53:
note: 
      expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                                                    ^
In file included from
/Volumes/NB/current-fix/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/main.c:19:
./config.h:60:17: warning: type specifier missing, defaults to 'int'
      [-Wimplicit-int]
extern  size_t    strlcpy(char *, const char *, size_t);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_string.h:105:44:
note: 
      expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_common.h:39:31:
note: 
      expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
                              ^~~~~~~~~~~~~~~~~~~~~
In file included from
/Volumes/NB/current-fix/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/main.c:19:
./config.h:60:17: error: conflicting types for '__builtin___strlcpy_chk'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_string.h:105:3:
note: 
      expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
  ^
./config.h:60:17: note: '__builtin___strlcpy_chk' is a builtin with type
      'unsigned long (char *, const char *, unsigned long, unsigned long)'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/secure/_string.h:105:3:
note: 
      expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
  ^
2 warnings and 6 errors generated.

*** Failed target:  main.lo
*** Failed command: cc -O -DOSNAME=\"NetBSD\ 7.99\" -DHAVE_CONFIG_H -I.
-no-cpp-precomp
-I/Volumes/NB/current-fix/obj/tooldir.Darwin-13.4.0-x86_64/include/compat
-I/Volumes/NB/current-fix/tools/compat -DHAVE_NBTOOL_CONFIG_H=1
-D_FILE_OFFSET_BITS=64 -c -o main.lo.o
/Volumes/NB/current-fix/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/main.c
*** Error code 1

Stop.
nbmake[3]: stopped in /Volumes/NB/current-fix/tools/mandoc

*** Failed target:  dependall
*** Failed command: cd "/Volumes/NB/current-fix/tools/mandoc";
/Volumes/NB/current-fix/obj/tooldir.Darwin-13.4.0-x86_64/bin/nbmake realall
*** Error code 1

Stop.
nbmake[2]: stopped in /Volumes/NB/current-fix/tools/mandoc

*** Failed target:  dependall-mandoc
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift;
case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/Volumes/NB/current-fix/tools" ;; *) this="${dir}/";
real="/Volumes/NB/current-fix/tools/${dir}" ;; esac; show=${this:-.}; echo
"${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/Volumes/NB/current-fix/obj/tooldir.Darwin-13.4.0-x86_64/bin/nbmake
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget mandoc dependall
*** Error code 1

Stop.
nbmake[1]: stopped in /Volumes/NB/current-fix/tools

*** Failed target:  build_install
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift;
case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/Volumes/NB/current-fix/tools" ;; *) this="${dir}/";
real="/Volumes/NB/current-fix/tools/${dir}" ;; esac; show=${this:-.}; echo
"${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/Volumes/NB/current-fix/obj/tooldir.Darwin-13.4.0-x86_64/bin/nbmake
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall-config
dependall-groff dependall-mandoc
*** Error code 1

Stop.
nbmake: stopped in /Volumes/NB/current-fix/tools

ERROR: Failed to make build_install in "tools"
*** BUILD ABORTED ***



Home | Main Index | Thread Index | Old Index