Re: Excluding features from libEtPan library

[email protected] Wed, 28 Jun 2006 13:41:37 +0200 (CEST)
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
Hi Tom,

> I would like to optimize the size of the libetpan.so library (version
> 0.45).
> Since the result of stripping the file is not sufficient, I would like
> to exclude some features like localstorage/NNTP/Hotmail support, which
> are not used by my application.

I'm not sure if stripping functionality makes that much sense (unless
you're trying to fit your application on a floopy disk :-)). Nonetheless I
just tried stripping it myself and I think I can give you some hints.

> - Is the configure script accepting any relevant options?

As far as I know it doesn't.

> - In the generated Makefile, I changed the SUBDIRS variable to contain
> only the needed subdirectories from the src directory. Compiling and
> linking seems to succeed, but no libetpan.so is produced?

I succeeded by modifying the following files:
- strip SUBLIBS and SUBDIRS from src/driver/implementation/Makefile
- do the same for src/low-level/Makefile
- have a look at src/main/libetpan.h and remove the includes for the parts
you just removed (the "sections" are commented).

Doing that I succeeded in compiling. The generated libs can be found in
src/.libs. Please note that I didn't try it with the latest release but
with some old cvs checkout I had lieing around somewhere.

> - Executing "make install" from the src level fails to find -lssl (which
> is found however when installing a clean libEtPan out-of-the-box)...

I didn't try running make install as I didn't want to screw my previous
install, but ldd libetpan.so.6.1.0 yields:
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00002b28f4e6b000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8
(0x00002b28f4fb3000)
        libdb-4.4.so => /usr/lib/libdb-4.4.so (0x00002b28f5224000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00002b28f542b000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00002b28f5543000)
        libc.so.6 => /lib/libc.so.6 (0x00002b28f5658000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002b28f5897000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00002b28f599b000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00002b28f5ab1000)
        /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
so ssl seems to be fine.

> Any ideas on how to proceed appreciated.

Hope I could help.

Kind regards,
Michael


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642