[MacPorts] #62991: m4 @1.4.19+universal: configure: error: Cannot find a type to use in place of socklen_t

MacPorts noreply at macports.org
Wed Aug 18 22:53:06 UTC 2021


#62991: m4 @1.4.19+universal: configure: error: Cannot find a type to use in place
of socklen_t
---------------------------+--------------------------
  Reporter:  FaradayLight  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  arm64 bigsur
      Port:  m4            |
---------------------------+--------------------------

Comment (by kencu):

 The issue here is that we can't configure both arm64 and intel in one pass
 using dual archs at present, so we'll need to use the muniversal PG to get
 through the configure stage.
 {{{
 configure:57981: checking for socklen_t
 configure:57981: /usr/bin/clang -c -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch arm64
 -arch x86_64 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk conftest.c
 >&5
 In file included from conftest.c:526:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/types.h:81:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/machine/endian.h:35:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/i386/endian.h:99:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/_endian.h:130:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/libkern/_OSByteOrder.h:80:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/libkern/arm/OSByteOrder.h:8:
 In file included from
 /Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/stdint.h:52:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/stdint.h:58:
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/_types/_intmax_t.h:32:25:
 error: cannot combine with previous 'long long' declaration specifier
 typedef __INTMAX_TYPE__ intmax_t;
                         ^
 conftest.c:204:23: note: expanded from macro 'intmax_t'
 #define intmax_t long long
                       ^
 In file included from conftest.c:526:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/types.h:81:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/machine/endian.h:35:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/i386/endian.h:99:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/_endian.h:130:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/libkern/_OSByteOrder.h:80:
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/libkern/arm/OSByteOrder.h:15:1:
 error: redefinition of '_OSSwapInt16'
 _OSSwapInt16(
 ^
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/libkern/i386/_OSByteOrder.h:46:1:
 note: previous definition is here
 _OSSwapInt16(
 ^
 In file included from conftest.c:526:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/types.h:81:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/machine/endian.h:35:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/i386/endian.h:99:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/_endian.h:130:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/libkern/_OSByteOrder.h:80:
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/libkern/arm/OSByteOrder.h:25:1:
 error: redefinition of '_OSSwapInt32'
 _OSSwapInt32(
 ^
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/libkern/i386/_OSByteOrder.h:55:1:
 note: previous definition is here
 _OSSwapInt32(
 ^
 In file included from conftest.c:526:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/types.h:81:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/machine/endian.h:35:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/i386/endian.h:99:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/_endian.h:130:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/libkern/_OSByteOrder.h:80:
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/libkern/arm/OSByteOrder.h:41:1:
 error: redefinition of '_OSSwapInt64'
 _OSSwapInt64(
 ^
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/libkern/i386/_OSByteOrder.h:70:1:
 note: previous definition is here
 _OSSwapInt64(
 ^
 In file included from conftest.c:526:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/types.h:123:
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/_types/_off_t.h:31:33:
 error: cannot combine with previous 'type-name' declaration specifier
 typedef __darwin_off_t          off_t;
                                 ^
 conftest.c:216:20: note: expanded from macro 'off_t'
 #define off_t long int
                    ^
 In file included from conftest.c:526:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/types.h:123:
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/_types/_off_t.h:31:33:
 error: 'long type-name' is invalid
 conftest.c:216:15: note: expanded from macro 'off_t'
 #define off_t long int
               ^
 In file included from conftest.c:526:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/types.h:167:
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/sys/_types/_ssize_t.h:31:33:
 error: cannot combine with previous 'type-name' declaration specifier
 typedef __darwin_ssize_t        ssize_t;
                                 ^
 conftest.c:414:17: note: expanded from macro 'ssize_t'
 #define ssize_t int
                 ^
 7 errors generated.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/62991#comment:35>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list