LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-09-2013, 07:04 PM   #16
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,976

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555

Quote:
Originally Posted by turtleli View Post
Slackware comes with two versions of libpng in the same package - 1.4.12 and 1.2.50. I'm not sure if it can happen, but perhaps it has managed to link to 1.2.50 instead of 1.4.12, which I think is the version gtk uses.

Could you run "ldd gvbam" and see what version of libpng it is linking to?
Code:
Linux  ldd /usr/bin/gvbam | grep libpng
	libpng14.so.14 => /usr/lib/libpng14.so.14 (0xb7260000)
➜  Linux
Two comments on that:

1. The executable is not the only thing that needs to be checked. I have not checked every library in its chain of dependencies to make sure that not a single one of them is linked against libpng 12. And no, I won't do that.

2. If this is indeed the issue, then I would find it very strange that VBAM seems to be the only program affected.

Last edited by dugan; 09-09-2013 at 07:11 PM.
 
Old 09-09-2013, 07:18 PM   #17
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,976

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
Also, anyone who solves this before I do gets offered ownership of the SlackBuild.
 
Old 09-09-2013, 08:52 PM   #18
turtleli
Member
 
Registered: Aug 2012
Location: UK
Distribution: Slackware, Slackware 64, Slackware ARM, Gentoo, Fedora
Posts: 159

Rep: Reputation: Disabled
Ok, I was completely off on that guess.

On non-multilib Slackware64-14.0 I've just compiled vbam using the slackbuild. The program seems to run fine and doesn't crash with libpng incompatibility errors. So perhaps it's a multilib build problem? I don't have a multilib system so I can't look into it myself. ldd points to the 64 bit libpng on my system.

Code:
ldd /usr/bin/gvbam | grep libpng
	libpng14.so.14 => /usr/lib64/libpng14.so.14 (0x00007f16dfa5b000)
 
Old 09-09-2013, 08:59 PM   #19
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,976

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
Interesting that it works for you. I just tested it on a 32-bit VM and had the same problem yilez (the OP) did.
 
Old 09-09-2013, 11:30 PM   #20
turtleli
Member
 
Registered: Aug 2012
Location: UK
Distribution: Slackware, Slackware 64, Slackware ARM, Gentoo, Fedora
Posts: 159

Rep: Reputation: Disabled
The 32-bit version works here. I haven't done anything special either. Dependencies taken care of first as usual, then vbam installed without the ffmpeg option.

Only other thing I can think of and a complete stab in the dark is that I'm using fluxbox which I don't think uses gtk themes.

Last edited by turtleli; 09-09-2013 at 11:31 PM. Reason: Missing words
 
Old 09-10-2013, 12:32 AM   #21
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,976

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
Okay, the icons still don't work, but let me know if this still crashes. It's a SlackBuild for r1199 that statically links libpng and zlib.

Source:
http://www.duganchen.ca/files/vbam-r1199-src.tar.bz2

SlackBuild:
http://pastebin.com/EFczu0P0

Last edited by dugan; 09-10-2013 at 12:35 AM.
 
Old 09-10-2013, 12:41 AM   #22
ReaperX7
Senior Member
 
Registered: Jul 2011
Location: California
Distribution: LFS-7.6, Slackware 14.1, FreeBSD 10.1
Posts: 3,824
Blog Entries: 15

Rep: Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184
Don't you need SDL for OpenGL rendering?

For me... it crashes every so often still without so much as a warning. I've tried to grep the logfile, but nothing except the program simply terminated execution. Turned on debugging build and nothing also. I'm getting no icons also.

Kinda wondering what the heck they are doing using outdated static libs within the project rather than using the dynamic or static system libs with simple compatibility workaround internally.

Dugan you should look at the source code as to how much of a mess it is.

Last edited by ReaperX7; 09-10-2013 at 12:52 AM.
 
1 members found this post helpful.
Old 09-10-2013, 12:49 AM   #23
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,976

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
Quote:
Originally Posted by ReaperX7 View Post
Don't you need SDL for OpenGL rendering?
No you don't. Turning on SDL just gives you a GUI-less command-line executable.

The GUI builds use SFML, which is a competitor to SDL.
 
