[MacPorts] #54124: guile @2.2.2 won't build on PPC Leopard, Mac OS X 10.5.8, because is uses non-existing /lib/cpp as C preprocessor
MacPorts
noreply at macports.org
Sun May 7 09:54:35 UTC 2017
#54124: guile @2.2.2 won't build on PPC Leopard, Mac OS X 10.5.8, because is uses
non-existing /lib/cpp as C preprocessor
------------------------+---------------------
Reporter: ballapete | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Resolution: | Keywords: Leopard
Port: guile |
------------------------+---------------------
Comment (by ballapete):
This leads to another error, as logged in `config.log`:
{{{
configure:29959: /usr/bin/gcc-4.2 -std=gnu11 -c -pipe -Os -arch ppc
-I/opt/local/include conftest.c >&5
cc1: error: unrecognized command line option "-std=gnu11"
configure:29959: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Guile"
| #define PACKAGE_TARNAME "guile"
| #define PACKAGE_VERSION "2.2.2"
| #define PACKAGE_STRING "GNU Guile 2.2.2"
| #define PACKAGE_BUGREPORT "bug-guile at gnu.org"
| #define PACKAGE_URL "http://www.gnu.org/software/guile/"
| #define _ALL_SOURCE 1
| #define _DARWIN_C_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
| #define __STDC_WANT_LIB_EXT2__ 1
| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
| #define _TANDEM_SOURCE 1
| #define _DARWIN_USE_64_BIT_INODE 1
| #define size_t unsigned int
| #define C_ALLOCA 1
| #define STACK_DIRECTION -1
| #define HAVE_ENVIRON_DECL 1
| #define HAVE_WORKING_O_NOATIME 0
| #define HAVE_WORKING_O_NOFOLLOW 0
| #define pid_t int
| #define mode_t int
| #define HAVE_DECL_ALARM 0
| #define STAT_MACROS_BROKEN 1
| #define nlink_t int
| #define restrict /**/
| #define HAVE_DECL_INET_NTOP 0
| #define HAVE_DECL_GETLOGIN 0
| #define ICONV_CONST
| #define WORDS_BIGENDIAN 1
| #define HAVE_DECL_GETC_UNLOCKED 0
| #define MALLOC_0_IS_NONNULL 0
| #define PROMOTED_MODE_T mode_t
| #ifndef __cplusplus
| #define inline
| #endif
| #define mbstate_t int
| #define ssize_t int
| #define HAVE_DECL_SETENV 0
| #define BITSIZEOF_PTRDIFF_T 0
| #define BITSIZEOF_SIZE_T 0
| #define BITSIZEOF_SIG_ATOMIC_T 0
| #define BITSIZEOF_WCHAR_T 0
| #define BITSIZEOF_WINT_T 0
| #define PTRDIFF_T_SUFFIX
| #define SIZE_T_SUFFIX
| #define SIG_ATOMIC_T_SUFFIX
| #define WCHAR_T_SUFFIX
| #define WINT_T_SUFFIX
| #define TM_IN_SYS_TIME 1
| #define HAVE_DECL_TZNAME 0
| #define HAVE_DECL_VSNPRINTF 0
| #define HAVE_DECL_SNPRINTF 0
| #define HAVE_DECL_STRDUP 0
| #define HAVE_DECL_UNSETENV 0
| #define intmax_t long
| #define HAVE_DECL__SNPRINTF 0
| #define GNULIB_TEST_ACCEPT 1
| #define GNULIB_TEST_ACCEPT4 1
| #define GNULIB_TEST_BIND 1
| #define GNULIB_CANONICALIZE_LGPL 1
| #define GNULIB_TEST_CANONICALIZE_FILE_NAME 1
| #define GNULIB_TEST_REALPATH 1
| #define GNULIB_TEST_CEIL 1
| #define GNULIB_TEST_CLOSE 1
| #define GNULIB_TEST_CONNECT 1
| #define GNULIB_TEST_COPYSIGN 1
| #define HAVE_DECL_DIRFD 0
| #define GNULIB_TEST_DIRFD 1
| #define GNULIB_TEST_DUPLOCALE 1
| #define GNULIB_TEST_ENVIRON 1
| #define GNULIB_TEST_FLOOR 1
| #define GNULIB_TEST_FREXP 1
| #define GNULIB_TEST_FSTAT 1
| #define GNULIB_TEST_FSYNC 1
| #define __func__ "<unknown function>"
| #define HAVE_DECL_GAI_STRERROR 0
| #define HAVE_DECL_GETADDRINFO 0
| #define HAVE_DECL_FREEADDRINFO 0
| #define HAVE_DECL_GETNAMEINFO 0
| #define GNULIB_TEST_GETADDRINFO 1
| #define GNULIB_TEST_GETLOGIN 1
| #define GNULIB_TEST_GETPEERNAME 1
| #define GNULIB_TEST_GETSOCKNAME 1
| #define GNULIB_TEST_GETSOCKOPT 1
| #define GETTIMEOFDAY_TIMEZONE void
| #define GNULIB_TEST_GETTIMEOFDAY 1
| #define HAVE_DECL_INET_NTOP 0
| #define HAVE_DECL_INET_PTON 0
| #define HAVE_DECL_ISFINITE 0
| #define GNULIB_TEST_ISFINITE 1
| #define HAVE_DECL_ISINF 0
| #define GNULIB_TEST_ISINF 1
| #define GNULIB_TEST_ISNAN 1
| #define GNULIB_TEST_ISNAND 1
| #define GNULIB_TEST_ISNANF 1
| #define GNULIB_TEST_ISNANL 1
| #define HAVE_VISIBILITY 0
| #define GNULIB_TEST_LINK 1
| #define GNULIB_TEST_LISTEN 1
| #define GNULIB_TEST_LOG1P 1
| #define GNULIB_TEST_LSTAT 1
| #define HAVE_MALLOC_GNU 0
| #define GNULIB_MALLOC_GNU 1
| #define GNULIB_TEST_MALLOC_POSIX 1
| #define FUNC_MKDIR_DOT_BUG 1
| #define GNULIB_MKOSTEMP 1
| #define GNULIB_TEST_MKOSTEMP 1
| #define GNULIB_TEST_NL_LANGINFO 1
| #define OPEN_TRAILING_SLASH_BUG 1
| #define GNULIB_TEST_OPEN 1
| #define GNULIB_TEST_PIPE 1
| #define GNULIB_TEST_PIPE2 1
| #define GNULIB_TEST_POLL 1
| #define HAVE_DECL__PUTENV 0
| #define GNULIB_TEST_PUTENV 1
| #define GNULIB_TEST_READ 1
| #define GNULIB_TEST_READLINK 1
| #define GNULIB_TEST_RECV 1
| #define GNULIB_TEST_RECVFROM 1
| #define _REGEX_INCLUDE_LIMITS_H 1
| #define _REGEX_LARGE_OFFSETS 1
| #define re_syntax_options rpl_re_syntax_options
| #define re_set_syntax rpl_re_set_syntax
| #define re_compile_pattern rpl_re_compile_pattern
| #define re_compile_fastmap rpl_re_compile_fastmap
| #define re_search rpl_re_search
| #define re_search_2 rpl_re_search_2
| #define re_match rpl_re_match
| #define re_match_2 rpl_re_match_2
| #define re_set_registers rpl_re_set_registers
| #define re_comp rpl_re_comp
| #define re_exec rpl_re_exec
| #define regcomp rpl_regcomp
| #define regexec rpl_regexec
| #define regerror rpl_regerror
| #define regfree rpl_regfree
| #define HAVE_DECL_ISBLANK 0
| #define RENAME_TRAILING_SLASH_DEST_BUG 1
| #define RENAME_TRAILING_SLASH_SOURCE_BUG 1
| #define RENAME_DEST_EXISTS_BUG 1
| #define GNULIB_TEST_RENAME 1
| #define GNULIB_TEST_RMDIR 1
| #define GNULIB_TEST_SELECT 1
| #define GNULIB_TEST_SEND 1
| #define GNULIB_TEST_SENDTO 1
| #define GNULIB_TEST_SETENV 1
| #define GNULIB_TEST_SETSOCKOPT 1
| #define GNULIB_TEST_SHUTDOWN 1
| #define GNULIB_TEST_SOCKET 1
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <sys/socket.h>
|
| int getpeername (int, void *, unsigned long int *);
| int
| main ()
| {
| unsigned long int len;
| getpeername (0, 0, &len);
| ;
| return 0;
| }
configure:29971: error: Cannot find a type to use in place of socklen_t
}}}
`socklen_t` is #defined in `/usr/include/sys/socket.h`:
{{{
#define _SOCKLEN_T
typedef __darwin_socklen_t socklen_t;
}}}
The variable type `__darwin_socklen_t` is #defined in
`/usr/include/ppc/_types.h`:
{{{
typedef __uint32_t __darwin_socklen_t;
}}}
I think the type `__uint32_t` needs to be #defined as `uint32_t`…
--
Ticket URL: <https://trac.macports.org/ticket/54124#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list