libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
535 stars 304 forks source link

Unable to compile plist_cmp.o #154

Open Merculous opened 4 years ago

Merculous commented 4 years ago

ld: warning: ignoring file ../libcnary/.libs/libcnary.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64 Undefined symbols for architecture x86_64: "_node_first_child", referenced from: _compare_plist in plist_cmp.o "_node_next_sibling", referenced from: _compare_plist in plist_cmp.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[2]: [plist_cmp] Error 1 make[1]: [all-recursive] Error 1 make: *** [all] Error 2

MacOS Mojave 10.14.6

Also fails with brew installed libplist, libusbmuxd, and libimobiledevice

This has completely broken every single program that I'd compile that uses any sort of dependency from this framework.

Merculous commented 4 years ago

Ok, so it compiled successfully after removing cython.

Merculous commented 2 years ago

I get this issue even without cython on the latest version of Catalina. Reopening as I'm not sure how to fix this (I remembered a while back but forgot). I'm not sure exactly what you'd like for me to add on here to help with debugging my issue so I'll post once I get a reply.

Merculous commented 2 years ago

I'm using the latest commit also. Compiling node from source via homebrew also gives the same issue.

sen0rxol0 commented 2 years ago

ld: warning: ignoring file ../libcnary/.libs/libcnary.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64 Undefined symbols for architecture x86_64: "_node_first_child", referenced from: _compare_plist in plist_cmp.o "_node_next_sibling", referenced from: _compare_plist in plist_cmp.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[2]: [plist_cmp] Error 1 make[1]: [all-recursive] Error 1 make: *** [all] Error 2

what?

sen0rxol0 commented 2 years ago

encountering that issue again, now it goes like libtool: error: '/usr/local/lib/libplist-2.0.la' is not a valid libtool archive thought symbolic linking to the brew Cellar would help but no can't do

sen0rxol0 commented 2 years ago

issue might be solvable with: ./autogen.sh --without-cython --enable-static --disable-shared CFLAGS="-fPIC" CXXFLAGS="-fPIC"