Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: can we remove the fltk libs?, does flua even use them?< Next Oldest | Next Newest >
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Jan. 13 2006,23:51 QUOTE

I was looking at the size of flua compared to the size of regular old lua and it's about 3X as large.  It looks almost like the portions it uses of the fltk libs were compiled into it.  I see we have two libs called

/usr/lib/libfltk-utf8.so.1.1
/usr/lib/libfltk-utf8_images.so.1.1

I removed those two libs (618376 + 56852 = 675228 bytes) and it looked like flua still worked.  Do those libs get used by any other programs?  

I ran ldd on flua to make sure that it doesn't call those libraries:

dsl@box:~$ ldd /bin/flua
       libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40019000)
       libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40026000)
       libm.so.6 => /lib/libm.so.6 (0x400e2000)
       libc.so.6 => /lib/libc.so.6 (0x40104000)
       libdl.so.2 => /lib/libdl.so.2 (0x40232000)
       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 14 2006,01:45 QUOTE

Flua is just one file, so i assume you're right that it doesn't use any external lua or fltk files.  It's possible that those libs are/were used by another application, such as flwriter.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
NIGRa
Unregistered






Posted: Jan. 14 2006,07:20 QUOTE

well going by your assumption, then it needn't be herre anymore! Ted has been placed back into its rightful throne(sic)
hooray for more space
Back to top
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Jan. 14 2006,13:30 QUOTE

Mikshaw, That's true, but how can you check every applications.  I wrote this little script that runs ldd on every file in a directory that has the ELF magic cookie in it's header.  I assumed that they would be the only files that needed to be tested.  Is that true?

Code Sample
#!/bin/bash

if [ ! -d $1 ]; then
    COOKIE=`head -c4 $1`
    if [ `echo $COOKIE | tail -c4` = "ELF" ]; then

         if ( ldd $1 | grep fltk ); then
              echo found in file: $1
         fi
    fi
fi


I ran this on /bin, /usr/bin, and /usr/X11R6/bin but found no matches.  This line works as well to look for matches:

for i in /usr/X11R6/bin/*; do ldd $i | grep fltk; done
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Jan. 14 2006,16:32 QUOTE

FLwriter uses a modified fltk library of which you have found.
Since it is modified, i.e., a non-standard library it is most unlikely that any other app would be using it.
Back to top
Profile PM WEB 
4 replies since Jan. 13 2006,23:51 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: can we remove the fltk libs?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code