LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-05-2020, 06:20 PM   #1
Cabbie001
LQ Newbie
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware 14.2 i386; Devuan Ascii 2.0
Posts: 11

Rep: Reputation: Disabled
Problem with libGL drivers when attempting to run Second Life viewers


Hello.

I'm a relative newcomer to Slackware (since September 2019). Mostly very satisfied with the distro, with the exception of a few issues. One concerns the libGL drivers when attempting to run ANY of the viewer software for Second Life virtual world. Using SlackBuild scripts, I successfully compiled and installed the native Second Life viewer, as well as Singularity, and Firestorm-opensim. All of these fail to run, with the same error messages:

libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
The program 'do-not-directly-run-firestorm-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
(Details: serial 33 error_code 2 request_code 153 minor_code 3)


libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
The program 'do-not-directly-run-secondlife-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
(Details: serial 33 error_code 2 request_code 153 minor_code 3)

Does anyone have a solution to this? In the meantime, I can still run Second Life on my Devuan distro which is available on a second drive of my dual-boot desktop.

Cheers
 
Old 01-05-2020, 06:32 PM   #2
garpu
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 489

Rep: Reputation: 235Reputation: 235Reputation: 235
Do you have your video card's drivers' module loaded? And is X configured properly for it? (I've never had an intel graphics chip, so others would likely give better advice.)
 
Old 01-05-2020, 06:44 PM   #3
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 790

Rep: Reputation: 177Reputation: 177
What slackware are you using? your Distribution: Slackware 14.2 i386, which Devuan distro?

I'm using slackware 64 14.2, I see
Quote:
/usr/lib64/xorg/modules/dri/i965_dri.so
/usr/lib64/xorg/modules/dri/swrast_dri.so
I don't see either in FILELIST.TXT.

Last edited by glorsplitz; 01-05-2020 at 06:45 PM.
 
Old 01-05-2020, 06:58 PM   #4
Cabbie001
LQ Newbie
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware 14.2 i386; Devuan Ascii 2.0
Posts: 11

Original Poster
Rep: Reputation: Disabled
Garpu: it's an onboard graphics chip, not an added card with graphics acceleration. However the same hardware works under Devuan Ascii 2.0 so it can't be a hardware issue.
 
Old 01-05-2020, 07:01 PM   #5
Cabbie001
LQ Newbie
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware 14.2 i386; Devuan Ascii 2.0
Posts: 11

Original Poster
Rep: Reputation: Disabled
glorsplitz:

I have the drivers in question:

irf-desktop:/usr/share/cups/drv/HP$ locate i965_dri.so
/usr/lib/xorg/modules/dri/i965_dri.so
/usr/lib/dri/i965_dri.so
irf-desktop:/usr/share/cups/drv/HP$ locate swrast_dri.so
/usr/lib/xorg/modules/dri/kms_swrast_dri.so
/usr/lib/xorg/modules/dri/swrast_dri.so
/usr/lib/dri/swrast_dri.so

But they fail to load during the program launch. As for the Devuan, it is 2.0 (Ascii).
 
Old 01-05-2020, 07:09 PM   #6
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 790

Rep: Reputation: 177Reputation: 177
ldd (executable) | grep -i 'i965_dri.so'
ldd (executable) | grep -i 'swrast_dri.so'


whatever the Second Life viewer, as well as Singularity, and Firestorm-opensim, executables are called

does it show it sees them?

Last edited by glorsplitz; 01-05-2020 at 07:12 PM.
 
Old 01-05-2020, 10:07 PM   #7
Cabbie001
LQ Newbie
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware 14.2 i386; Devuan Ascii 2.0
Posts: 11

Original Poster
Rep: Reputation: Disabled
glorsplitz:

ldd /usr/bin/firestorm-opensim | grep -i 'swrast_dri.so'
(no output)
irf-desktop:~$ ldd /usr/bin/firestorm-opensim
not a dynamic executable

Same results for i965_dri.so

Not sure what to make of that. I also tried adding /usr/lib/xorg/modules/dri/ to /etc/ld.so.conf and running ldconfig before the trying the executables again, but made no difference.

 
Old 01-06-2020, 08:40 AM   #8
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,855

Rep: Reputation: Disabled
Does glxgears work?
 
Old 01-06-2020, 12:28 PM   #9
lonestar_italy
Member
 
Registered: Nov 2010
Location: Italy
Distribution: Slackware64-current
Posts: 115

Rep: Reputation: 30
Hello,

in the launching script for SL (either official client or Firestorm), find the lines:


Code:
exportMutliArchDRIPath() {
        MULTIARCH="$(dpkg-architecture -a$1 -qDEB_HOST_MULTIARCH 2>/dev/null)"
        MULTIARCH_ERR=$?
        if [ $MULTIARCH_ERR -eq 0 ]; then
                echo "Multi-arch support detected for $1."
                MULTIARCH_GL_DRIVERS="/usr/lib/${MULTIARCH}/dri"
                if [ -z ${LIBGL_DRIVERS_PATH}  ]
                then
                        export LIBGL_DRIVERS_PATH="${MULTIARCH_GL_DRIVERS}"
                else
                        export LIBGL_DRIVERS_PATH="${LIBGL_DRIVERS_PATH}:${MULTIARCH_GL_DRIVERS}"
                fi
        fi
}
and edit it to:

Code:
exportMutliArchDRIPath() {
        MULTIARCH="$(dpkg-architecture -a$1 -qDEB_HOST_MULTIARCH 2>/dev/null)"
        MULTIARCH_ERR=$?
        if [ $MULTIARCH_ERR -eq 0 ]; then
                echo "Multi-arch support detected for $1."
                MULTIARCH_GL_DRIVERS="/usr/lib/${MULTIARCH}/dri"
                if [ -z ${LIBGL_DRIVERS_PATH}  ]
                then
                        export LIBGL_DRIVERS_PATH="${MULTIARCH_GL_DRIVERS}"
                else
                        export LIBGL_DRIVERS_PATH="${LIBGL_DRIVERS_PATH}:${MULTIARCH_GL_DRIVERS}:/usr/lib64/xorg/modules/dri"
                fi
        fi
}
in this case, the code is from "firestorm" script for Firestorm viewer v6.3.2.58052
 
Old 01-06-2020, 05:12 PM   #10
Cabbie001
LQ Newbie
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware 14.2 i386; Devuan Ascii 2.0
Posts: 11

Original Poster
Rep: Reputation: Disabled
orbea: Yes, lxgears works, as does blender 3D modelling software

lonestar_italy: Hmm, nice hack. Thank you for that! It does seem to work, though I had to change the /usr/lib64 to /usr/lib. I tried with firestorm-opensim, secondlife and singularity. The last two tried to load but crashed, but firestorm launches properly. Unfortunately it seems unstable; there are sound issues and it crashes too easily. Probably because it's the i686 version and my Slackware is 14.2 i386. I will tinker with it. Thanks for the tip.
Attached Thumbnails
Click image for larger version

Name:	lxgears.jpg
Views:	11
Size:	185.8 KB
ID:	32240  
 
Old 01-07-2020, 06:09 AM   #11
lonestar_italy
Member
 
Registered: Nov 2010
Location: Italy
Distribution: Slackware64-current
Posts: 115

Rep: Reputation: 30
Quote:
Originally Posted by Cabbie001 View Post
I tried with firestorm-opensim, secondlife and singularity. The last two tried to load but crashed, but firestorm launches properly. Unfortunately it seems unstable; there are sound issues and it crashes too easily. Probably because it's the i686 version and my Slackware is 14.2 i386. I will tinker with it. Thanks for the tip.
Well, I'm no longer using 32bit clients and distribution for a while. It is possible that the crashes depend on a mismatch between the versions of the libraries present and those that the client expects.

About the sound, in the startup script I always uncomment the line "export LL_BAD_OPENAL_DRIVER=x"
 
  


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
nvidia-driver SBo The symbolic link '/usr/lib/libGL.so.1' does not point to 'tmp/SBo/package-nvidia-driver/usr/lib64/libGL.so.1' Gerardo Zamudio Slackware 5 07-30-2017 11:44 PM
lostdrivers dell 3450 after attempting an android dule boot.need help with reboot usb 2.o Drivers in bios and reinstall of drivers how and w Cyerdave75 Linux - Newbie 1 12-21-2015 12:24 AM
[SOLVED] Missing libGL.so.1 after changing Graphiccard - Fehlenede libGL.so.1 Bibliothek Basti890 Ubuntu 8 03-12-2013 08:30 AM
Nvidia drivers updating libGL conflict alexcpp Linux - Hardware 1 04-04-2006 11:48 AM
libGL.so.1(LIBGL) for SuSE 9.1? darkmatter333 SUSE / openSUSE 1 12-17-2004 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration