LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 05-25-2011, 03:43 PM   #1
malloc
Member
 
Registered: Jul 2010
Posts: 111

Rep: Reputation: 4
SDL "XDM authorization key matches an existing client!"


After having recompiled libmixmod and then recompiled SDL_Mixer to get support for certain music formats I now find myself unable to start a lot of SDL programs that were previously working perfectly fine -- even some programs that do not use any sound functionality at all will not work.

I get the following error when I attempt to execute my project which was previously working fine:

"XDM authorization key matches an existing client!Error: Unable to init SDL: Couldn't open X11 display"

I also get the same error when I try to execute a lot of other programs, many of them not my own. It seems that the error is not caused by using SDL_Mixer either, as some pure graphics demos without any audio functionality also give me this message, and when I removed all audio features from my program to try to isolate the issue it still gave that error upon execution.

I tried to recompile the base SDL package as well, but that had no effect that I could notice.
 
Old 05-25-2011, 06:40 PM   #2
the3dfxdude
Member
 
Registered: May 2007
Posts: 315

Rep: Reputation: 84
Which version of SDL are you compiling, which version of Slackware are you using, and which SDL package is currently installed? Are you using sdl.SlackBuild to build SDL?
 
Old 05-26-2011, 11:00 AM   #3
malloc
Member
 
Registered: Jul 2010
Posts: 111

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by the3dfxdude View Post
Which version of SDL are you compiling, which version of Slackware are you using, and which SDL package is currently installed? Are you using sdl.SlackBuild to build SDL?
32-bit Slackware 13.1.0
SDL-1.2.14
SDL_gfx-2.0.20
SDL_mixer-1.2.11

I'm not using Slackbuilds.
 
Old 05-26-2011, 10:48 PM   #4
the3dfxdude
Member
 
Registered: May 2007
Posts: 315

Rep: Reputation: 84
So I guess you have not tried the (sdl-1.2.14-i486-2.txz) package included with slackware? Are you talking about libmikmod? It's built statically into SDL_mixer in the slackware package.

http://slackware.oregonstate.edu/sla...sdl.SlackBuild

It might be good to compare this with what you are doing.
 
Old 05-27-2011, 11:38 AM   #5
malloc
Member
 
Registered: Jul 2010
Posts: 111

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by the3dfxdude View Post
So I guess you have not tried the (sdl-1.2.14-i486-2.txz) package included with slackware? Are you talking about libmikmod? It's built statically into SDL_mixer in the slackware package.

http://slackware.oregonstate.edu/sla...sdl.SlackBuild

It might be good to compare this with what you are doing.
I attempted this, i.e. I reverted to the older base SDL package, version 1.2.14 that is bundled with Slackware 13.1.

I performed this operation by first doing make uninstall on SDL, SDL_mixer and SDL_gfx. Then I downloaded everything at http://slackware.oregonstate.edu/sla.../source/l/sdl/ and executed the build script.

The result was this:

Code:
[+] Loading sound effect files ..
[+] Loading music file ..

Program received signal SIGSEGV, Segmentation fault.
Player_LoadGeneric_internal (reader=0xbfffea40, maxchan=64, curious=0) at ../playercode/mloader.c:455
455                             if (of.samples[t].inflags == 0)
(gdb) bt
#0  Player_LoadGeneric_internal (reader=0xbfffea40, maxchan=64, curious=0) at ../playercode/mloader.c:455
#1  0xb65a1403 in Player_LoadGeneric (reader=0xbfffea40, maxchan=64, curious=0) at ../playercode/mloader.c:529
#2  0xb7eb3212 in MikMod_LoadSongRW () from /usr/lib/libSDL_mixer-1.2.so.0
#3  0xb7eb35bb in MOD_new_RW () from /usr/lib/libSDL_mixer-1.2.so.0
#4  0xb7eb3658 in MOD_new () from /usr/lib/libSDL_mixer-1.2.so.0
#5  0xb7eb17bc in Mix_LoadMUS () from /usr/lib/libSDL_mixer-1.2.so.0
#6  0x0804f79b in init_audio () at audio.c:47
#7  0x0804df6d in main (argc=1, argv=0xbfffef84) at main.c:303
(gdb)
I resolved this with performing make uninstall on libmikmod, which results the program executing but with the (obvious) error:

Code:
Mix_LoadMUS() failed on loading ./data/title.xm: Failed loading libmikmod.so.2: libmikmod.so.2: cannot open shared object file: No such file or directory
But I'm still stuck, I have no music.

I attempted to recompile and reinstall libmixmod, but then I'm back to segfault.
 
Old 05-27-2011, 11:44 AM   #6
malloc
Member
 
Registered: Jul 2010
Posts: 111

Original Poster
Rep: Reputation: 4
I also attempted to use this: http://slackbuilds.org/repository/13...ries/libmikmod instead of doing everything by hand -- the result is still a segfault upon calling Mix_LoadMUS().
 
Old 05-27-2011, 12:46 PM   #7
zasavage
Member
 
Registered: Sep 2010
Location: Bloemfontein , South Africa
Distribution: Slackware 13.37 and Slackware 14
Posts: 193

Rep: Reputation: 6
@maloc

From the slackware dvd

SDL links against alsa-lib, arts, audiofile, esound, and the X11 libraries. Make sure all of these are installed if you're planning to
use SDL (a full installation will cover all of the prerequisites).
Why dont you just reisntall the origanal from the cd / dvd
and then get SDL_gfx-2.0.20 from slackbuilds.com

Regards

Lawrence
 
Old 05-27-2011, 02:29 PM   #8
malloc
Member
 
Registered: Jul 2010
Posts: 111

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by zasavage View Post
@maloc

From the slackware dvd

SDL links against alsa-lib, arts, audiofile, esound, and the X11 libraries. Make sure all of these are installed if you're planning to
use SDL (a full installation will cover all of the prerequisites).
Why dont you just reisntall the origanal from the cd / dvd
and then get SDL_gfx-2.0.20 from slackbuilds.com

Regards

Lawrence
I actually have a full installation.

I don't have an issue with SDL_gfx at the moment -- my problem is with libmixmod, I don't think SDL_gfx would have anything to do with that?
 
Old 10-13-2011, 06:20 PM   #9
rengo.Java
Member
 
Registered: Apr 2007
Location: Argentina
Distribution: Slackware
Posts: 48

Rep: Reputation: 15
Hi!

Any solution for this problem.
I get the same error

If i run
Code:
xhost +
before launch the emulator, it works ok.
 
  


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
[SOLVED] "Insert" & "Delete" key returns "~" in a terminal. sharky Linux - General 15 04-26-2011 08:36 AM
[SOLVED] xdm init script problem - "invoke-rc.d xdm start" fails ? Vilius Debian 2 09-13-2010 12:15 AM
WinSCP FTP client connection to AIX gives "host key not found" warning. mufy AIX 2 06-17-2009 12:00 PM
"Enter Key" not working, how to map "Enter Key" functionality to "F9" Key srinihi Linux - Newbie 1 04-03-2009 02:46 PM
XDM-AUTHORIZATION-1 key sigma957 Debian 0 02-01-2004 09:51 AM


All times are GMT -5. The time now is 01:50 PM.

Main Menu
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