Page 1 of 1

ld: symbol(s) not found for architecture x86_64

Posted: 18 Dec 2017 09:41
by AndyZhengSeven
config.status: creating lib/libvlc.pc
ld: warning: cannot export hidden symbol _libvlc_media_new_from_input_item from .libs/media.o
ld: warning: cannot export hidden symbol _libvlc_media_set_state from .libs/media.o
ld: warning: cannot export hidden symbol _libvlc_get_input_thread from .libs/media_player.o
ld: warning: cannot export hidden symbol _libvlc_media_list_add_file_content from .libs/media_list.o
Making all in bin
OBJC vlc_osx-darwinvlc.o
CC rootwrap.o
OBJC vlc_osx_static-darwinvlc.o
CC cachegen.o
CCLD vlc-cache-gen
CCLD vlc-wrapper
GEN ../modules/plugins.dat
Cross-compilation: cache generation skipped!
OBJCLD vlc-osx
OBJCLD vlc-osx-static
Undefined symbols for architecture x86_64:
"_aligned_alloc", referenced from:
_AllocatePicture in libvlccore.a(picture.o)
_picture_pool_NewExtended in libvlccore.a(picture_pool.o)
"_libintl_bind_textdomain_codeset", referenced from:
_vlc_bindtextdomain in libvlccore.a(textdomain.o)
"_libintl_bindtextdomain", referenced from:
_vlc_bindtextdomain in libvlccore.a(textdomain.o)
"_libintl_dgettext", referenced from:
_module_gettext in libvlccore.a(modules.o)
_vlc_gettext in libvlccore.a(textdomain.o)
"_libintl_dngettext", referenced from:
_vlc_ngettext in libvlccore.a(textdomain.o)
"_memrchr", referenced from:
_vlc_uri_remove_dot_segments in libvlccore.a(url.o)
"_timespec_get", referenced from:
_NTPtime64 in libvlccore.a(mtime.o)
_vout_snapshot_SaveImage in libvlccore.a(snapshot.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]: *** [vlc-osx-static] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

When I compile for the OSX I got this error, need help!
here is my config options:
../extras/package/macosx/configure.sh --enable-debug --host=x86_64-apple-darwin15 --with-macosx-version-min=10.10 --enable-static

Re: ld: symbol(s) not found for architecture x86_64

Posted: 21 Dec 2017 10:17
by Jean-Baptiste Kempf
Use the build script.

Re: ld: symbol(s) not found for architecture x86_64

Posted: 07 Aug 2019 09:44
by AnshumanSharma12
Am also facing same issue in MAC VLC complication. Please help me.

LOGS:
C_01/vlc/contrib/x86_64-apple-darwin15/lib/libgmp.a(mod_34lsub1.o)) was built for newer OSX version (10.14) than being linked (10.11)
ld: warning: object file (/Users/anshumansharma/Projects/Zoom/MAC_Windows/VLC_MAC_01/vlc/contrib/x86_64-apple-darwin15/lib/libgmp.a(mu_bdiv_q.o)) was built for newer OSX version (10.14) than being linked (10.11)
ld: warning: object file (/Users/anshumansharma/Projects/Zoom/MAC_Windows/VLC_MAC_01/vlc/contrib/x86_64-apple-darwin15/lib/libgmp.a(mu_bdiv_qr.o)) was built for newer OSX version (10.14) than being linked (10.11)
ld: warning: object file (/Users/anshumansharma/Projects/Zoom/MAC_Windows/VLC_MAC_01/vlc/contrib/x86_64-apple-darwin15/lib/libgmp.a(lt86-sqrtrem.o)) was built for newer OSX version (10.14) than being linked (10.11)
ld: warning: object file (/Users/anshumansharma/Projects/Zoom/MAC_Windows/VLC_MAC_01/vlc/contrib/x86_64-apple-darwin15/lib/libgmp.a(mu_divappr_q.o)) was built for newer OSX version (10.14) than being linked (10.11)
Undefined symbols for architecture x86_64:
"_CFArrayGetCount", referenced from:
_gnutls_x509_trust_list_add_system_trust in libgnutls.a(system.o)
"_CFArrayGetValueAtIndex", referenced from:
_gnutls_x509_trust_list_add_system_trust in libgnutls.a(system.o)
"_CFRelease", referenced from:
_gnutls_x509_trust_list_add_system_trust in libgnutls.a(system.o)
"_SecCertificateGetData", referenced from:
_gnutls_x509_trust_list_add_system_trust in libgnutls.a(system.o)
"_SecTrustCopyAnchorCertificates", referenced from:
_gnutls_x509_trust_list_add_system_trust in libgnutls.a(system.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[4]: *** [libaccess_srt_plugin.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Re: ld: symbol(s) not found for architecture x86_64

Posted: 28 Aug 2019 14:35
by AnshumanSharma12
Any update on this issue??

Thanks
Anshuman

Re: ld: symbol(s) not found for architecture x86_64

Posted: 20 Dec 2019 01:02
by jahan
Same problem here

Code: Select all

ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [m4] Error 1 make[3]: Leaving directory `/Users/jani/Projects/vlc-android/vlc/extras/tools/m4/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/Users/jani/Projects/vlc-android/vlc/extras/tools/m4' make[1]: *** [all] Error 2 make[1]: Leaving directory `/Users/jani/Projects/vlc-android/vlc/extras/tools/m4' make: *** [.m4] Error 2
Anyone can help?

Re: ld: symbol(s) not found for architecture x86_64

Posted: 03 Apr 2020 23:15
by j5r5myk
Hello, I am having the same problem. Specifically:

Code: Select all

Undefined symbols for architecture x86_64: "___isPlatformVersionAtLeast"
I previously compiled successfully. I am running Xcode 11.3. I tried to revert to Xcode 11 but that did not fix it.

Re: ld: symbol(s) not found for architecture x86_64

Posted: 15 Apr 2020 00:08
by j5r5myk
I pulled the most recent updates and it has indeed fixed the issue.