Comments (3)
Is bmx7 supposed to compile on Debian, too?
Definitely yes.
I just reproduced this on my debian-10 VM and everything runs as expected.
Could you provide a more step by step description of your approach?
Did you follow the README directives? Did you try cloning the GitHub repo at the current commit of master?
from bmx7.
I need to check out the repository from another machine, because the target I want to compile on is IPv6 only and github won't do IPv6 sadly. Then I copy it via scp (mc actually) to the target device.
I Install plenty of software like asked for in the ReadMe via apt, like those:
libiw-dev libjson-c-dev build-essential libmbedtls12 libmbedtls-dev libiw-dev
Then I go into the src directory and run this:
make EXTRA_CFLAGS="-DCRYPTLIB=MBEDTLS_2_4_0"
and then I run ./bmx7 in the same directory. The error shows up.
It's virtualized Debian 10 (qemu) on Proxmox 6. Don't know if that might be important.
This is the make output:
setup@debian1:~/bmx7/src$ make EXTRA_CFLAGS="-DCRYPTLIB=MBEDTLS_2_4_0"
make bmx7
make[1]: Verzeichnis „/home/setup/bmx7/src“ wird betreten
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c bmx.c -o bmx.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c key.c -o key.o
key.c: In function ‘kSetOutAction_listed’:
key.c:250:8: warning: unused variable ‘TODO_fix_catching_this_when_applying_trusts_or_limits’ [-Wunused-variable]
IDM_T TODO_fix_catching_this_when_applying_trusts_or_limits;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
key.c: In function ‘keyNode_delCredits_’:
key.c:863:8: warning: unused variable ‘TODO_FIX_THIS’ [-Wunused-variable]
IDM_T TODO_FIX_THIS;
^~~~~~~~~~~~~
At top level:
key.c:180:8: warning: ‘kCol_FALSE’ defined but not used [-Wunused-function]
int8_t kCol_FALSE(struct key_node *kn)
^~~~~~~~~~
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c node.c -o node.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c crypt.c -o crypt.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c sec.c -o sec.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c content.c -o content.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c msg.c -o msg.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c z.c -o z.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c iid.c -o iid.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c desc.c -o desc.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c metrics.c -o metrics.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c ogm.c -o ogm.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c link.c -o link.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c iptools.c -o iptools.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c tools.c -o tools.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c plugin.c -o plugin.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c list.c -o list.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c allocate.c -o allocate.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c avl.c -o avl.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c hna.c -o hna.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c control.c -o control.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c schedule.c -o schedule.o
In file included from schedule.c:30:
schedule.c: In function ‘wait4Event’:
bmx.h:464:24: warning: macro expands to multiple statements [-Wmultistatement-macros]
#define timercpy(d, a) (d)->tv_sec = (a)->tv_sec; (d)->tv_usec = (a)->tv_usec;
^
schedule.c:457:6: note: in expansion of macro ‘timercpy’
timercpy(&(pb.i.tv_stamp), tv_stamp);
^~~~~~~~
schedule.c:456:5: note: some parts of macro expansion are not guarded by this ‘else’ clause
else
^~~~
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c ip.c -o ip.o
cc -pedantic -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Os -g3 -std=gnu99 -DGIT_REV=\"0\" -DAVL_5XLINKED -DDEBUG_MALLOC -DCORE_LIMIT=20000 -DCRYPTLIB=MBEDTLS_2_4_0 -c prof.c -o prof.o
prof.c:88:5: warning: ‘prof_check’ defined but not used [-Wunused-function]
int prof_check(struct prof_ctx *p, int childs)
^~~~~~~~~~
cc bmx.o key.o node.o crypt.o sec.o content.o msg.o z.o iid.o desc.o metrics.o ogm.o link.o iptools.o tools.o plugin.o list.o allocate.o avl.o hna.o control.o schedule.o ip.o prof.o -o bmx7 -g3 -Wl,-export-dynamic -ldl -liw -lz -lm -lmbedcrypto
make[1]: Verzeichnis „/home/setup/bmx7/src“ wird verlassen
# further make targets: help, libs, build_all, strip[_libs|_all], install[_libs|_all], clean[_libs|_all]
from bmx7.
It's working now. Don't know exactly what was wrong, maybe the fact that I had mbedtls 2.4 installed from sources as well as this libmbedtls-dev via dpkg1, dunno exactly.
Apart from that I also tried mbedtls 2.16 but that didn't work either.
from bmx7.
Related Issues (20)
- bmx7-info calls returns an invalid JSON structure when no interfaces are configured or no links are established HOT 1
- use wireguard for tunnels HOT 5
- add plugin for ipv6 distribution HOT 1
- build with mbedtls v2.16.0 fails HOT 4
- Increasing the BMX7 Topology html view
- Add introduction to documentation HOT 1
- Glossary Creation
- bmx7 on OpenWrt stable 18.06.04 nlmsg_len messages HOT 6
- Command Line arguments refactor HOT 2
- Document Plugin Creation HOT 1
- MLC refactor
- table plugin build fail. HOT 1
- runtimeDir not used for connect HOT 8
- repair html view (luci-app-bmx7): nothing goes except topology HOT 6
- fighting with MTU on VirtualBox
- Bus error (core dumped) on debian 10.7 HOT 1
- channel information i originators HOT 2
- MTU issues with MT7620 and 802.1ad HOT 1
- Is the bmx project dead? HOT 1
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 bmx7.