Vnstat2 errors

  • Running 2.1

    Have vnstat2 1.11 installed from
    Created my databases with vnstat -u -i re0, vnstat -u -i re1, and vnstat -u -i re2

    Now when I run vnstati, I get libgd errors:

    [2.1-DEVELOPMENT][root@pfsense]/root(14): vnstati --help
    /libexec/ Shared object "" not found, required by "vnstati"

    When running vnstat, I get segmentation faults:

    [2.1-DEVELOPMENT][root@pfsense]/root(12): vnstat -i re0
    Database updated: Sat Jan  7 19:03:01 2012
       re0 since 01/07/12
              rx:  413 KiB      tx:  53 KiB      total:  466 KiB
                         rx      |     tx      |    total    |   avg. rate
    Segmentation fault (core dumped)


  • Rebel Alliance Global Moderator


    is part of
    pkg_info gd-2.0.35_7,1 -L
    Information for gd-2.0.35_7,1:


    I would have to guess you don't have that package or an older version like or something - do a pkg_info and should show you all the packages you have installed, do you have gd-something?

    how exactly did you install the package, normally it should of grabbed/verified dependencies.

  • [2.1-DEVELOPMENT][root@pfsense]/root(1): pkg_info
    bandwidthd-2.0.1_4  Tracks bandwidth usage by IP address
    bsdinstaller-2.0.2011.1125 BSD Installer mega-package
    expat-2.0.1_1       XML 1.0 parser written in C
    fontconfig-2.8.0,1  An XML-based font configuration API for X Windows
    freetype2-2.4.7     A free and portable TrueType font rendering engine
    gd-2.0.35_7,1       A graphics library for fast creation of images
    gettext-    GNU gettext package
    iconv-2.0_3         Charset conversion library and utilities
    jpeg-8_3            IJG's jpeg compression utilities
    libiconv-1.13.1_1   A character set conversion library
    perl-5.10.1_3       Practical Extraction and Report Language
    pkg-config-0.25_1   A utility to retrieve information about installed libraries
    png-1.4.8           Library for manipulating PNG images
    vnstat-1.11         A console-based network traffic monitor

    I installed vnstat through the commmand pkg_add -r

  • Just tried the following:

    [2.1-DEVELOPMENT][root@pfsense]/root(19): pkg_delete gd-2.0.35_7,1 -f
    pkg_delete: package 'gd-2.0.35_7,1' is required by these other packages
    and may not be deinstalled (but I'll delete it anyway):
    pkg_delete: file '/usr/local/bin/annotate' doesn't exist
    pkg_delete: file '/usr/local/bin/bdftogd' doesn't exist
    pkg_delete: file '/usr/local/bin/gd2copypal' doesn't exist
    pkg_delete: file '/usr/local/bin/gd2togif' doesn't exist
    pkg_delete: file '/usr/local/bin/gd2topng' doesn't exist
    pkg_delete: file '/usr/local/bin/gdcmpgif' doesn't exist
    pkg_delete: file '/usr/local/bin/gdlib-config' doesn't exist
    pkg_delete: file '/usr/local/bin/gdparttopng' doesn't exist
    pkg_delete: file '/usr/local/bin/gdtopng' doesn't exist
    pkg_delete: file '/usr/local/bin/giftogd2' doesn't exist
    pkg_delete: file '/usr/local/bin/pngtogd' doesn't exist
    pkg_delete: file '/usr/local/bin/pngtogd2' doesn't exist
    pkg_delete: file '/usr/local/bin/webpng' doesn't exist
    pkg_delete: couldn't entirely delete package (perhaps the packing list is
    incorrectly specified?)
    [2.1-DEVELOPMENT][root@pfsense]/root(20): pkg_add -r
    Fetching Done.
    [2.1-DEVELOPMENT][root@pfsense]/root(21): ldd /usr/local/bin/vnstati
    /usr/local/bin/vnstati: => /usr/lib32/ (0x280a1000) => not found (0x0) => /usr/lib32/ (0x280ba000)

    No love…..

  • Rebel Alliance Global Moderator


    ldd /usr/local/bin/vnstati
   => /lib/ (0x280aa000)
   => /usr/local/lib/ (0x280c4000)
   => /lib/ (0x28100000)
   => /usr/local/lib/ (0x2821a000)
   => /usr/local/lib/ (0x28310000)
   => /lib/ (0x28338000)
   => /usr/local/lib/ (0x2834a000)
   => /usr/local/lib/ (0x28380000)
   => /usr/lib/ (0x283f8000)

    why is your not in lib?  why yours is /usr/lib32/

    I do not even have that directory - what is your ldconfig -r look like, so for that first its here for me

    search directories: /usr/lib:/usr/local/lib:/lib
    109:-lm.5 => /lib/

    I think your seach path for libraries is off for some reason?

  • Appreciate the help.  Here's what I'm getting:

    [2.1-DEVELOPMENT][root@pfsense]/root(2): ldconfig -r
    	search directories: /usr/lib:/usr/local/lib:/lib
    	0:-lauditd.5 => /usr/lib/
    	1:-lbsm.3 => /usr/lib/
    	2:-lnetgraph.4 => /usr/lib/
    	3:-lcom_err.5 => /usr/lib/
    	4:-lelf.1 => /usr/lib/
    	5:-lform.5 => /usr/lib/
    	6:-lmenu.5 => /usr/lib/
    	7:-lpanel.5 => /usr/lib/
    	8:-lformw.5 => /usr/lib/
    	9:-lmenuw.5 => /usr/lib/
    	10:-lpanelw.5 => /usr/lib/
    	11:-lradius.4 => /usr/lib/
    	12:-lrpcsvc.5 => /usr/lib/
    	13:-ltacplus.4 => /usr/lib/
    	14:-ldevinfo.5 => /usr/lib/
    	15:-larchive.5 => /usr/lib/
    	16:-lbz2.4 => /usr/lib/
    	17:-lcalendar.5 => /usr/lib/
    	18:-ldwarf.2 => /usr/lib/
    	19:-lfetch.6 => /usr/lib/
    	20:-lftpio.8 => /usr/lib/
    	21:-llzma.5 => /usr/lib/
    	22:-lmagic.4 => /usr/lib/
    	23:-lmemstat.3 => /usr/lib/
    	24:-lmp.7 => /usr/lib/
    	25:-lopie.6 => /usr/lib/
    	26:-lpam.5 => /usr/lib/
    	27:-lrt.1 => /usr/lib/
    	28:-lpmc.5 => /usr/lib/
    	29:-lproc.2 => /usr/lib/
    	30:-lsmb.4 => /usr/lib/
    	31:-lthread_db.3 => /usr/lib/
    	32:-lugidfw.4 => /usr/lib/
    	33:-lusbhid.4 => /usr/lib/
    	34:-lusb.2 => /usr/lib/
    	35:-lvgl.6 => /usr/lib/
    	36:-lwrap.6 => /usr/lib/
    	37:-ldialog.7 => /usr/lib/
    	38:-lgomp.1 => /usr/lib/
    	39:-lgnuregex.5 => /usr/lib/
    	40:-lhistory.8 => /usr/lib/
    	41:-lssl.6 => /usr/lib/
    	42:-lssh.5 => /usr/lib/
    	43:-lstdc++.6 => /usr/lib/
    	44:-lcharset.1 => /usr/local/lib/
    	45:-liconv.3 => /usr/local/lib/
    	46:-lasprintf.0 => /usr/local/lib/
    	47:-lgettextpo.5 => /usr/local/lib/
    	48:-lintl.9 => /usr/local/lib/
    	49:-laura.3 => /usr/local/lib/
    	50:-ldfui.4 => /usr/local/lib/
    	51:-lpng.6 => /usr/local/lib/
    	52:-lmhash.2 => /usr/local/lib/
    	53:-lipsec.0 => /usr/local/lib/
    	54:-lart_lgpl_2.5 => /usr/local/lib/
    	55:-lcurl.6 => /usr/local/lib/
    	56:-lczmq.0 => /usr/local/lib/
    	57:-levent-1.4.4 => /usr/local/lib/
    	58:-lexpat.6 => /usr/local/lib/
    	59:-lfreetype.9 => /usr/local/lib/
    	60:-lidn.17 => /usr/local/lib/
    	61:-llber-2.4.8 => /usr/local/lib/
    	62:-lldap-2.4.8 => /usr/local/lib/
    	63:-llzo2.2 => /usr/local/lib/
    	64:-lpcre.0 => /usr/local/lib/
    	65:-lpdel.0 => /usr/local/lib/
    	66:-lracoon.0 => /usr/local/lib/
    	67:-lrrd.2 => /usr/local/lib/
    	68:-lssh2.1 => /usr/local/lib/
    	69:-lxml2.5 => /usr/local/lib/
    	70:-lzmq.0 => /usr/local/lib/
    	71:-lzmq.1 => /usr/local/lib/
    	72:-ljpeg.11 => /usr/local/lib/
    	73:-lgd.4 => /usr/local/lib/
    	74:-lfontconfig.1 => /usr/local/lib/
    	75:-lbiconv.2 => /usr/local/lib/
    	76:-lcrypt.5 => /lib/
    	77:-lc.7 => /lib/
    	78:-lncurses.8 => /lib/
    	79:-lkvm.5 => /lib/
    	80:-lm.5 => /lib/
    	81:-lmd.5 => /lib/
    	82:-lncursesw.8 => /lib/
    	83:-lsbuf.5 => /lib/
    	84:-lutil.8 => /lib/
    	85:-lalias.7 => /lib/
    	86:-lbegemot.4 => /lib/
    	87:-lbsnmp.5 => /lib/
    	88:-lcam.5 => /lib/
    	89:-ldevstat.7 => /lib/
    	90:-ledit.7 => /lib/
    	91:-lbsdxml.4 => /lib/
    	92:-lgeom.5 => /lib/
    	93:-lipsec.4 => /lib/
    	94:-ljail.1 => /lib/
    	95:-lkiconv.4 => /lib/
    	96:-lpcap.7 => /lib/
    	97:-lthr.3 => /lib/
    	98:-lufs.5 => /lib/
    	99:-lz.5 => /lib/
    	100:-lavl.2 => /lib/
    	101:-lctf.2 => /lib/
    	102:-ldtrace.2 => /lib/
    	103:-lnvpair.2 => /lib/
    	104:-lumem.2 => /lib/
    	105:-luutil.2 => /lib/
    	106:-lzfs.2 => /lib/
    	107:-lzpool.2 => /lib/
    	108:-lgcc_s.1 => /lib/
    	109:-lreadline.8 => /lib/
    	110:-lssp.0 => /lib/
    	111:-lcrypto.6 => /lib/

    80:-lm.5 => /lib/, so same as you.

  • Rebel Alliance Global Moderator

    then why are you showing this??

    usr/local/bin/vnstati: => /usr/lib32/ (0x280a1000)

  • No idea.

    Anyone have any ideas?

  • @akghetto:

    Have vnstat2 1.11 installed from


    Just tried the following:

    [2.1-DEVELOPMENT][root@pfsense]/root(20): pkg_add -r

    you installed vnstat from i386 repo and gd from amd64 repo.

    what pfsense version are you using? i386 or amd64?

  • doh!


    So where do I get vnstat for amd64?

  • booya!

    Also had to pkg_delete and pkg_add gd, jpeg, freetype, fontconfig, and even bandwidthd BUT IT'S WORKING!

    Thanks for the catch marcelloc, and for the investigative work that got us there johnpoz.