macOS Mojava 10.14.4+Xcode12.2.1+AndroidStudio3.4
问题:
MacBook-Pro:~ lishuaihua$ brew install --HEAD libimobiledevice
==> Cloning https://git.libimobiledevice.org/libimobiledevice.git
Updating /Users/lishuaihua/Library/Caches/Homebrew/libimobiledevice--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at eea4f1b Updated ac_python_devel.m4 to newer ax_python_devel.m4
==> ./autogen.sh
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libimobiledevi
==> make install
Last 15 lines from /Users/lishuaihua/Library/Logs/Homebrew/libimobiledevice/03.make:
^
thread.c:52:23: error: use of undeclared identifier 'NULL'
pthread_join(thread, NULL);
^
thread.c:61:28: error: use of undeclared identifier 'NULL'
pthread_mutex_init(mutex, NULL);
^
7 errors generated.
make[1]: *** [thread.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -I../include -I.. -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden -I/usr/local/Cellar/libplist/2.0.0_1/include -I/usr/local/Cellar/usbmuxd/HEAD-873252d_1/include -I/usr/local/Cellar/libplist/2.0.0_1/include -I/usr/local/Cellar/openssl/1.0.2r/include -D_LARGE_FILES=1 -g -O2 -c socket.c -o socket.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -I../include -I.. -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden -I/usr/local/Cellar/libplist/2.0.0_1/include -I/usr/local/Cellar/usbmuxd/HEAD-873252d_1/include -I/usr/local/Cellar/libplist/2.0.0_1/include -I/usr/local/Cellar/openssl/1.0.2r/include -D_LARGE_FILES=1 -g -O2 -c debug.c -o debug.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -I../include -I.. -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden -I/usr/local/Cellar/libplist/2.0.0_1/include -I/usr/local/Cellar/usbmuxd/HEAD-873252d_1/include -I/usr/local/Cellar/libplist/2.0.0_1/include -I/usr/local/Cellar/openssl/1.0.2r/include -D_LARGE_FILES=1 -g -O2 -c utils.c -o utils.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -I../include -I.. -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden -I/usr/local/Cellar/libplist/2.0.0_1/include -I/usr/local/Cellar/usbmuxd/HEAD-873252d_1/include -I/usr/local/Cellar/libplist/2.0.0_1/include -I/usr/local/Cellar/openssl/1.0.2r/include -D_LARGE_FILES=1 -g -O2 -c userpref.c -o userpref.o >/dev/null 2>&1
make: *** [install-recursive] Error 1
READ THIS: https://docs.brew.sh/Troubleshooting
暂无解决办法
网友评论