Reply
 
Thread Tools Display Modes
  #1  
Old 03-06-2010, 05:57 PM
rfolkerts rfolkerts is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rfolkerts
Default Dynamic Linking Problems after Update 7.1 -> 8.0
Hi,

yesterday I updated my Laptop (Thinkpad A30p) from PC-BSD 7.1 to 8.0. The Update went thru fine; on the first Reboot I choose the correct Resolution and the ati-Driver.

However, when I tried to Login to KDM the screen got black, I saw the "wait" cursor and then was at KDM again.

I switched to Text-Mode Console and checked my ~/.xession-errors - File.

I contains:

cat .xsession-errors
In order to search for a string in some files, use 'grep' like this:

grep "string" filename1 [filename2 filename3 ...]

This will print out the lines in the files that contain the string. grep can
also do a lot more advanced searches - type 'man grep' for details.
/libexec/ld-elf.so.1: Shared object "libxkbfile.so.1" not found, required by "setxkbmap"
/libexec/ld-elf.so.1: Shared object "libgthread-2.0.so.0" not found, required by "libQtCore.so.4"
/libexec/ld-elf.so.1: Shared object "libgthread-2.0.so.0" not found, required by "libQtCore.so.4"
/libexec/ld-elf.so.1: Shared object "libXaw7.so.7" not found, required by "xmessage"

However, the so-Files being complained do exist in /usr/local/lib.

ralf@pcbsd ~]$ ls -l /usr/local/lib/libxkbfile.so.1
-rwxr-xr-x 1 root wheel 153231 8 Feb 18:14 /usr/local/lib/libxkbfile.so.1
[ralf@pcbsd ~]$ ls -l /usr/local/lib/libgthread-2.0.so.0
-rwxr-xr-x 1 root wheel 19293 8 Feb 17:36 /usr/local/lib/libgthread-2.0.so.0
[ralf@pcbsd ~]$ ls -l /usr/local/lib/libXaw7.so.7
-rwxr-xr-x 1 root wheel 416731 8 Feb 18:09 /usr/local/lib/libXaw7.so.7

So, I checked if ldconfig was started during boot (on ttyv1) and the paths it shows:

Firewall rules loaded.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/kde4/
lib /usr/local/lib/compat/pkg /usr/local/kde4/lib /usr/local/kde4/lib/kde4 /usr/
local/lib/compat /usr/local/lib/compat/pkg /usr/local/lib/mysql /usr/local/lib/p
th /usr/local/lib/qt4
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout

So, /usr/local/lib is there - which looks OK.

Also, /var/run/ld-elf.so.hints looks OK (i.e. I do see /usr/local/lib in).

Then I disabled X11-Start by commenting out the ttyv8 in /etc/ttys, rebooted, and tried to run "startx". However, I didn't start but I got complaints re. missing Libs (similar to those from the KDM-Logon).

Finally, I set LD_LIBRARY_PATH to /usr/lib:/usr/local/lib -- and then startx went thru fine.

Does anyone have a hint where to look, what to check and how to "repair"?

I checked the Knowledge Base, FAQ and Wiki but didn't find anything that seemed helpful.

Would really be cool to get the Laptop back to work...

MTIA and Cheers,
_ralf_
Reply With Quote
  #2  
Old 03-07-2010, 01:21 AM
Fatmice's Avatar
Fatmice Fatmice is offline
Senior Member
 
Join Date: Feb 2008
Location: US
Posts: 887
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Dynamic Linking Problems after Update 7.1 -> 8.0
I would think that it needs to be ld-pcbsd-elf.so.hints or ld-pcbsd-32.so.hints

Check that LD_ELF_HINTS_PATH in /etc/rc has the right path.

Should be
Code:
LD_ELF_HINTS_PATH=/var/run/ld-pcbsd-elf.so.hints or ld-pcbsd-32.so.hints
To be sure, invoke ldconfig -r /var/run/ld-elf.so.hints and check for the search directory. It should be
Code:
/lib:/usr/lib:/usr/lib/compat:/usr/local/lib
__________________
|================================================= =====|
|Please search the forum prior to posting. Intellectual laziness is not nice. | (Does not apply to non-offenders =))
|================================================= =====|
Reply With Quote
  #3  
Old 03-07-2010, 08:10 AM
rfolkerts rfolkerts is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rfolkerts
Default Re: Dynamic Linking Problems after Update 7.1 -> 8.0
Hi,

thanks for the reply!

Well, I didn't find a LD_ELF_HINTS_PATH in /etc/rc.

Indeed, it does not seem to be defined/used anywhere in /etc as

root@pcbsd# find /etc -type f -exec grep -i ld_elf {} /dev/null \;

returns no matches :-(

Does this indicate that the /etc/rc is "bad" on my System? I does look OK; it's dated 01/01/2010 18:10 and has a size of 3664 Bytes.

The ldconfig -r looks ok; it even containts all those libs that upon starting X will not be founf any longer

Code:
/var/run/ld-elf.so.hints:
        search directories: /lib:/usr/lib:/usr/lib/compat:/usr/local/lib:/usr/local/kde4/lib:/usr/local/lib/compat/pkg:/usr/local/kde4/lib/kde4:/usr/local/lib/compat:/usr/local/lib/mysql:/usr/local/lib/pth:/usr/local/lib/qt4
[...]
145:-lgthread-2.0.0 => /usr/local/lib/libgthread-2.0.so.0
[...]
201:-lXaw7.7 => /usr/local/lib/libXaw7.so.7
[...]
207:-lxkbfile.1 => /usr/local/lib/libxkbfile.so.1
[...]
Oh... I just ran "startx" as root - and X started correctly.

So, it must be something wrong with my "ralf" User.

I checked my ~.profile and found
Code:
LD_ELF_HINTS_PATH="var/run/ld-pcbsd-elf.so.hints"
export LD_ELF_HINTS_PATH
Upon re-activating ttyv8 and reboot I am now able to Login to KDM :-)

Did the name of the hints-File change eventually in PC-BSD 8?

Thanks for the reply!
Cheers,
_ralf_

Quote:
I would think that it needs to be ld-pcbsd-elf.so.hints or ld-pcbsd-32.so.hints

Check that LD_ELF_HINTS_PATH in /etc/rc has the right path.
Reply With Quote
  #4  
Old 03-08-2010, 12:18 PM
Fatmice's Avatar
Fatmice Fatmice is offline
Senior Member
 
Join Date: Feb 2008
Location: US
Posts: 887
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Dynamic Linking Problems after Update 7.1 -> 8.0
Originally Posted by rfolkerts
root@pcbsd# find /etc -type f -exec grep -i ld_elf {} /dev/null \;
That's too much to type. Try this instead!

grep -n "LD_ELF_HINTS_PATH" *

It will return line numbers of the file if anything matches.

LD_ELF_HINTS_PATH must be defined for stuff to work correctly.

Originally Posted by rfolkerts
Does this indicate that the /etc/rc is "bad" on my System? I does look OK; it's dated 01/01/2010 18:10 and has a size of 3664 Bytes.
Seems so.

Originally Posted by rfolkerts
The ldconfig -r looks ok; it even containts all those libs that upon starting X will not be founf any longer
Yeah but it's no good if the path to the hint file doesn't exist.

Originally Posted by rfolkerts
Did the name of the hints-File change eventually in PC-BSD 8?
Seems so! I just found out from another user's reply that X11 moved from /PCBSD/local to /usr/local! So things spontaneously move around here...a lot it seems. So I found it's best to play it safe and never ever upgrade....because you get burn! :twisted:
__________________
|================================================= =====|
|Please search the forum prior to posting. Intellectual laziness is not nice. | (Does not apply to non-offenders =))
|================================================= =====|
Reply With Quote
  #5  
Old 03-09-2010, 03:23 PM
rfolkerts rfolkerts is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rfolkerts
Default Re: Dynamic Linking Problems after Update 7.1 -> 8.0
Hi,

thanks for the hint!

Quote:
That's too much to type. Try this instead!

grep -n "LD_ELF_HINTS_PATH" *

It will return line numbers of the file if anything matches.
Well, I prefer the find-way as it will also search in Subdirectories (i.e. in /etc/defaults and /etc/rc.d where such things might (also) be defined/used. As many things are in /etc/defaults/rc.conf (but might also be overridden in /etc/rc.conf) (at least on FreeBSD - but I think/hope it's not different in PC-BSD. I must admit I didn't check that yet as I only use the Laptop very seldom but normally use a FreeBSD Desktop) it's handy.

But that's just my personal taste, of course ;-)

Cheers,
_ralf_
Reply With Quote
  #6  
Old 03-10-2010, 04:09 AM
Fatmice's Avatar
Fatmice Fatmice is offline
Senior Member
 
Join Date: Feb 2008
Location: US
Posts: 887
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Dynamic Linking Problems after Update 7.1 -> 8.0
Originally Posted by rfolkerts
Well, I prefer the find-way as it will also search in Subdirectories (i.e. in /etc/defaults and /etc/rc.d where such things might (also) be defined/used. As many things are in /etc/defaults/rc.conf (but might also be overridden in /etc/rc.conf) (at least on FreeBSD - but I think/hope it's not different in PC-BSD. I must admit I didn't check that yet as I only use the Laptop very seldom but normally use a FreeBSD Desktop) it's handy.

But that's just my personal taste, of course ;-)

Cheers,
_ralf_
There you go

grep -rn "LD_ELF_HINTS_PATH" *

For the most part things are the same.
__________________
|================================================= =====|
|Please search the forum prior to posting. Intellectual laziness is not nice. | (Does not apply to non-offenders =))
|================================================= =====|
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking to a pdf ranran The Lounge 3 05-27-2007 03:31 AM
I'm encountering major problems with the online update s_p_oneil FreeBSD Help 1 07-03-2006 01:48 AM
linking time errors CarlosOmar General Questions 2 06-24-2006 08:19 AM
not a dynamic executable Gon Creating PC-BSD Packages (.pbi files) 0 01-18-2006 12:50 AM
- Update - Problems with Installation kmoore134 Installing PC-BSD 22 09-21-2005 11:17 AM


All times are GMT. The time now is 05:44 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.