LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-29-2009, 09:22 AM   #1
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Rep: Reputation: 17
firefox 32bit still statically linked?


(Sorry if this emerges as a double posting, the post disappeared on my side...)

According to http://www.vcn.bc.ca/~dugan/slackware-fonts/index.html:
Quote:
...the Firefox binary from mozilla.org is statically linked. This is, unfortunately, what's in 32-bit Slackware (64-bit Slackware has a custom-built Firefox package that is dynamically linked).
But when I run this on the ordinary, non-changed firefox from .../patches/packages
Code:
ldd /usr/lib/firefox-3.5.3/firefox-bin | grep free
        libfreetype.so.6 => /usr/lib/libfreetype.so.6
Doesn't this mean that firefox is NOT statically linked?
 
Old 10-29-2009, 11:06 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,370

Rep: Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596
ls -l /usr/lib/firefox-3.5.3/lib*
.. will show what's statically linked .. and their size ..
.. where the main lib 'libxul.so' is 14 MB.

But firefox also dynamically links to a lot of libraries,
that just by default are present on most *nix :

ldd /usr/lib/firefox-3.5.3/firefox-bin
.....
 
Old 10-29-2009, 11:07 AM   #3
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
it may be partially statically linked? Maybe the mozilla libs themselves? try comparing the files in /lib and /lib64 of the two slackware packages.

Last edited by lumak; 10-29-2009 at 05:32 PM. Reason: damn pen recognition
 
Old 10-29-2009, 11:30 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,556

Rep: Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266
Suffice to say, it is still necessary to recompile the 32-bit Firefox in order to get it to respect your subpixel rendering settings. I just checked.

Last edited by dugan; 10-29-2009 at 11:51 AM.
 
Old 10-29-2009, 12:30 PM   #5
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by dugan View Post
Suffice to say, it is still necessary to recompile the 32-bit Firefox in order to get it to respect your subpixel rendering settings. I just checked.
It seems that I get the same result at http://www.lagom.nl/lcd-test/subpixel.php for both the compiled and re-compiled version of firefox, are there any other sites to test firefox that should give me a different result? (I have 10-sub-pixel-rgb.conf in /etc/fonts/conf.d)
That is, how did you find out that the ordinary firefox doesn't follow your sub-pixel settings?
 
Old 10-29-2009, 05:16 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,556

Rep: Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266Reputation: 4266
With the custom Freetype, Fontconfig and Cairo packages, you can tell the difference between the font rendering in the stock and rebuilt versions of Firefox just by looking at the menu bars.

http://img.photobucket.com/albums/v2...page/stock.png
http://img.photobucket.com/albums/v2...recompiled.png

I don't think it makes a difference if you're using the stock Freetype, Fontconfig and Cairo.
 
Old 10-30-2009, 04:50 AM   #7
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by dugan View Post
With the custom Freetype, Fontconfig and Cairo packages, you can tell the difference between the font rendering in the stock and rebuilt versions of Firefox just by looking at the menu bars.

http://img.photobucket.com/albums/v2...page/stock.png
http://img.photobucket.com/albums/v2...recompiled.png
Ok, I have only recompiled freetype, that could be why I don't see any difference. By the way, is it only me who thinks that the text in the recompiled version looks blurrier than in the stock one?
 
Old 10-30-2009, 05:11 AM   #8
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.2
Posts: 1,595

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Why don't you just use the slackware64 firefox build to make a dynamically linked firefox package? Also I'm not positive but isn't cairo the problem library with statically linked firefox?
 
Old 10-30-2009, 05:30 AM   #9
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by Daedra View Post
Why don't you just use the slackware64 firefox build to make a dynamically linked firefox package? Also I'm not positive but isn't cairo the problem library with statically linked firefox?
As I wrote, I HAVE done that, but I didn't see that much difference, maybe because I didn't also re-compile other libraries but freetype.
 
Old 10-30-2009, 09:29 PM   #10
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.2
Posts: 1,595

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally Posted by Olaus View Post
As I wrote, I HAVE done that, but I didn't see that much difference, maybe because I didn't also re-compile other libraries but freetype.
Sorry about that, I got to stop replying at 3:00 AM. If you just recompiled freetype then that could very well be your problem, you need cairo and libXft recompiled with the font patches to get the full sub-subpixel rendering effect. But you also have to configure fontconfig to enable it. Or you can just use a .fonts.conf file in your /home directory (that's what I usually do).
 
  


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
Help to install 32bit firefox Sjellest Linux - Software 5 01-01-2007 10:36 AM
rebuild statically linked ports 24jedi *BSD 2 09-15-2006 10:56 PM
Really statically linked skype client ? tothzp Linux - Software 1 04-21-2006 07:17 AM
fully statically linked posix thread program on PPC mmiglia Linux - Software 0 09-22-2004 07:06 AM
Gnucash statically linked binary melinda_sayang Slackware 7 07-11-2004 02:32 AM

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

All times are GMT -5. The time now is 01:16 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