Operating System - HP-UX
1751971 Members
4622 Online
108783 Solutions
New Discussion юеВ

Re: X11 Failed to load shared library

 
skyk
New Member

X11 Failed to load shared library

Hi All,

I'm having an issue getting X11 up and running on a fresh Technical Operating Environment install of 11.23. Startx is throwing the following errors:

/usr/lib/dld.s1 invalid share library file:
/usr/lib/X11/Xserver/modules/screens/hp/rw.1

/usr/lib/dld.s1: Excec format error
Xcollector failed to load shared library
/usr/lib/X11/Xserver/modules/screens/hp/rw.1

I'm most familiar with using X11 on Linux machines but I would assume this is a driver related issue because of the failure to load specific modules. The graphics card in question is an HP Visualize FX5.

Any help would be greatly appreciated
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: X11 Failed to load shared library

Shalom,

All needed libraries must be found on the path of the SHLIB_PATH variable.

if the required libraries are installed (files exist) and on the PATH this should work.

1.) Install needed libraries
2.) set SHLIB_PATH variable correctly.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: X11 Failed to load shared library

Hi:

The "Exec format error" suggests that the library codefile isn't for you machine type. Do:

# file /usr/lib/X11/Xserver/modules/screens/hp/rw.1

...and post the results if in doubt.

Regards!

...JRF...
skyk
New Member

Re: X11 Failed to load shared library

Output from file rw.1:
rw.1; commands text (this can't be good)

cat rw.1
@(#) Obsolete module

I can allready tell that this is a problem since modules generally should be binary files. I am unaware of how to set which module should be use with X. In linux one would just edit the driver line in the XF86 conf file.

Also and echo of the SHLIB_PATH variable returned nothing and env also does not show this variable. I am unaware of what to set it too.
Dennis Handly
Acclaimed Contributor

Re: X11 Failed to load shared library

You might want to use ldd(1) or chatr(1) to see what shlibs are needed by your application. Especially why it wants rw.1.

You could create an empty shlib with the name rw.1 and move it in place.

>In linux one would just edit the driver line in the XF86 conf file.

If there is a configuration file that lists rw.1, the application may be dynamically loading what's in the file, so remove it.

>SEP: All needed libraries must be found on the path of the SHLIB_PATH variable.

Either that or LD_LIBRARY_PATH for ELF dlds. Or be hardcoded in the load module.
Dennis Handly
Acclaimed Contributor

Re: X11 Failed to load shared library

>ME: You could create an empty shlib with the name rw.1

Or just link in libc.sl:
ln -s /usr/lib/libc.sl rw.1