Comments (6)
Thanks for reporting also the problem in install-data-hook
. The next commit should fix these issues.
from vnstat.
Looks like the documentation I followed regarding CHOST
and CBUILD
wasn't correct and I failed to check if those variables end up having any content. That's why the install-data-hook
changes don't work.
from vnstat.
Those undefined reference to `rpl_malloc'
and undefined reference to `rpl_realloc'
errors appear to be caused by the AC_FUNC_MALLOC
and AC_FUNC_REALLOC
lines in configure.ac
. I'm not even sure if those lines are really needed but I'll need to do some more digging first before removal just to make sure nothing else then breaks. Looking at the autoconf documentation, I suspect there are also few other unnecessary lines currently included.
There's two workarounds that I could find:
Option 1:
export ac_cv_func_malloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull=yes
- continue with the
configure
command as you had done
Option 2:
- remove
AC_FUNC_MALLOC
andAC_FUNC_REALLOC
lines fromconfigure.ac
- run
autoreconf -v
- continue with the
configure
command as you had done
from vnstat.
Hi,
Thank you for your complete answer! Before posting this issue, I saw similar errors on other projects. The "fixes" are very similar to you. I was able to build vnstat
using both options you provided. 👍
I also needed to remove install-data-hook
block from Makefile.in
because the final cross binary cannot be run on the host. I wanted to inform you of this.
from vnstat.
I thank you for the very fast hard work! The malloc/realloc
changes allows me to cross compile vnstat
. Unfortunately, adding autoconf definitions CHOST
and CBUILD
does not seem to work. The install-data-hook
target is still launched. I can tune the Makefile but here the output for debugging purpose: https://framagit.org/Ypnose/solyste/snippets/364/raw
from vnstat.
Kudos for the valuable help. It does the trick!
from vnstat.
Related Issues (20)
- Traffic rate for * higher than set maximum HOT 6
- reference to vnstat-server in offical page in vnstat related section HOT 2
- vnstatd 2.9, kernel "NULL pointer dereference" HOT 3
- Is vnstati based on other charting software ? If so, which one ? HOT 1
- BUILD FAIL: configure cannot guess build type HOT 1
- Wrong date if you want to track the daily use HOT 5
- Pfsense retention HOT 1
- vnstat: no longer works after databases/sqlite3 disabled DQS HOT 2
- Database size growing at alarming rate. Best ways to curb it? HOT 18
- Vnstat virtual interface not appearing HOT 7
- New VLANs not discovered HOT 2
- 95th percentile bandwidth calculation HOT 18
- wrong stat data for some interface HOT 17
- Calculate Traffic when vnstat stopped! HOT 4
- how to recover the database when i modify the time and updae the database force HOT 2
- How to install latest version? HOT 6
- Publish to snap store HOT 7
- vnstat measures file sharing from one device to another as transmission HOT 3
- How to install vnstat 2.9+ on Debian Bookworm. HOT 4
- Wireguard interface disabled, can't enable HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vnstat.