ld: symbol(s) not found for architecture x86_64

This forum is about all development around libVLC.
AndyZhengSeven
New Cone
New Cone
Posts: 8
Joined: 22 Nov 2017 09:31

ld: symbol(s) not found for architecture x86_64

Postby AndyZhengSeven » 18 Dec 2017 09:41

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 21 Dec 2017 10:17

Use the build script.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

AnshumanSharma12
New Cone
New Cone
Posts: 2
Joined: 07 Aug 2019 09:41

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

Postby AnshumanSharma12 » 07 Aug 2019 09:44

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

AnshumanSharma12
New Cone
New Cone
Posts: 2
Joined: 07 Aug 2019 09:41

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

Postby AnshumanSharma12 » 28 Aug 2019 14:35

Any update on this issue??

Thanks
Anshuman

jahan
New Cone
New Cone
Posts: 4
Joined: 20 Dec 2019 01:00

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

Postby jahan » 20 Dec 2019 01:02

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?

j5r5myk
New Cone
New Cone
Posts: 2
Joined: 02 Apr 2020 19:02

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

Postby j5r5myk » 03 Apr 2020 23:15

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.

j5r5myk
New Cone
New Cone
Posts: 2
Joined: 02 Apr 2020 19:02

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

Postby j5r5myk » 15 Apr 2020 00:08

I pulled the most recent updates and it has indeed fixed the issue.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 17 guests