Closed Fidetro closed 2 years ago
Have you tried to set CFLAGS? ./autogen.sh CFLAGS="-arch x86_64" or if you want a fat binary that works on both architectures: ./autogen.sh CFLAGS="-arch arm64 -arch x86_64"
@nikias Sorry to bother you again,it not worked.
If export PYTHON=python3
,./autogen.sh
it work
However, when I try to ./autogen.sh CFLAGS="-arch x86_64"
compiling x86, the following error occurs.
karimzhang@karimzhangs-MacBook-Pro libplist % ./autogen.sh CFLAGS="-arch x86_64"
glibtoolize: putting auxiliary files in '.'.
glibtoolize: linking file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: linking file 'm4/libtool.m4'
glibtoolize: linking file 'm4/ltoptions.m4'
glibtoolize: linking file 'm4/ltsugar.m4'
glibtoolize: linking file 'm4/ltversion.m4'
glibtoolize: linking file 'm4/lt~obsolete.m4'
configure.ac:23: installing './compile'
configure.ac:6: installing './missing'
cython/Makefile.am: installing './depcomp'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... gcc3
checking whether g++ is available and compiles a program... yes
checking build system type... aarch64-apple-darwin21.1.0
checking host system type... aarch64-apple-darwin21.1.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert aarch64-apple-darwin21.1.0 file names to aarch64-apple-darwin21.1.0 format... func_convert_file_noop
checking how to convert aarch64-apple-darwin21.1.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin21.1.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin21.1.0 dyld
checking how to hardcode library paths into programs... immediate
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for asprintf... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strerror... yes
checking for strndup... yes
checking for stpcpy... yes
checking for vasprintf... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking for timegm... yes
checking for strptime... yes
checking for memmem... yes
checking whether byte ordering is bigendian... no
checking for platform-specific build settings... darwin21.1.0
checking for library containing fmin... none required
checking wether the C compiler supports constructor/destructor attributes... yes
checking for tm_gmtoff in struct tm... yes
checking for tm_zone in struct tm... yes
checking whether python3 version is >= 2.3... yes
checking for python3 version... 3.9
checking for python3 platform... darwin
checking for GNU default python3 prefix... ${prefix}
checking for GNU default python3 exec_prefix... ${exec_prefix}
checking for python3 script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.9/site-packages
checking for python3 extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib/python3.9/site-packages
checking for cython... /opt/homebrew/bin/cython
checking for Cython version... 0.29.26
configure: Cython executable is '/opt/homebrew/bin/cython'
checking for python3.9... /opt/homebrew/bin/python3.9
checking for a version of Python >= '2.1.0'... yes
checking for the distutils Python package... yes
checking for Python include path... -I/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9
checking for Python library path... -L/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib -lpython3.9
checking for Python site-packages path... /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages
checking python extra libraries... -ldl -framework CoreFoundation
checking python extra linking flags... -Wl,-stack_size,1000000 -framework CoreFoundation /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/Python
checking consistency of all components of python development environment... no
configure: error: in `/Users/karimzhang/Desktop/libplist':
configure: error:
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LIBS environment variable.
Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"
============================================================================
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
============================================================================
See `config.log' for more details
config.log
karimzhang@karimzhangs-MacBook-Pro libplist % cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libplist configure 2.2.1, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ ./configure 'CFLAGS=-arch x86_64'
## --------- ##
## Platform. ##
## --------- ##
hostname = karimzhangs-MacBook-Pro.local
uname -m = arm64
uname -r = 21.1.0
uname -s = Darwin
uname -v = Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000
/usr/bin/uname -p = arm
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000
Kernel configured for up to 10 processors.
10 processors are physically available.
10 processors are logically available.
Processor type: arm64e (ARM64E)
Processors active: 0 1 2 3 4 5 6 7 8 9
Primary memory available: 64.00 gigabytes
Default processor set: 578 tasks, 2580 threads, 10 processors
Load average: 2.18, Mach factor: 7.80
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Users/karimzhang/.gem/ruby/3.0.3/bin/
PATH: /opt/homebrew/opt/ruby/bin/
PATH: /usr/local/opt/ruby/bin/
PATH: /usr/local/lib/ruby/gems/3.0.3/bin/
PATH: /opt/homebrew/bin/
PATH: /opt/homebrew/sbin/
PATH: /usr/local/bin/
PATH: /usr/bin/
PATH: /bin/
PATH: /usr/sbin/
PATH: /sbin/
PATH: /Library/Apple/usr/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2976: looking for aux files: config.guess config.sub ltmain.sh compile missing install-sh
configure:2989: trying ./
configure:3018: ./config.guess found
configure:3018: ./config.sub found
configure:3018: ./ltmain.sh found
configure:3018: ./compile found
configure:3018: ./missing found
configure:3000: ./install-sh found
configure:3147: checking for a BSD-compatible install
configure:3220: result: /usr/bin/install -c
configure:3231: checking whether build environment is sane
configure:3286: result: yes
configure:3445: checking for a race-free mkdir -p
configure:3489: result: ./install-sh -c -d
configure:3496: checking for gawk
configure:3531: result: no
configure:3496: checking for mawk
configure:3531: result: no
configure:3496: checking for nawk
configure:3531: result: no
configure:3496: checking for awk
configure:3517: found /usr/bin/awk
configure:3528: result: awk
configure:3539: checking whether make sets $(MAKE)
configure:3562: result: yes
configure:3592: checking whether make supports nested variables
configure:3610: result: yes
configure:3758: checking whether make supports nested variables
configure:3776: result: yes
configure:3864: checking for gcc
configure:3885: found /usr/bin/gcc
configure:3896: result: gcc
configure:4249: checking for C compiler version
configure:4258: gcc --version >&5
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
configure:4269: $? = 0
configure:4258: gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:4269: $? = 0
configure:4258: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:4269: $? = 1
configure:4258: gcc -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:4269: $? = 1
configure:4258: gcc -version >&5
clang: error: unknown argument '-version'; did you mean '--version'?
clang: error: no input files
configure:4269: $? = 1
configure:4289: checking whether the C compiler works
configure:4311: gcc -arch x86_64 conftest.c >&5
configure:4315: $? = 0
configure:4365: result: yes
configure:4368: checking for C compiler default output file name
configure:4370: result: a.out
configure:4376: checking for suffix of executables
configure:4383: gcc -o conftest -arch x86_64 conftest.c >&5
configure:4387: $? = 0
configure:4410: result:
configure:4432: checking whether we are cross compiling
configure:4440: gcc -o conftest -arch x86_64 conftest.c >&5
configure:4444: $? = 0
configure:4451: ./conftest
configure:4455: $? = 0
configure:4470: result: no
configure:4475: checking for suffix of object files
configure:4498: gcc -c -arch x86_64 conftest.c >&5
configure:4502: $? = 0
configure:4524: result: o
configure:4528: checking whether the compiler supports GNU C
configure:4548: gcc -c -arch x86_64 conftest.c >&5
configure:4548: $? = 0
configure:4558: result: yes
configure:4569: checking whether gcc accepts -g
configure:4590: gcc -c -g conftest.c >&5
configure:4590: $? = 0
configure:4634: result: yes
configure:4654: checking for gcc option to enable C11 features
configure:4669: gcc -c -arch x86_64 conftest.c >&5
configure:4669: $? = 0
configure:4687: result: none needed
configure:4803: checking whether gcc understands -c and -o together
configure:4826: gcc -c conftest.c -o conftest2.o
configure:4829: $? = 0
configure:4826: gcc -c conftest.c -o conftest2.o
configure:4829: $? = 0
configure:4841: result: yes
configure:4861: checking whether make supports the include directive
configure:4876: make -f confmf.GNU && cat confinc.out
this is the am__doit target
configure:4879: $? = 0
configure:4898: result: yes (GNU style)
configure:4924: checking dependency style of gcc
configure:5036: result: gcc3
configure:5120: checking for g++
configure:5141: found /usr/bin/g++
configure:5152: result: g++
configure:5179: checking for C++ compiler version
configure:5188: g++ --version >&5
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
configure:5199: $? = 0
configure:5188: g++ -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:5199: $? = 0
configure:5188: g++ -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:5199: $? = 1
configure:5188: g++ -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:5199: $? = 1
configure:5203: checking whether the compiler supports GNU C++
configure:5223: g++ -c conftest.cpp >&5
configure:5223: $? = 0
configure:5233: result: yes
configure:5244: checking whether g++ accepts -g
configure:5265: g++ -c -g conftest.cpp >&5
configure:5265: $? = 0
configure:5309: result: yes
configure:5329: checking for g++ option to enable C++11 features
configure:5344: g++ -c -g -O2 conftest.cpp >&5
conftest.cpp:57:3: error: "Compiler does not advertise C++11 conformance"
# error "Compiler does not advertise C++11 conformance"
^
conftest.cpp:62:3: error: unknown type name 'constexpr'
constexpr int get_val() { return 20; }
^
conftest.cpp:74:17: error: delegating constructors are permitted only in C++11
delegate(): delegate(2354) {}
^~~~~~~~
conftest.cpp:85:26: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
virtual int getval() override final { return this->n * 2; }
^
conftest.cpp:85:35: warning: 'final' keyword is a C++11 extension [-Wc++11-extensions]
virtual int getval() override final { return this->n * 2; }
^
conftest.cpp:92:16: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
nocopy() = default;
^
conftest.cpp:93:29: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
nocopy(const nocopy&) = delete;
^
conftest.cpp:94:41: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
nocopy & operator=(const nocopy&) = delete;
^
conftest.cpp:106:25: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
template <typename V> auto sum(V first) -> V
^
conftest.cpp:106:25: error: 'auto' not allowed in function return type
template <typename V> auto sum(V first) -> V
^~~~
conftest.cpp:106:42: error: expected ';' at end of declaration
template <typename V> auto sum(V first) -> V
^
;
conftest.cpp:106:43: error: cannot use arrow operator on a type
template <typename V> auto sum(V first) -> V
^
conftest.cpp:110:33: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^
conftest.cpp:110:43: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^
conftest.cpp:110:43: error: 'auto' not allowed in function return type
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^~~~
conftest.cpp:110:74: error: expected ';' at end of declaration
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^
;
conftest.cpp:110:75: error: cannot use arrow operator on a type
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
^
conftest.cpp:134:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto a1 = 6538;
^
conftest.cpp:135:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto a2 = 48573953.4;
^
conftest.cpp:136:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto a3 = "String literal";
^
conftest.cpp:139:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto i = a3; *i; ++i) { total += *i; }
^
conftest.cpp:155:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto &x : array) { x += 23; }
^
conftest.cpp:155:16: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (auto &x : array) { x += 23; }
^
conftest.cpp:160:17: error: expected expression
assert (eval ([](int x) { return x*2; }, 21) == 42);
^
conftest.cpp:162:17: error: expected expression
assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
^
conftest.cpp:164:17: error: expected expression
assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
^
conftest.cpp:170:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto a = sum(1);
^
conftest.cpp:170:12: error: no matching function for call to 'sum'
auto a = sum(1);
^~~
conftest.cpp:171:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto b = sum(1, 2);
^
conftest.cpp:171:12: error: no matching function for call to 'sum'
auto b = sum(1, 2);
^~~
conftest.cpp:172:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto c = sum(1.0, 2.0, 3.0);
^
conftest.cpp:172:12: error: no matching function for call to 'sum'
auto c = sum(1.0, 2.0, 3.0);
^~~
conftest.cpp:177:25: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse]
cxx11test::delegate d2();
^~
conftest.cpp:177:25: note: remove parentheses to declare a variable
cxx11test::delegate d2();
^~
conftest.cpp:190:16: error: found '<::' after a template name which forms the digraph '<:' (aka '[') and a ':', did you mean '< ::'?
test_template<::test_template<int>> v(test_template<int>(12));
^~~
< ::
conftest.cpp:190:36: error: a space is required between consecutive right angle brackets (use '> >')
test_template<::test_template<int>> v(test_template<int>(12));
^~
> >
conftest.cpp:194:22: error: use of undeclared identifier 'u8'
char const *utf8 = u8"UTF-8 string \u2500";
^
conftest.cpp:194:24: error: expected ';' at end of declaration
char const *utf8 = u8"UTF-8 string \u2500";
^
;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
18 warnings and 20 errors generated.
configure:5344: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libplist"
| #define PACKAGE_TARNAME "libplist"
| #define PACKAGE_VERSION "2.2.1"
| #define PACKAGE_STRING "libplist 2.2.1"
| #define PACKAGE_BUGREPORT "https://github.com/libimobiledevice/libplist/issues"
| #define PACKAGE_URL "https://libimobiledevice.org"
| #define PACKAGE "libplist"
| #define VERSION "2.2.1"
| /* end confdefs.h. */
|
| // Does the compiler advertise C++98 conformance?
| #if !defined __cplusplus || __cplusplus < 199711L
| # error "Compiler does not advertise C++98 conformance"
| #endif
|
| // These inclusions are to reject old compilers that
| // lack the unsuffixed header files.
| #include <cstdlib>
| #include <exception>
|
| // <cassert> and <cstring> are *not* freestanding headers in C++98.
| extern void assert (int);
| namespace std {
| extern int strcmp (const char *, const char *);
| }
|
| // Namespaces, exceptions, and templates were all added after "C++ 2.0".
| using std::exception;
| using std::strcmp;
|
| namespace {
|
| void test_exception_syntax()
| {
| try {
| throw "test";
| } catch (const char *s) {
| // Extra parentheses suppress a warning when building autoconf itself,
| // due to lint rules shared with more typical C programs.
| assert (!(strcmp) (s, "test"));
| }
| }
|
| template <typename T> struct test_template
| {
| T const val;
| explicit test_template(T t) : val(t) {}
| template <typename U> T add(U u) { return static_cast<T>(u) + val; }
| };
|
| } // anonymous namespace
|
|
| // Does the compiler advertise C++ 2011 conformance?
| #if !defined __cplusplus || __cplusplus < 201103L
| # error "Compiler does not advertise C++11 conformance"
| #endif
|
| namespace cxx11test
| {
| constexpr int get_val() { return 20; }
|
| struct testinit
| {
| int i;
| double d;
| };
|
| class delegate
| {
| public:
| delegate(int n) : n(n) {}
| delegate(): delegate(2354) {}
|
| virtual int getval() { return this->n; };
| protected:
| int n;
| };
|
| class overridden : public delegate
| {
| public:
| overridden(int n): delegate(n) {}
| virtual int getval() override final { return this->n * 2; }
| };
|
| class nocopy
| {
| public:
| nocopy(int i): i(i) {}
| nocopy() = default;
| nocopy(const nocopy&) = delete;
| nocopy & operator=(const nocopy&) = delete;
| private:
| int i;
| };
|
| // for testing lambda expressions
| template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
| {
| return f(v);
| }
|
| // for testing variadic templates and trailing return types
| template <typename V> auto sum(V first) -> V
| {
| return first;
| }
| template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
| {
| return first + sum(rest...);
| }
| }
|
|
| int
| main (int argc, char **argv)
| {
| int ok = 0;
|
| assert (argc);
| assert (! argv[0]);
| {
| test_exception_syntax ();
| test_template<double> tt (2.0);
| assert (tt.add (4) == 6.0);
| assert (true && !false);
| }
|
|
| {
| // Test auto and decltype
| auto a1 = 6538;
| auto a2 = 48573953.4;
| auto a3 = "String literal";
|
| int total = 0;
| for (auto i = a3; *i; ++i) { total += *i; }
|
| decltype(a2) a4 = 34895.034;
| }
| {
| // Test constexpr
| short sa[cxx11test::get_val()] = { 0 };
| }
| {
| // Test initializer lists
| cxx11test::testinit il = { 4323, 435234.23544 };
| }
| {
| // Test range-based for
| int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
| 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
| for (auto &x : array) { x += 23; }
| }
| {
| // Test lambda expressions
| using cxx11test::eval;
| assert (eval ([](int x) { return x*2; }, 21) == 42);
| double d = 2.0;
| assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
| assert (d == 5.0);
| assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
| assert (d == 5.0);
| }
| {
| // Test use of variadic templates
| using cxx11test::sum;
| auto a = sum(1);
| auto b = sum(1, 2);
| auto c = sum(1.0, 2.0, 3.0);
| }
| {
| // Test constructor delegation
| cxx11test::delegate d1;
| cxx11test::delegate d2();
| cxx11test::delegate d3(45);
| }
| {
| // Test override and final
| cxx11test::overridden o1(55464);
| }
| {
| // Test nullptr
| char *c = nullptr;
| }
| {
| // Test template brackets
| test_template<::test_template<int>> v(test_template<int>(12));
| }
| {
| // Unicode literals
| char const *utf8 = u8"UTF-8 string \u2500";
| char16_t const *utf16 = u"UTF-8 string \u2500";
| char32_t const *utf32 = U"UTF-32 string \u2500";
| }
|
| return ok;
| }
|
configure:5362: result: none needed
configure:5428: checking dependency style of g++
configure:5540: result: gcc3
configure:5563: checking whether g++ is available and compiles a program
configure:5577: g++ -c -g -O2 conftest.cpp >&5
configure:5577: $? = 0
configure:5579: result: yes
configure:5627: checking build system type
configure:5642: result: aarch64-apple-darwin21.1.0
configure:5662: checking host system type
configure:5676: result: aarch64-apple-darwin21.1.0
configure:5717: checking how to print strings
configure:5744: result: printf
configure:5765: checking for a sed that does not truncate output
configure:5835: result: /usr/bin/sed
configure:5853: checking for grep that handles long lines and -e
configure:5917: result: /usr/bin/grep
configure:5922: checking for egrep
configure:5990: result: /usr/bin/grep -E
configure:5995: checking for fgrep
configure:6063: result: /usr/bin/grep -F
configure:6099: checking for ld used by gcc
configure:6167: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
configure:6174: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld
configure:6190: result: no
configure:6202: checking for BSD- or MS-compatible name lister (nm)
configure:6257: result: /usr/bin/nm -B
configure:6397: checking the name lister (/usr/bin/nm -B) interface
configure:6405: gcc -c -arch x86_64 conftest.c >&5
configure:6408: /usr/bin/nm -B "conftest.o"
configure:6411: output
0000000000000000 S _some_variable
configure:6418: result: BSD nm
configure:6421: checking whether ln -s works
configure:6425: result: yes
configure:6433: checking the maximum length of command line arguments
configure:6565: result: 786432
configure:6613: checking how to convert aarch64-apple-darwin21.1.0 file names to aarch64-apple-darwin21.1.0 format
configure:6654: result: func_convert_file_noop
configure:6661: checking how to convert aarch64-apple-darwin21.1.0 file names to toolchain format
configure:6682: result: func_convert_file_noop
configure:6689: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files
configure:6697: result: -r
configure:6776: checking for objdump
configure:6797: found /usr/bin/objdump
configure:6808: result: objdump
configure:6840: checking how to recognize dependent libraries
configure:7041: result: pass_all
configure:7131: checking for dlltool
configure:7166: result: no
configure:7196: checking how to associate runtime and link libraries
configure:7224: result: printf %s\n
configure:7290: checking for ar
configure:7311: found /usr/bin/ar
configure:7322: result: ar
configure:7359: checking for archiver @FILE support
configure:7377: gcc -c -arch x86_64 conftest.c >&5
configure:7377: $? = 0
configure:7381: ar cru libconftest.a @conftest.lst >&5
ar: @conftest.lst: No such file or directory
configure:7384: $? = 1
configure:7404: result: no
configure:7467: checking for strip
configure:7488: found /usr/bin/strip
configure:7499: result: strip
configure:7576: checking for ranlib
configure:7597: found /usr/bin/ranlib
configure:7608: result: ranlib
configure:7710: checking command to parse /usr/bin/nm -B output from gcc object
configure:7864: gcc -c -arch x86_64 conftest.c >&5
configure:7867: $? = 0
configure:7871: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:7874: $? = 0
cannot find nm_test_var in conftest.nm
configure:7864: gcc -c -arch x86_64 conftest.c >&5
configure:7867: $? = 0
configure:7871: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:7874: $? = 0
configure:7940: gcc -o conftest -arch x86_64 conftest.c conftstm.o >&5
configure:7943: $? = 0
configure:7981: result: ok
configure:8028: checking for sysroot
configure:8059: result: no
configure:8066: checking for a working dd
configure:8110: result: /bin/dd
configure:8114: checking how to truncate binary pipes
configure:8130: result: /bin/dd bs=4096 count=1
configure:8467: checking for mt
configure:8502: result: no
configure:8522: checking if : is a manifest tool
configure:8529: : '-?'
configure:8537: result: no
configure:8598: checking for dsymutil
configure:8619: found /usr/bin/dsymutil
configure:8630: result: dsymutil
configure:8700: checking for nmedit
configure:8721: found /usr/bin/nmedit
configure:8732: result: nmedit
configure:8802: checking for lipo
configure:8823: found /usr/bin/lipo
configure:8834: result: lipo
configure:8904: checking for otool
configure:8925: found /usr/bin/otool
configure:8936: result: otool
configure:9006: checking for otool64
configure:9041: result: no
configure:9086: checking for -single_module linker flag
gcc -arch x86_64 -o libconftest.dylib -dynamiclib -Wl,-single_module conftest.c
configure:9120: result: yes
configure:9123: checking for -exported_symbols_list linker flag
configure:9144: gcc -o conftest -arch x86_64 -Wl,-exported_symbols_list,conftest.sym conftest.c >&5
configure:9144: $? = 0
configure:9155: result: yes
configure:9158: checking for -force_load linker flag
gcc -arch x86_64 -c -o conftest.o conftest.c
ar cru libconftest.a conftest.o
ranlib libconftest.a
gcc -arch x86_64 -o conftest conftest.c -Wl,-force_load,./libconftest.a
configure:9191: result: yes
configure:9262: checking for stdio.h
configure:9262: gcc -c -arch x86_64 conftest.c >&5
configure:9262: $? = 0
configure:9262: result: yes
configure:9262: checking for stdlib.h
configure:9262: gcc -c -arch x86_64 conftest.c >&5
configure:9262: $? = 0
configure:9262: result: yes
configure:9262: checking for string.h
configure:9262: gcc -c -arch x86_64 conftest.c >&5
configure:9262: $? = 0
configure:9262: result: yes
configure:9262: checking for inttypes.h
configure:9262: gcc -c -arch x86_64 conftest.c >&5
configure:9262: $? = 0
configure:9262: result: yes
configure:9262: checking for stdint.h
configure:9262: gcc -c -arch x86_64 conftest.c >&5
configure:9262: $? = 0
configure:9262: result: yes
configure:9262: checking for strings.h
configure:9262: gcc -c -arch x86_64 conftest.c >&5
configure:9262: $? = 0
configure:9262: result: yes
configure:9262: checking for sys/stat.h
configure:9262: gcc -c -arch x86_64 conftest.c >&5
configure:9262: $? = 0
configure:9262: result: yes
configure:9262: checking for sys/types.h
configure:9262: gcc -c -arch x86_64 conftest.c >&5
configure:9262: $? = 0
configure:9262: result: yes
configure:9262: checking for unistd.h
configure:9262: gcc -c -arch x86_64 conftest.c >&5
configure:9262: $? = 0
configure:9262: result: yes
configure:9287: checking for dlfcn.h
configure:9287: gcc -c -arch x86_64 conftest.c >&5
configure:9287: $? = 0
configure:9287: result: yes
configure:9556: checking for objdir
configure:9572: result: .libs
configure:9836: checking if gcc supports -fno-rtti -fno-exceptions
configure:9855: gcc -c -arch x86_64 -fno-rtti -fno-exceptions conftest.c >&5
configure:9859: $? = 0
configure:9872: result: yes
configure:10230: checking for gcc option to produce PIC
configure:10238: result: -fno-common -DPIC
configure:10246: checking if gcc PIC flag -fno-common -DPIC works
configure:10265: gcc -c -arch x86_64 -fno-common -DPIC -DPIC conftest.c >&5
configure:10269: $? = 0
configure:10282: result: yes
configure:10311: checking if gcc static flag -static works
configure:10340: result: no
configure:10355: checking if gcc supports -c -o file.o
configure:10377: gcc -c -arch x86_64 -o out/conftest2.o conftest.c >&5
configure:10381: $? = 0
configure:10403: result: yes
configure:10411: checking if gcc supports -c -o file.o
configure:10459: result: yes
configure:10492: checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries
configure:11758: result: yes
configure:11999: checking dynamic linker characteristics
configure:12820: result: darwin21.1.0 dyld
configure:12942: checking how to hardcode library paths into programs
configure:12967: result: immediate
configure:13519: checking whether stripping libraries is possible
configure:13533: result: yes
configure:13559: checking if libtool supports shared libraries
configure:13561: result: yes
configure:13564: checking whether to build shared libraries
configure:13589: result: yes
configure:13592: checking whether to build static libraries
configure:13596: result: yes
configure:13619: checking how to run the C++ preprocessor
configure:13641: g++ -E conftest.cpp
configure:13641: $? = 0
configure:13656: g++ -E conftest.cpp
conftest.cpp:23:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
1 error generated.
configure:13656: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libplist"
| #define PACKAGE_TARNAME "libplist"
| #define PACKAGE_VERSION "2.2.1"
| #define PACKAGE_STRING "libplist 2.2.1"
| #define PACKAGE_BUGREPORT "https://github.com/libimobiledevice/libplist/issues"
| #define PACKAGE_URL "https://libimobiledevice.org"
| #define PACKAGE "libplist"
| #define VERSION "2.2.1"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:13683: result: g++ -E
configure:13697: g++ -E conftest.cpp
configure:13697: $? = 0
configure:13712: g++ -E conftest.cpp
conftest.cpp:23:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
1 error generated.
configure:13712: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libplist"
| #define PACKAGE_TARNAME "libplist"
| #define PACKAGE_VERSION "2.2.1"
| #define PACKAGE_STRING "libplist 2.2.1"
| #define PACKAGE_BUGREPORT "https://github.com/libimobiledevice/libplist/issues"
| #define PACKAGE_URL "https://libimobiledevice.org"
| #define PACKAGE "libplist"
| #define VERSION "2.2.1"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:13877: checking for ld used by g++
configure:13945: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
configure:13952: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld
configure:13968: result: no
configure:14023: checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries
configure:15100: result: yes
configure:15136: g++ -c -g -O2 conftest.cpp >&5
configure:15139: $? = 0
configure:15620: checking for g++ option to produce PIC
configure:15628: result: -fno-common -DPIC
configure:15636: checking if g++ PIC flag -fno-common -DPIC works
configure:15655: g++ -c -g -O2 -fno-common -DPIC -DPIC conftest.cpp >&5
configure:15659: $? = 0
configure:15672: result: yes
configure:15695: checking if g++ static flag -static works
configure:15724: result: no
configure:15736: checking if g++ supports -c -o file.o
configure:15758: g++ -c -g -O2 -o out/conftest2.o conftest.cpp >&5
configure:15762: $? = 0
configure:15784: result: yes
configure:15789: checking if g++ supports -c -o file.o
configure:15837: result: yes
configure:15867: checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries
configure:15907: result: yes
configure:16049: checking dynamic linker characteristics
configure:16797: result: darwin21.1.0 dyld
configure:16862: checking how to hardcode library paths into programs
configure:16887: result: immediate
configure:16950: checking for stdint.h
configure:16950: result: yes
configure:16956: checking for stdlib.h
configure:16956: result: yes
configure:16962: checking for string.h
configure:16962: result: yes
configure:16971: checking for an ANSI C-conforming const
configure:17038: gcc -c -arch x86_64 conftest.c >&5
configure:17038: $? = 0
configure:17046: result: yes
configure:17054: checking for size_t
configure:17054: gcc -c -arch x86_64 conftest.c >&5
configure:17054: $? = 0
configure:17054: gcc -c -arch x86_64 conftest.c >&5
conftest.c:57:21: error: expected expression
if (sizeof ((size_t)))
^
1 error generated.
configure:17054: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libplist"
| #define PACKAGE_TARNAME "libplist"
| #define PACKAGE_VERSION "2.2.1"
| #define PACKAGE_STRING "libplist 2.2.1"
| #define PACKAGE_BUGREPORT "https://github.com/libimobiledevice/libplist/issues"
| #define PACKAGE_URL "https://libimobiledevice.org"
| #define PACKAGE "libplist"
| #define VERSION "2.2.1"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_STDINT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| /* end confdefs.h. */
| #include <stddef.h>
| #ifdef HAVE_STDIO_H
| # include <stdio.h>
| #endif
| #ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| #endif
| #ifdef HAVE_STRING_H
| # include <string.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main (void)
| {
| if (sizeof ((size_t)))
| return 0;
| ;
| return 0;
| }
configure:17054: result: yes
configure:17064: checking for ssize_t
configure:17064: gcc -c -arch x86_64 conftest.c >&5
configure:17064: $? = 0
configure:17064: gcc -c -arch x86_64 conftest.c >&5
conftest.c:57:22: error: expected expression
if (sizeof ((ssize_t)))
^
1 error generated.
configure:17064: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libplist"
| #define PACKAGE_TARNAME "libplist"
| #define PACKAGE_VERSION "2.2.1"
| #define PACKAGE_STRING "libplist 2.2.1"
| #define PACKAGE_BUGREPORT "https://github.com/libimobiledevice/libplist/issues"
| #define PACKAGE_URL "https://libimobiledevice.org"
| #define PACKAGE "libplist"
| #define VERSION "2.2.1"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_STDINT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| /* end confdefs.h. */
| #include <stddef.h>
| #ifdef HAVE_STDIO_H
| # include <stdio.h>
| #endif
| #ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| #endif
| #ifdef HAVE_STRING_H
| # include <string.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main (void)
| {
| if (sizeof ((ssize_t)))
| return 0;
| ;
| return 0;
| }
configure:17064: result: yes
configure:17074: checking for uint16_t
configure:17074: gcc -c -arch x86_64 conftest.c >&5
configure:17074: $? = 0
configure:17074: result: yes
configure:17084: checking for uint32_t
configure:17084: gcc -c -arch x86_64 conftest.c >&5
configure:17084: $? = 0
configure:17084: result: yes
configure:17096: checking for uint8_t
configure:17096: gcc -c -arch x86_64 conftest.c >&5
configure:17096: $? = 0
configure:17096: result: yes
configure:17110: checking for asprintf
configure:17110: gcc -o conftest -arch x86_64 conftest.c >&5
conftest.c:53:18: warning: format string missing [-Wformat]
return asprintf ();
~~~~~~~~ ^
1 warning generated.
configure:17110: $? = 0
configure:17110: result: yes
configure:17116: checking for strcasecmp
configure:17116: gcc -o conftest -arch x86_64 conftest.c >&5
conftest.c:43:6: warning: incompatible redeclaration of library function 'strcasecmp' [-Wincompatible-library-redeclaration]
char strcasecmp ();
^
conftest.c:43:6: note: 'strcasecmp' is a builtin with type 'int (const char *, const char *)'
1 warning generated.
configure:17116: $? = 0
configure:17116: result: yes
configure:17122: checking for strdup
configure:17122: gcc -o conftest -arch x86_64 conftest.c >&5
conftest.c:44:6: warning: incompatible redeclaration of library function 'strdup' [-Wincompatible-library-redeclaration]
char strdup ();
^
conftest.c:44:6: note: 'strdup' is a builtin with type 'char *(const char *)'
1 warning generated.
configure:17122: $? = 0
configure:17122: result: yes
configure:17128: checking for strerror
configure:17128: gcc -o conftest -arch x86_64 conftest.c >&5
conftest.c:45:6: warning: incompatible redeclaration of library function 'strerror' [-Wincompatible-library-redeclaration]
char strerror ();
^
conftest.c:45:6: note: 'strerror' is a builtin with type 'char *(int)'
1 warning generated.
configure:17128: $? = 0
configure:17128: result: yes
configure:17134: checking for strndup
configure:17134: gcc -o conftest -arch x86_64 conftest.c >&5
conftest.c:46:6: warning: incompatible redeclaration of library function 'strndup' [-Wincompatible-library-redeclaration]
char strndup ();
^
conftest.c:46:6: note: 'strndup' is a builtin with type 'char *(const char *, unsigned long)'
1 warning generated.
configure:17134: $? = 0
configure:17134: result: yes
configure:17140: checking for stpcpy
configure:17140: gcc -o conftest -arch x86_64 conftest.c >&5
conftest.c:47:6: warning: incompatible redeclaration of library function 'stpcpy' [-Wincompatible-library-redeclaration]
char stpcpy ();
^
conftest.c:47:6: note: 'stpcpy' is a builtin with type 'char *(char *, const char *)'
1 warning generated.
configure:17140: $? = 0
configure:17140: result: yes
configure:17146: checking for vasprintf
configure:17146: gcc -o conftest -arch x86_64 conftest.c >&5
conftest.c:59:19: warning: format string missing [-Wformat]
return vasprintf ();
~~~~~~~~~ ^
1 warning generated.
configure:17146: $? = 0
configure:17146: result: yes
configure:17152: checking for gmtime_r
configure:17152: gcc -o conftest -arch x86_64 conftest.c >&5
configure:17152: $? = 0
configure:17152: result: yes
configure:17158: checking for localtime_r
configure:17158: gcc -o conftest -arch x86_64 conftest.c >&5
configure:17158: $? = 0
configure:17158: result: yes
configure:17164: checking for timegm
configure:17164: gcc -o conftest -arch x86_64 conftest.c >&5
configure:17164: $? = 0
configure:17164: result: yes
configure:17170: checking for strptime
configure:17170: gcc -o conftest -arch x86_64 conftest.c >&5
configure:17170: $? = 0
configure:17170: result: yes
configure:17176: checking for memmem
configure:17176: gcc -o conftest -arch x86_64 conftest.c >&5
configure:17176: $? = 0
configure:17176: result: yes
configure:17185: checking whether byte ordering is bigendian
configure:17201: gcc -c -arch x86_64 conftest.c >&5
configure:17201: $? = 0
configure:17247: gcc -c -arch x86_64 conftest.c >&5
configure:17247: $? = 0
configure:17266: gcc -c -arch x86_64 conftest.c >&5
conftest.c:45:4: error: use of undeclared identifier 'not'
not big endian
^
1 error generated.
configure:17266: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libplist"
| #define PACKAGE_TARNAME "libplist"
| #define PACKAGE_VERSION "2.2.1"
| #define PACKAGE_STRING "libplist 2.2.1"
| #define PACKAGE_BUGREPORT "https://github.com/libimobiledevice/libplist/issues"
| #define PACKAGE_URL "https://libimobiledevice.org"
| #define PACKAGE "libplist"
| #define VERSION "2.2.1"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_STDINT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_ASPRINTF 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRDUP 1
| #define HAVE_STRERROR 1
| #define HAVE_STRNDUP 1
| #define HAVE_STPCPY 1
| #define HAVE_VASPRINTF 1
| #define HAVE_GMTIME_R 1
| #define HAVE_LOCALTIME_R 1
| #define HAVE_TIMEGM 1
| #define HAVE_STRPTIME 1
| #define HAVE_MEMMEM 1
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <sys/param.h>
|
| int
| main (void)
| {
| #if BYTE_ORDER != BIG_ENDIAN
| not big endian
| #endif
|
| ;
| return 0;
| }
configure:17400: result: no
configure:17424: checking for platform-specific build settings
configure:17433: result: darwin21.1.0
configure:18391: checking for library containing fmin
configure:18421: gcc -o conftest -arch x86_64 conftest.c >&5
conftest.c:43:6: warning: incompatible redeclaration of library function 'fmin' [-Wincompatible-library-redeclaration]
char fmin ();
^
conftest.c:43:6: note: 'fmin' is a builtin with type 'double (double, double)'
1 warning generated.
configure:18421: $? = 0
configure:18441: result: none required
configure:18452: checking wether the C compiler supports constructor/destructor attributes
configure:18476: gcc -c -arch x86_64 conftest.c >&5
configure:18476: $? = 0
configure:18484: result: yes
configure:18493: checking for tm_gmtoff in struct tm
configure:18515: gcc -c -arch x86_64 conftest.c >&5
configure:18515: $? = 0
configure:18525: result: yes
configure:18535: checking for tm_zone in struct tm
configure:18557: gcc -c -arch x86_64 conftest.c >&5
conftest.c:49:18: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
tm.tm_zone = 1;
^ ~
1 warning generated.
configure:18557: $? = 0
configure:18567: result: yes
configure:18595: checking whether python3 version is >= 2.3
configure:18606: python3 -c import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)
configure:18609: $? = 0
configure:18612: result: yes
configure:18711: checking for python3 version
configure:18719: result: 3.9
configure:18724: checking for python3 platform
configure:18732: result: darwin
configure:18793: checking for GNU default python3 prefix
configure:18795: result: ${prefix}
configure:18861: checking for GNU default python3 exec_prefix
configure:18863: result: ${exec_prefix}
configure:18894: checking for python3 script directory (pythondir)
configure:18929: result: ${PYTHON_PREFIX}/lib/python3.9/site-packages
configure:18937: checking for python3 extension module directory (pyexecdir)
configure:18972: result: ${PYTHON_EXEC_PREFIX}/lib/python3.9/site-packages
configure:18988: checking for cython
configure:19011: found /opt/homebrew/bin/cython
configure:19023: result: /opt/homebrew/bin/cython
configure:19039: checking for Cython version
configure:19042: result: 0.29.26
configure:19089: Cython executable is '/opt/homebrew/bin/cython'
configure:19112: checking for python3.9
configure:19135: found /opt/homebrew/bin/python3.9
configure:19147: result: /opt/homebrew/bin/python3.9
configure:19163: checking for a version of Python >= '2.1.0'
configure:19189: result: yes
configure:19220: checking for the distutils Python package
configure:19224: result: yes
configure:19238: checking for Python include path
configure:19254: result: -I/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9
configure:19261: checking for Python library path
configure:19336: result: -L/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib -lpython3.9
configure:19343: checking for Python site-packages path
configure:19349: result: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages
configure:19356: checking python extra libraries
configure:19363: result: -ldl -framework CoreFoundation
configure:19370: checking python extra linking flags
configure:19377: result: -Wl,-stack_size,1000000 -framework CoreFoundation /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/Python
configure:19384: checking consistency of all components of python development environment
configure:19412: gcc -o conftest -arch x86_64 -I/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -Wl,-stack_size,1000000 -framework CoreFoundation /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/Python conftest.c -L/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib -lpython3.9 -ldl -framework CoreFoundation -ldl -framework CoreFoundation >&5
ld: warning: ignoring file /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/Python, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
"_Py_Initialize", referenced from:
_main in conftest-226c79.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:19412: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libplist"
| #define PACKAGE_TARNAME "libplist"
| #define PACKAGE_VERSION "2.2.1"
| #define PACKAGE_STRING "libplist 2.2.1"
| #define PACKAGE_BUGREPORT "https://github.com/libimobiledevice/libplist/issues"
| #define PACKAGE_URL "https://libimobiledevice.org"
| #define PACKAGE "libplist"
| #define VERSION "2.2.1"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_STDINT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_ASPRINTF 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRDUP 1
| #define HAVE_STRERROR 1
| #define HAVE_STRNDUP 1
| #define HAVE_STPCPY 1
| #define HAVE_VASPRINTF 1
| #define HAVE_GMTIME_R 1
| #define HAVE_LOCALTIME_R 1
| #define HAVE_TIMEGM 1
| #define HAVE_STRPTIME 1
| #define HAVE_MEMMEM 1
| #define __LITTLE_ENDIAN__ 1
| #define HAVE_ATTRIBUTE_CONSTRUCTOR 1
| #define HAVE_TM_TM_GMTOFF 1
| #define HAVE_TM_TM_ZONE 1
| #define HAVE_PYTHON "3.9"
| /* end confdefs.h. */
|
| #include <Python.h>
| int
| main (void)
| {
| Py_Initialize();
| ;
| return 0;
| }
|
configure:19431: result: no
configure:19435: error: in `/Users/karimzhang/Desktop/libplist':
configure:19437: error:
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LIBS environment variable.
Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"
============================================================================
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
============================================================================
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_attribute_constructor=yes
ac_cv_build=aarch64-apple-darwin21.1.0
ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_c_const=yes
ac_cv_c_uint16_t=yes
ac_cv_c_uint32_t=yes
ac_cv_c_uint8_t=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-arch x86_64'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=set
ac_cv_env_PKG_CONFIG_PATH_value=/usr/local/lib/pkgconfig:
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_PYTHON_VERSION_set=
ac_cv_env_PYTHON_VERSION_value=
ac_cv_env_PYTHON_set=set
ac_cv_env_PYTHON_value=python3
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_asprintf=yes
ac_cv_func_gmtime_r=yes
ac_cv_func_localtime_r=yes
ac_cv_func_memmem=yes
ac_cv_func_stpcpy=yes
ac_cv_func_strcasecmp=yes
ac_cv_func_strdup=yes
ac_cv_func_strerror=yes
ac_cv_func_strndup=yes
ac_cv_func_strptime=yes
ac_cv_func_timegm=yes
ac_cv_func_vasprintf=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdio_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=aarch64-apple-darwin21.1.0
ac_cv_objext=o
ac_cv_path_CYTHON=/opt/homebrew/bin/cython
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_FGREP='/usr/bin/grep -F'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_PYTHON=/opt/homebrew/bin/python3.9
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_lt_DD=/bin/dd
ac_cv_prog_AWK=awk
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_DSYMUTIL=dsymutil
ac_cv_prog_ac_ct_LIPO=lipo
ac_cv_prog_ac_ct_NMEDIT=nmedit
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_OTOOL=otool
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c11=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_11=no
ac_cv_prog_cxx_g=yes
ac_cv_prog_cxx_stdcxx=
ac_cv_prog_make_make_set=yes
ac_cv_search_fmin='none required'
ac_cv_struct_tm_gmtoff=yes
ac_cv_struct_tm_zone=yes
ac_cv_type_size_t=yes
ac_cv_type_ssize_t=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
am_cv_make_support_nested_variables=yes
am_cv_prog_cc_c_o=yes
am_cv_python_platform=darwin
am_cv_python_pyexecdir='${PYTHON_EXEC_PREFIX}/lib/python3.9/site-packages'
am_cv_python_pythondir='${PYTHON_PREFIX}/lib/python3.9/site-packages'
am_cv_python_version=3.9
lt_cv_apple_cc_single_mod=yes
lt_cv_ar_at_file=no
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_exported_symbols_list=yes
lt_cv_ld_force_load=yes
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
lt_cv_path_LDCXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_mainfest_tool=no
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=yes
lt_cv_prog_compiler_pic='-fno-common -DPIC'
lt_cv_prog_compiler_pic_CXX='-fno-common -DPIC'
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_pic_works_CXX=yes
lt_cv_prog_compiler_rtti_exceptions=yes
lt_cv_prog_compiler_static_works=no
lt_cv_prog_compiler_static_works_CXX=no
lt_cv_prog_gnu_ld=no
lt_cv_prog_gnu_ldcxx=no
lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p'\'' | sed '\''/ __gnu_lto/d'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(.*\)$/ {"\1", (void *) \&\1},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(lib.*\)$/ {"\1", (void *) \&\1},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(.*\)$/ {"lib\1", (void *) \&\1},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(.*\)$/extern char \1;/p'\'''
lt_cv_sys_global_symbol_to_import=
lt_cv_sys_max_cmd_len=786432
lt_cv_to_host_file_cmd=func_convert_file_noop
lt_cv_to_tool_file_cmd=func_convert_file_noop
lt_cv_truncate_bin='/bin/dd bs=4096 count=1'
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} '\''/Users/karimzhang/Desktop/libplist/missing'\'' aclocal-1.16'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR='ar'
AUTOCONF='${SHELL} '\''/Users/karimzhang/Desktop/libplist/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/Users/karimzhang/Desktop/libplist/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/Users/karimzhang/Desktop/libplist/missing'\'' automake-1.16'
AWK='awk'
BUILD_FUZZERS_FALSE=''
BUILD_FUZZERS_TRUE=''
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-arch x86_64'
CPP=''
CPPFLAGS=''
CSCOPE='cscope'
CTAGS='ctags'
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
CYTHON='/opt/homebrew/bin/cython'
CYTHON_LIB=''
CYTHON_PLIST_INCLUDE_DIR=''
CYTHON_PYTHON_CPPFLAGS=''
CYTHON_PYTHON_OPT=''
DEFS=''
DEPDIR='.deps'
DLLTOOL='false'
DSYMUTIL='dsymutil'
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
ETAGS='etags'
EXEEXT=''
FGREP='/usr/bin/grep -F'
GLOBAL_CFLAGS=''
GLOBAL_LDFLAGS=''
GREP='/usr/bin/grep'
HAVE_CYTHON_FALSE=''
HAVE_CYTHON_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld'
LDFLAGS=''
LIBOBJS=''
LIBPLIST_SO_VERSION='6:0:3'
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO='lipo'
LN_S='ln -s'
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} '\''/Users/karimzhang/Desktop/libplist/missing'\'' makeinfo'
MANIFEST_TOOL=':'
MKDIR_P='./install-sh -c -d'
NM='/usr/bin/nm -B'
NMEDIT='nmedit'
OBJDUMP='objdump'
OBJEXT='o'
OTOOL64=':'
OTOOL='otool'
PACKAGE='libplist'
PACKAGE_BUGREPORT='https://github.com/libimobiledevice/libplist/issues'
PACKAGE_NAME='libplist'
PACKAGE_STRING='libplist 2.2.1'
PACKAGE_TARNAME='libplist'
PACKAGE_URL='https://libimobiledevice.org'
PACKAGE_VERSION='2.2.1'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH='/usr/local/lib/pkgconfig:'
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_CXX=''
PTHREAD_LIBS=''
PYTHON='/opt/homebrew/bin/python3.9'
PYTHON_CPPFLAGS='-I/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9'
PYTHON_EXEC_PREFIX='${exec_prefix}'
PYTHON_EXTRA_LDFLAGS='-Wl,-stack_size,1000000 -framework CoreFoundation /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/Python'
PYTHON_EXTRA_LIBS='-ldl -framework CoreFoundation '
PYTHON_LIBS='-L/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib -lpython3.9'
PYTHON_PLATFORM='darwin'
PYTHON_PREFIX='${prefix}'
PYTHON_SITE_PKG='/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages'
PYTHON_VERSION='3.9'
RANLIB='ranlib'
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
VERSION='2.2.1'
WIN32_FALSE=''
WIN32_TRUE='#'
ac_ct_AR='ar'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
ax_pthread_config=''
bindir='${exec_prefix}/bin'
build='aarch64-apple-darwin21.1.0'
build_alias=''
build_cpu='aarch64'
build_os='darwin21.1.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='aarch64-apple-darwin21.1.0'
host_alias=''
host_cpu='aarch64'
host_os='darwin21.1.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/karimzhang/Desktop/libplist/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgpyexecdir='${pyexecdir}/libplist'
pkgpythondir='${pythondir}/libplist'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
pyexecdir='${PYTHON_EXEC_PREFIX}/lib/python3.9/site-packages'
pythondir='${PYTHON_PREFIX}/lib/python3.9/site-packages'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "libplist"
#define PACKAGE_TARNAME "libplist"
#define PACKAGE_VERSION "2.2.1"
#define PACKAGE_STRING "libplist 2.2.1"
#define PACKAGE_BUGREPORT "https://github.com/libimobiledevice/libplist/issues"
#define PACKAGE_URL "https://libimobiledevice.org"
#define PACKAGE "libplist"
#define VERSION "2.2.1"
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_STRINGS_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define STDC_HEADERS 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_ASPRINTF 1
#define HAVE_STRCASECMP 1
#define HAVE_STRDUP 1
#define HAVE_STRERROR 1
#define HAVE_STRNDUP 1
#define HAVE_STPCPY 1
#define HAVE_VASPRINTF 1
#define HAVE_GMTIME_R 1
#define HAVE_LOCALTIME_R 1
#define HAVE_TIMEGM 1
#define HAVE_STRPTIME 1
#define HAVE_MEMMEM 1
#define __LITTLE_ENDIAN__ 1
#define HAVE_ATTRIBUTE_CONSTRUCTOR 1
#define HAVE_TM_TM_GMTOFF 1
#define HAVE_TM_TM_ZONE 1
#define HAVE_PYTHON "3.9"
configure: exit 1
karimzhang@karimzhangs-MacBook-Pro libplist %
I'm not sure if the cython link is causing the error. Because initially there was a warning that cython wasn't installed, and then I installed Cython version 0.29.26
This is how it is compiled through github actions after installing cython: https://github.com/libimobiledevice/libplist/blob/master/.github/workflows/build.yml#L53-L77
it worked! thank you!🎉
I try:
That generated for the arm64 architecture. Is there a way to generate x86 architecture on M1? thanks