Re: [pmacct-discussion] 1.7.5 with static ndpi

2020-06-24 Thread Paolo Lucente


Hi Steve,

Apart from asking the obvious - personal curiosity! - why do you want to
link against a static nDPI library. There are a couple main avenues i
can point you to depending on your goal:

1) You can supply configure with a --with-ndpi-static-lib knob; guess
the static lib and the dynamic lib are in different places, you should
be game. Even simplifying further: should you make the 'shared object'
library disappear then things will be forced onto the static library;

2) did you see the "pmacct & Docker" email that did just circulate on
the list? In the seek for a static library? Perhaps time to look into a
container instead? :-D

Paolo 

On Tue, Jun 23, 2020 at 01:44:32PM -0400, Stephen Clark wrote:
> Hello,
> 
> Can anyone give the magic configuration items I need to build using a static
> libndpi.a
> 
> I have spend all day trying to do this without any success. It seem like I
> tried every combination
> that ./configure --help displays.
> 
> Any help would be appreciated.
> 
> Thanks,
> Steve
> 
> 
> ___
> pmacct-discussion mailing list
> http://www.pmacct.net/#mailinglists

___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists


[pmacct-discussion] pmacct & Docker

2020-06-24 Thread Paolo Lucente


Dears,

A brief email to say that thanks to the monumental efforts of Marc Sune
and Claudio Ortega we could bring pmacct a bit closer to the Docker
universe. Since today we are shipping official pmacct containers on
Docker Hub ( https://hub.docker.com/u/pmacct ) organized as follows:

* A special container, base container, that is the base of the rest of
containers with all pmacct daemons installed and bash as an entry point.
It can be useful to debug and to create your customized docker image.

* One container per daemon (pmacctd, nfacctd, sfacctd, uacctd, pmbgpd,
pmbmpd, pmtelemetryd) where the entry point is the daemon itself and a
config file is expected in /etc/pmacct . For more info you can read the
'How to use it' section of the description on Docker Hub (ie.
https://hub.docker.com/r/pmacct/nfacctd ).

Three tags are being offered:

* latest: latest stable image of that container
* vX.Y.Z: version specific tag
* bleeding-edge: only for the brave. Latest commit on master

We also created a docker-doct...@pmacct.net email address which is going
to be used for maintenance and development. Should you have any
comments, questions, critics, bug reports please write us there. Marc
and myself will be reading. We are eager to hear goods and bads from you. 

Finally, although fragmentation is not always avoidable, in an effort to
prevent confusion among users, if you had your Dockerfile published on,
say, GitHub or Docker Hub we would much appreciate if you could make it
explicit / clear that it is an unofficial effort. You are very welcome
to join effort with us if you have an interest in pmacct & Docker!

Regards,
Paolo 

___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists


[pmacct-discussion] 1.7.5 with static ndpi - updated -again

2020-06-24 Thread Stephen Clark

Spoke to soon,

Still created pmacctd using shared lib for ndpi

 ldd pmacct/src/pmacctd
    linux-vdso.so.1 =>  (0x7ffeb1be6000)
    libndpi.so.3 => /usr/local/lib/libndpi.so.3 (0x7f4258388000)

Updating - I logged out - logged back in

used
./configure  '--enable-ndpi' --with-ndpi-static-lib=/usr/local/lib '--enable-l2' 
'--enable-traffic-bins' '--enable-bgp-bins' '--enable-bmp-bins' '--enable-st-bins'


and it built using ndpi static lib just fine.


Hello,

Can anyone give the magic configuration items I need to build using a static 
libndpi.a


I have spend all day trying to do this without any success. It seem like I tried 
every combination

that ./configure --help displays.

Any help would be appreciated.

Thanks,
Steve




___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists


[pmacct-discussion] 1.7.5 with static ndpi - updated

2020-06-24 Thread Stephen Clark

Updating - I logged out - logged back in

used
./configure  '--enable-ndpi' --with-ndpi-static-lib=/usr/local/lib '--enable-l2' 
'--enable-traffic-bins' '--enable-bgp-bins' '--enable-bmp-bins' '--enable-st-bins'


and it built using ndpi static lib just fine.


Hello,

Can anyone give the magic configuration items I need to build using a static 
libndpi.a


I have spend all day trying to do this without any success. It seem like I tried 
every combination

that ./configure --help displays.

Any help would be appreciated.

Thanks,
Steve



___
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists