libplist icon indicating copy to clipboard operation
libplist copied to clipboard

Unable to compile plist_cmp.o

Open Merculous opened this issue 5 years ago • 6 comments

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 avatar Feb 25 '20 06:02 Merculous

Ok, so it compiled successfully after removing cython.

Merculous avatar Feb 26 '20 09:02 Merculous

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 avatar Oct 01 '21 01:10 Merculous

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

Merculous avatar Oct 01 '21 01:10 Merculous

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 avatar Aug 28 '22 21:08 sen0rxol0

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 avatar Aug 28 '22 21:08 sen0rxol0

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

sen0rxol0 avatar Sep 09 '22 19:09 sen0rxol0