Old 09-10-2013, 12:54 AM   #24
ReaperX7
Senior Member
 
Registered: Jul 2011
Location: California
Distribution: LFS-7.6, Slackware 14.1, FreeBSD 10.1
Posts: 3,824
Blog Entries: 15

Rep: Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184
Ah... hmmm... then again SDL does have a GUI project, but not certain how it's development has been going. I think there was one for SDL_GTK or something.
 
Old 09-10-2013, 12:55 AM   #25
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,976

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
I think this proves your point about what a mess the source code is. :P

In addition to Higan, other options you might try are: Mednafen, or the Windows version of VBAM in Wine.

Last edited by dugan; 09-10-2013 at 01:29 AM.
 
Old 09-10-2013, 04:43 AM   #26
yilez
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 122

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
Code:
Linux  ldd /usr/bin/gvbam | grep libpng
	libpng14.so.14 => /usr/lib/libpng14.so.14 (0xb7260000)
➜  Linux
Two comments on that:

1. The executable is not the only thing that needs to be checked. I have not checked every library in its chain of dependencies to make sure that not a single one of them is linked against libpng 12. And no, I won't do that.

2. If this is indeed the issue, then I would find it very strange that VBAM seems to be the only program affected.
I've had other slackbuilds complain on multilib due to trying to build against 32bit libs instead of 64 bit libs. Had to:

mv /usr/lib /usr/lib_
run slackbuild
mv /usr/lib_ /usr/lib

to get one to build.

EDIT: This doesn't work, by the way

Last edited by yilez; 09-10-2013 at 05:30 AM.
 
Old 09-10-2013, 06:07 AM   #27
yilez
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 122

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
Okay, the icons still don't work, but let me know if this still crashes. It's a SlackBuild for r1199 that statically links libpng and zlib.

Source:
http://www.duganchen.ca/files/vbam-r1199-src.tar.bz2

SlackBuild:
http://pastebin.com/EFczu0P0
Code:
**
Gtk:ERROR:gtkrecentmanager.c:2069:get_icon_fallback: assertion failed: (retval != NULL)
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
Aborted
Something is really screwy here.
 
Old 09-10-2013, 06:10 AM   #28
yilez
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 122

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Why would an icon theme interfere with zlib and libpng?

By comparison Higan's emulation of GBA is pre-alpha, but it's actually quite good as it tends to work the first time around without too much of a hiccup.
Only the old version was getting mixed up with the zlib problem. As for the newer version, it looks like it is trying to load images that are incompatible with this version of libpng. Perhaps gvbam isn't incompatibility very well and is crapping out instead of resorting to something else.

I honestly don't know. I do know that rebuilding the icon theme set did nothing.
 
Old 09-10-2013, 06:40 AM   #29
turtleli
Member
 
Registered: Aug 2012
Location: UK
Distribution: Slackware, Slackware 64, Slackware ARM, Gentoo, Fedora
Posts: 159

Rep: Reputation: Disabled
Thinking about it again, it might be the recent file menu. It does also happen to be the last error before crashing (I get alsa underrun occasionally but it's not fatal). From the behaviour you described it ran the first time but crashed after loading a file. It then crashed on startup on subsequent runs. The difference being that the recent menu now has an entry to it and trying to load the associated menu is causing it to crash.
 
Old 09-10-2013, 07:35 AM   #30
yilez
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 122

Original Poster
Rep: Reputation: Disabled
Indeed. The recent menu is the only thing that will have changed. In fact, removing the entry from .local/share/recently-used.xbel allows me to load up the GUI again.

I am testing a few things at the moment. I think I know what the problem is, but I need to test first.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slackbuild tuxbg Slackware 10 12-28-2012 04:11 PM
[SOLVED] 'Invalid Conversion' Error when Compiling vbam Source derstephen Linux - Software 1 11-12-2011 02:18 AM
*.SlackBuild SolitudeSensus Programming 3 07-18-2009 12:50 AM
OO 3.01 slackbuild ? brodo Slackware 4 02-01-2009 05:06 PM
SlackBuild CrEsPo Slackware 2 03-19-2006 02:58 PM


All times are GMT -5. The time now is 03:47 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration