redhat config tools

Place to discuss Fedora and/or Red Hat

Postby Membrax » Tue Dec 23, 2003 4:36 pm

I'll bet you have "/usr/local/lib" listed in your /etc/ld.so.conf as well.


You've won ! It's in it !
Ouch, what a headache !

OK, I'll proceed and keep you informed.
Give me 2 min.
Membrax
scripter
scripter
 
Posts: 99
Joined: Tue Oct 21, 2003 2:04 pm
Location: 50'48''N - 4'21''E

Postby Void Main » Tue Dec 23, 2003 4:45 pm

You've more than likely ran into the same problem on Windows at some point if you have used it for any length of time. It's the same as having two DLL files with the same name, two different versions in two different directories in your path. If a program expects one version but loads the other version because it shows up in the PATH first it will likely cause big problems with the application.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Membrax » Tue Dec 23, 2003 4:46 pm

ldconfig has been executed. As root obviously.
No output received.

When launchingredhat-config-services :

[root@Houston local]# cd /
[root@Houston /]# /sbin/ldconfig
[root@Houston /]# redhat-config-services
Traceback (most recent call last):
File "/usr/share/redhat-config-services/serviceconf.py", line 26, in ?
import gtk
File "/usr/lib/python2.2/site-packages/rhpl/__init__.py", line 43, in ?

ImportError: /usr/lib/libfontconfig.so.1: undefined symbol: FT_Get_BDF_Property


But I'll have to go to bed now, already 00:00 here in Brussels.

See you Master ! :D
Membrax
scripter
scripter
 
Posts: 99
Joined: Tue Oct 21, 2003 2:04 pm
Location: 50'48''N - 4'21''E

Postby Void Main » Tue Dec 23, 2003 5:49 pm

Now you've got be confuzled because that just can't be, unless of course you have *another* old library in another directory in your list of library paths with the same name that is being loaded instead of the proper one. You renamed the /usr/local/lib/libfreetype.so.6 to something else, and then ran /sbin/ldconfig right? Now what does "ldd -d /usr/lib/libfontconfig.so.1" return?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Membrax » Wed Dec 24, 2003 10:19 am

Here's the output of the command :

Code: Select all
[root@Houston root]# ldd -d /usr/lib/libfontconfig.so.1
        libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x00f5b000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00d3d000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00245000)
        libc.so.6 => /lib/tls/libc.so.6 (0x002fa000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00aa9000)
Membrax
scripter
scripter
 
Posts: 99
Joined: Tue Oct 21, 2003 2:04 pm
Location: 50'48''N - 4'21''E

Postby Void Main » Wed Dec 24, 2003 11:26 am

It's still pointing to the wrong library. It will not run until the first line of that output points to the correct libfreetype.so.6. A nasty workaround to solving your problem would be to copy /usr/lib/libfreetype.so.6 to /usr/local/lib.

Removing /usr/local/lib/libfreetype.so.6, removing the /usr/local/lib line from your /etc/ld.so.conf and running "/sbin/ldconfig" should have solved that problem and caused the correct library to be found. The only other thing I can think may be possible is those libraries in question are loaded in memory and are being used by other apps (X, KDE, or Gnome for instance) and maybe all apps using those libraries have to be shut down and so the shared library can be unloaded and when it gets reloaded will pick up on the proper library. I don't have the time to investigate at this moment whether this is true or not. I assume you have shut down and restarted your system which would surely have unloaded all libraries in question (although I don't believe a reboot is necessary, a restart of X, gdm/kdm, xfs, etc may be required though, again not sure).
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Membrax » Wed Dec 24, 2003 12:19 pm

:wink:

just read your post and did :
- renamed the one in /usr/local/lib
- removed pointig line from /etc/ld.conf
- ran /sbin/ldconfig (no output seen)

Now I've just done :

Code: Select all
[root@Houston /]# ldd -d /usr/lib/libfontconfig.so.1
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00bff000)
        libz.so.1 => /usr/lib/libz.so.1 (0x0081a000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00111000)
        libc.so.6 => /lib/tls/libc.so.6 (0x001bb000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00928000)


I guess this points correctly now.

I give a try to redhat-config-services :
Yeeeeeeeeeeeepiiiiiiiiiiieeeeeeeeee !!!!!!!!
It really works !!!!!

U ARE THE MAN !!!!!!!!!!!!!!!
I really don't know what to say.

Many many thanks !

I'll leave you here coz I've X-Mas family obligations ...

Merry X-Mas to you !!!!!! ... and thanks again !
Membrax
scripter
scripter
 
Posts: 99
Joined: Tue Oct 21, 2003 2:04 pm
Location: 50'48''N - 4'21''E

Postby Void Main » Wed Dec 24, 2003 12:32 pm

Great! Just in time too as I am about to head out the door for a week or two. You really had me going there for a minute and I was beginning to think I was losing my mind. :) Happy holidays!
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Previous

Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 0 guests

cron