LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-30-2022, 09:26 PM   #1
NachoLord
Member
 
Registered: Jul 2018
Location: Somewhere between here and there.
Distribution: Ubuntu, Debian, Arch
Posts: 47

Rep: Reputation: Disabled
VLC crashes: "undefined symbol: vlc_object_hold"


Hello, GNU/Linux people!

Whenever I try to run VLC, it crashes with the following error:
Code:
vlc: symbol lookup error: /usr/lib/libvlc.so.5: undefined symbol: vlc_object_hold
I've tried removing it (and it's dependencies), and reinstalling it, but when it reinstalls, the package manager gives a similar error:
Code:
/usr/lib/vlc/vlc-cache-gen: symbol lookup error: /usr/lib/libvlc.so.5: undefined symbol: vlc_object_hold
This build came right from my distro's official package repo. Any idea what's going on?

Arch Linux, x86_64.

Last edited by NachoLord; 01-30-2022 at 09:27 PM.
 
Old 01-30-2022, 09:43 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I have never encountered this in years of using VLC on multiple distros. A web search for "VLC symbol lookup error" turns up a number of links that look like they might be a little helpful, but most of them are pretty old. A couple of questions come to mind:

What version of VLC are you running?

Does this occur with multiple media formats (e. g., mp4, avi, flaac, etc.)?
 
Old 01-31-2022, 10:01 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by NachoLord View Post
Arch Linux, x86_64.
I installed it just for the heck of it and it works, no such message here.
Is your system up-to-date?
In other words did you do 'pacman -Syu vlc' instead of 'pacman -S vlc'?
Do you have non-standard repositories?
Have you also removed its configuration and cache when you reinstalled?
What is the complete output you get when you start vlc in a terminal?
What does 'ls -l /usr/lib/libvlc.so.5' return?
 
Old 04-02-2022, 04:15 PM   #4
NachoLord
Member
 
Registered: Jul 2018
Location: Somewhere between here and there.
Distribution: Ubuntu, Debian, Arch
Posts: 47

Original Poster
Rep: Reputation: Disabled
Hello, sorry for taking so long to respond, as I've been rather busy lately.

@Frankbell: I've had this happen with literally every version of VLC, including the latest versions available in the Arch repos. This happens mere microseconds before the program launches, so I'm unable to even try to open a file.

@Ondoho: Yes, I keep everything up-to-date, running "sudo pacman -Syu" regularly. I don't have any non-standard repos. I have tried removing the cache before reinstalling, but I have no idea what this "configuration" you speak of is. The output of the requested ls command is as follows:
Code:
lrwxrwxrwx 1 root root 15 Mar 13 14:33 /usr/lib/libvlc.so.5 -> libvlc.so.5.6.0
If I do a long ls listing on the symlink's target, I get:
Code:
-rwxr-xr-x 1 root root 161744 Mar 13 14:33 /usr/lib/libvlc.so.5.6.0
 
Old 04-02-2022, 04:18 PM   #5
NachoLord
Member
 
Registered: Jul 2018
Location: Somewhere between here and there.
Distribution: Ubuntu, Debian, Arch
Posts: 47

Original Poster
Rep: Reputation: Disabled
Also, I did an strace on "/usr/lib/vlc/vlc-cache-gen". Since I don't really know how to read strace's output myself, I'll attach it below in hopes that maybe someone else can make sense of it.
Attached Files
File Type: txt vlc-cache-gen.strace.txt (15.2 KB, 6 views)
 
Old 04-02-2022, 04:23 PM   #6
NachoLord
Member
 
Registered: Jul 2018
Location: Somewhere between here and there.
Distribution: Ubuntu, Debian, Arch
Posts: 47

Original Poster
Rep: Reputation: Disabled
Interesting. I didn't do anything, but now I'm getting a different error message:
Code:
vlc: symbol lookup error: /usr/lib/libvlc.so.5: undefined symbol: mdate
 
Old 04-02-2022, 04:31 PM   #7
NachoLord
Member
 
Registered: Jul 2018
Location: Somewhere between here and there.
Distribution: Ubuntu, Debian, Arch
Posts: 47

Original Poster
Rep: Reputation: Disabled
You know what? I still don't know how to read strace's output, but I somehow just noticed that it mentioned some libraries in /usr/local/lib/. That's weird, since I don't recall installing vlc there. (I doubt the maintainers of the Arch package would have done so. I have been falling back on an AppImage, but I doubt the AppImage packager would have installed such files.) I guess these are old libraries? I decided to delete anything from the above directory with "vlc" in the name, re-run sudo /usr/lib/vlc/vlc-cache-gen, and presto! Everything works now. Marking as solved.

Last edited by NachoLord; 04-02-2022 at 04:33 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the differences between the normal symbol table, the dynamic symbol table, and the debugging symbol table? watchintv Linux - Software 5 10-22-2016 08:38 AM
UNDEFINED SYMBOL!! though the symbol defined in System.map raklo Programming 3 01-05-2011 02:52 AM
[SOLVED] Guitar Pro 6 doesn't start, "symbol lookup error: ./libxml.so: undefined symbol: gzop Squall90 Slackware 4 10-12-2010 02:35 PM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM
snort failed: snort: symbol lookup error: undefined symbol: usmAES192PrivProtocol Emmanuel_uk Linux - Security 1 07-10-2005 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration