can we remove the fltk libs?Forum: DSL Ideas and Suggestions Topic: can we remove the fltk libs? started by: clacker Posted by clacker on Jan. 13 2006,23:51
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) Posted by mikshaw on Jan. 14 2006,01:45
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.
Posted by NIGRa on Jan. 14 2006,07:20
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 Posted by clacker on Jan. 14 2006,13:30
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?
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 Posted by roberts on Jan. 14 2006,16:32
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. |