Hi Fabien,

On Debian and similars you need zlib1g-dev installed. Please check and
let me know if that was the issue.

Paolo

On Wed, Dec 05, 2018 at 09:36:01AM +0100, Fabien VINCENT wrote:
> Hi list, 
> 
> Any help or pointer regarding a make failed as follow : 
> 
> # make 
> 
> [...] 
> 
>   CCLD     pmacct
>   CC       pmacctd.o
>   CCLD     pmacctd
> /usr/bin/ld: cannot find -lz
> collect2: error: ld returned 1 exit status
> Makefile:787: recipe for target 'pmacctd' failed
> make[2]: *** [pmacctd] Error 1
> make[2]: Leaving directory '/opt/pmacct/github_src/pmacct/src'
> Makefile:1260: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/opt/pmacct/github_src/pmacct/src'
> Makefile:675: recipe for target 'all-recursive' failed
> make: *** [all-recursive] Error 1 
> 
> Any missing libraries on an fresh install perhaps ? 
> 
> #/usr/bin/ld -lz -verbose 
> 
> [...]
> ==================================================
> attempt to open //usr/local/lib/x86_64-linux-gnu/libz.so failed
> attempt to open //usr/local/lib/x86_64-linux-gnu/libz.a failed
> attempt to open //lib/x86_64-linux-gnu/libz.so failed
> attempt to open //lib/x86_64-linux-gnu/libz.a failed
> attempt to open //usr/lib/x86_64-linux-gnu/libz.so failed
> attempt to open //usr/lib/x86_64-linux-gnu/libz.a failed
> attempt to open //usr/lib/x86_64-linux-gnu64/libz.so failed
> attempt to open //usr/lib/x86_64-linux-gnu64/libz.a failed
> attempt to open //usr/local/lib64/libz.so failed
> attempt to open //usr/local/lib64/libz.a failed
> attempt to open //lib64/libz.so failed
> attempt to open //lib64/libz.a failed
> attempt to open //usr/lib64/libz.so failed
> attempt to open //usr/lib64/libz.a failed
> attempt to open //usr/local/lib/libz.so failed
> attempt to open //usr/local/lib/libz.a failed
> attempt to open //lib/libz.so failed
> attempt to open //lib/libz.a failed
> attempt to open //usr/lib/libz.so failed
> attempt to open //usr/lib/libz.a failed
> attempt to open //usr/x86_64-linux-gnu/lib64/libz.so failed
> attempt to open //usr/x86_64-linux-gnu/lib64/libz.a failed
> attempt to open //usr/x86_64-linux-gnu/lib/libz.so failed
> attempt to open //usr/x86_64-linux-gnu/lib/libz.a failed
> /usr/bin/ld: cannot find -lz 
> 
> -- 
> 
> FABIEN VINCENT
> ------------------------------------------------------------------- 
> @beufanet
> -------------------------------------------------------------------

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


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

Reply via email to