compiling error on fedora 33

Compilation and installation questions and stories
Post Reply
hashbang
Posts: 91
Joined: 12 Jul 2015, 10:28

compiling error on fedora 33

Post by hashbang » 15 Dec 2020, 10:16

HI,
I'd to compile accel on fedora 33 because I needed net-snmp 5.9 in which i can limit the interfaces (my earlier post regarding accel freezing). Now I'm getting this error net-snmp is 5.9.2.

[ 79%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statCore.c.o
/opt/accel-ppp-code/accel-pppd/extra/net-snmp/statCore.c: In function ‘handle_statCoreMemRss’:
/opt/accel-ppp-code/accel-pppd/extra/net-snmp/statCore.c:114:28: warning: implicit declaration of function ‘sysconf’; did you mean ‘sscanf’? [-Wimplicit-function-declaration]
114 | unsigned long page_size = sysconf(_SC_PAGE_SIZE);
| ^~~~~~~
| sscanf
/opt/accel-ppp-code/accel-pppd/extra/net-snmp/statCore.c:114:36: error: ‘_SC_PAGE_SIZE’ undeclared (first use in this function)
114 | unsigned long page_size = sysconf(_SC_PAGE_SIZE);
| ^~~~~~~~~~~~~
/opt/accel-ppp-code/accel-pppd/extra/net-snmp/statCore.c:114:36: note: each undeclared identifier is reported only once for each function it appears in
/opt/accel-ppp-code/accel-pppd/extra/net-snmp/statCore.c:116:41: warning: implicit declaration of function ‘getpid’; did you mean ‘getpt’? [-Wimplicit-function-declaration]
116 | sprintf(statm_fname, "/proc/%i/statm", getpid());
| ^~~~~~
| getpt
make[2]: *** [accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/build.make:160: accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statCore.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1201: accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/all] Error 2
make: *** [Makefile:171: all] Error 2
thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests