[kde-solaris] KCheckpass on Solaris 8
Karsten Künne
kde-solaris@mail.kde.org
Mon Nov 11 20:12:02 2002
On Monday 11 November 2002 11:09, Ian Reinhart Geiser wrote:
| On Monday 11 November 2002 10:01 am, Carlos Ku wrote:
| > Ian:
| >
| > Run the command ldd on kcheckpass and see what libraries are
| > not found by kcheckpass .
|
| All libs seem to be found:
| bash-2.03$ ldd `which kcheckpass`
| libkdefakes.so.4 => /usr/local/kde/lib/libkdefakes.so.4
| libkdefx.so.4 => /usr/local/kde/lib/libkdefx.so.4
| libqt-mt.so.3 => /qt3/lib/libqt-mt.so.3
| libpng.so.2 => /opt/sfw/lib/libpng.so.2
| libz.so.1 => /usr/lib/libz.so.1
| libXext.so.0 => /usr/lib/libXext.so.0
| libX11.so.4 => /usr/lib/libX11.so.4
| libSM.so.6 => /usr/lib/libSM.so.6
| libICE.so.6 => /usr/lib/libICE.so.6
| libpthread.so.1 => /usr/lib/libpthread.so.1
| libstdc++.so.2.10.0 => /opt/sfw/lib/libstdc++.so.2.10.0
| libm.so.1 => /usr/lib/libm.so.1
| libpam.so.1 => /usr/lib/libpam.so.1
| libdl.so.1 => /usr/lib/libdl.so.1
| libsocket.so.1 => /usr/lib/libsocket.so.1
| libnsl.so.1 => /usr/lib/libnsl.so.1
| libc.so.1 => /usr/lib/libc.so.1
| libresolv.so.2 => /usr/lib/libresolv.so.2
| libdga.so.1 => /usr/openwin/lib/libdga.so.1
| libmp.so.2 => /usr/lib/libmp.so.2
| libthread.so.1 => /usr/lib/libthread.so.1
| /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1
|
| I have seen this problem on RH and SuSE before if the wrong config opti=
ons
| are passed into configure at build time. Or if pam is configured wrong=
.
|
| Ideas?
That are quite a lot of dependencies! Usually you have to make kcheckpass
setuid to root (owner root, mode 4755) and then Solaris ignores the
LD_LIBRARY_PATH setting and uses only /lib:/usr/lib as a searchpath for
shared libs (for security reasons). I got around that by putting in the
additional library paths into the binary. You can do that either by setting
LD_RUN_PATH during link time or by using the ld option -R (if you use the
Solaris linker). If you run "elfdump -d" on the resulting binary it should
show a "RUNPATH" or "RPATH" or both.
Another way of achieving the same goal is to use crle in order to change the
system wide searchpath for shared libraries but I didn't try this yet. It's
supposed to be similar to ldconfig on Linux. But if you use crle in the wrong
way you can screw up your system really solid.
| -ian reinhart geiser
|
| > On Mon, 2002-11-11 at 09:56, Ian Reinhart Geiser wrote:
| > > -----BEGIN PGP SIGNED MESSAGE-----
| > > Hash: SHA1
| > >
| > > Greetings
| > > What options do people out there to get checkpass to work on sol=
aris
| > > 8? Currently I cannot get the screen to unlock after Ilock it becau=
se
| > > kcheckpass fails? Is this something that needs to be fixed?
| > >
| > > Cheers
| > > -ian reinhart geiser
| > > - --
| > > ========================
=================
| > > The giraffe you thought you offended last week is willing to be nuz=
zled
| > > today.
| > > ========================
=================
| > > -----BEGIN PGP SIGNATURE-----
| > > Version: GnuPG v1.0.7 (GNU/Linux)
| > >
| > > iD8DBQE9z8U5Py62TRm8dvgRAoVMAKCk4CEftvhU0FqKr2W36aLiNrb4vwCgiABL
| > > lGulP2cqanlrG/J+6D0wsZg=
| > > =OPnj
| > > -----END PGP SIGNATURE-----
| > >
| > > ___________________________________________________
| > > This message is from the kde-solaris mailing list.
| > > Account management: http://mail.kde.org/mailman/listinfo/kde-solar=
is.
| > > Archives: http://lists.kde.org/.
| > > More info: http://www.kde.org/faq.html.
| >
| > Carlos
| > dancing penguin
| > Carlos Ku
| >
| > carlos.ku@citigroup.com /
| > 212-816-4042
| >
| > "Respect the elders. Embrace the
| > new. Encourage the impractical and
| > improbable, without bias."
| > David Fricke
--
Karsten.
No trees were destroyed in the sending of this message, however,
a significant number of electrons were terribly inconvenienced.