Well the ./configure switch is:
AC_ARG_ENABLE( static-plugins,
[ --enable-static-plugins Enable static linked plugins
[sntop, default=dynamic]]],
ac_enable_static_plugins="yes",
ac_enable_static_plugins="no")
make sntop says it's static, but I've never tested it. I'm guessing from
the list, that there's static as in ntop doesn't create it's libntopxxxx and
libxxxxplugins. And then there's static w/ everything linked in.
To go beyond that, you will probably have to hand code your own linkage to
prevent the .so 's from being referenced (remember, ld has a strong
preference for a .so if it finds one).
-----Burton
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Nick Lindsell
> Sent: Tuesday, July 20, 2004 11:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [sub] RE: [Ntop-dev] Problems building static ntop (sntop)
>
>
> On Tue, 2004-07-20 at 14:37, Burton M. Strauss III wrote:
> > Try a clean checkout - Luca has removed the nfs Plugin.
>
> Thanks for the reply, Burton - I've just come to the
> same conclusion........
>
> Downloaded ntop-3.0.tgz from sourceforge and that builds OK.
> However the sntop it produces is not statically linked:-
>
> [EMAIL PROTECTED] ntop-3.0]# grep static Makefile
> ntops_LDFLAGS = $(ntop_LDFLAGS) -static
> sntop_LDFLAGS = $(ntop_LDFLAGS) -static
>
> [EMAIL PROTECTED] ntop-3.0]# file sntop
> sntop: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
> GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped.
>
>
> [EMAIL PROTECTED] ntop-3.0]# ldd sntop
> linux-gate.so.1 => (0x00e7e000)
> libm.so.6 => /lib/tls/libm.so.6 (0x005e0000)
> libpthread.so.0 => /lib/tls/libpthread.so.0 (0x006f2000)
> libresolv.so.2 => /lib/libresolv.so.2 (0x008d2000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x003fc000)
> libcrypt.so.1 => /lib/libcrypt.so.1 (0x0769b000)
> libc.so.6 => /lib/tls/libc.so.6 (0x004bd000)
> libssl.so.4 => /lib/libssl.so.4 (0x00d5b000)
> libcrypto.so.4 => /lib/libcrypto.so.4 (0x07352000)
> libpcap.so.0.8.3 => /usr/lib/libpcap.so.0.8.3 (0x00237000)
> libgd.so.2 => /usr/lib/libgd.so.2 (0x0084f000)
> libpng12.so.0 => /usr/lib/libpng12.so.0 (0x07987000)
> libz.so.1 => /usr/lib/libz.so.1 (0x006cf000)
> libdl.so.2 => /lib/libdl.so.2 (0x005da000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x004a0000)
> libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00d44000)
> libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00cda000)
> libcom_err.so.2 => /lib/libcom_err.so.2 (0x00cb1000)
> libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00cb6000)
> libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x00322000)
> libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00605000)
> libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x001f5000)
> libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x00b44000)
> libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x006e2000)
> [EMAIL PROTECTED] ntop-3.0]#
>
>
> Am I to understand that only the plugins are static not sntop itself?
>
> (BTW we are trying to get ntop/sntop onto a minimal Linux system running
> as a traffic shaper)
>
> (Also I should say that I'm very rusty at this and so make silly
> mistakes)
>
>
> Many thanks for your time.
>
>
>
>
>
>
> _____________________________________________________________________
> This message has been checked for all known viruses by
> MessageLabs on behalf of Rentokil Initial plc
>
> _______________________________________________
> Ntop-dev mailing list
> [EMAIL PROTECTED]
> http://listgateway.unipi.it/mailman/listinfo/ntop-dev
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev