libusbmuxd
libusbmuxd copied to clipboard
Build Error in macOS10.14.6
I'm trying to build the lastest libusbmuxd to match the lastest libimobiledevice, so firstly I uninstalled the libusbmuxd by using brew uninstall usbmuxd
, and then used brew install --HEAD usbmuxd
to install the lastest version. But I got the error when I install it:
==> ./autogen.sh
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/usbmuxd/HEAD-b097ea3_1
==> make install
Last 15 lines from /Users/victor/Library/Logs/Homebrew/usbmuxd/03.make:
make[2]: Nothing to be done for `install-data-am'.
Making install in src
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../common -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden -pthread -I/usr/local/Cellar/libplist/2.0.0_1/include -g -O2 -c -o libusbmuxd.lo libusbmuxd.c
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../common -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden -pthread -I/usr/local/Cellar/libplist/2.0.0_1/include -g -O2 -c libusbmuxd.c -fno-common -DPIC -o .libs/libusbmuxd.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../common -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden -pthread -I/usr/local/Cellar/libplist/2.0.0_1/include -g -O2 -c libusbmuxd.c -o libusbmuxd.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link clang -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden -pthread -I/usr/local/Cellar/libplist/2.0.0_1/include -g -O2 -L/usr/local/Cellar/libplist/2.0.0_1/lib -lplist -version-info 5:0:1 -no-undefined -o libusbmuxd.la -rpath /usr/local/Cellar/usbmuxd/HEAD-b097ea3_1/lib libusbmuxd.lo ../common/libinternalcommon.la
libtool: link: clang -dynamiclib -o .libs/libusbmuxd.4.dylib .libs/libusbmuxd.o -Wl,-force_load,../common/.libs/libinternalcommon.a -L/usr/local/Cellar/libplist/2.0.0_1/lib -lplist -pthread -g -O2 -pthread -install_name /usr/local/Cellar/usbmuxd/HEAD-b097ea3_1/lib/libusbmuxd.4.dylib -compatibility_version 6 -current_version 6.0 -Wl,-single_module
Undefined symbols for architecture x86_64:
"_assert", referenced from:
_collection_init in libinternalcommon.a(collection.o)
_collection_add in libinternalcommon.a(collection.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libusbmuxd.la] Error 1
make: *** [install-recursive] Error 1
I have checked whether it is the homebrew's bug by using brew update
and brew doctor
, and then fixed all the warnings. But it does no help. Here is my homebrew version:
$ brew -v
Homebrew 2.1.9
Homebrew/homebrew-core (git revision 94426; last commit 2019-08-08)
Homebrew/homebrew-cask (git revision b5bd27; last commit 2019-08-09)
And the operation system I am using is MacOS 10.14.6
.
Hope for your help!