osh
Posts: 2
Joined: Sat Oct 08, 2016 7:18 pm

Nodogsplash, build problems

Sun Oct 09, 2016 1:31 pm

Has anyone successfully built "nodogsplash" on an rpi3, or knows if there is a package of it somewhere?

https://github.com/nodogsplash/nodogsplash

I've tried building it, had to install the libmicrohttpd-dev, but that only got me a few steps further.

Looking for someone with build experience here.

PiZed
Posts: 2
Joined: Tue Nov 15, 2016 1:11 pm

Re: Nodogsplash, build problems

Tue Nov 15, 2016 1:13 pm

Hi,

I'm having the same issue, did you find a solution?

Thanks.

PiZed
Posts: 2
Joined: Tue Nov 15, 2016 1:11 pm

Re: Nodogsplash, build problems

Tue Nov 15, 2016 1:17 pm

Code: Select all

pi@raspberrypi:~/nodogsplash-master $ make
cc  -O0 -g -Wall -Isrc -c src/auth.c -o src/auth.o
cc  -O0 -g -Wall -Isrc -c src/client_list.c -o src/client_list.o
cc  -O0 -g -Wall -Isrc -c src/commandline.c -o src/commandline.o
cc  -O0 -g -Wall -Isrc -c src/conf.c -o src/conf.o
cc  -O0 -g -Wall -Isrc -c src/debug.c -o src/debug.o
cc  -O0 -g -Wall -Isrc -c src/firewall.c -o src/firewall.o
cc  -O0 -g -Wall -Isrc -c src/fw_iptables.c -o src/fw_iptables.o
cc  -O0 -g -Wall -Isrc -c src/gateway.c -o src/gateway.o
src/gateway.c:63:24: fatal error: microhttpd.h: No such file or directory
 #include <microhttpd.h>
                        ^
compilation terminated.
Makefile:20: recipe for target 'src/gateway.o' failed
make: *** [src/gateway.o] Error 1

asavah
Posts: 373
Joined: Thu Aug 14, 2014 12:49 am

Re: Nodogsplash, build problems

Tue Nov 15, 2016 7:11 pm

1) https://packages.debian.org/search?sear ... e&arch=any
2) sudo apt-get install libmicrohttpd-dev
3) try again
4) ...
5) profit

klintkrossa
Posts: 81
Joined: Tue Nov 10, 2015 3:06 pm

Re: Nodogsplash, build problems

Sun Feb 19, 2017 6:56 pm

after installing libmicrohttpd-dev I got this.


cc -O0 -g -Wall -Isrc -c src/gateway.c -o src/gateway.o
src/gateway.c: In function ‘main_loop’:
src/gateway.c:251:7: error: ‘MHD_USE_EPOLL_INTERNALLY’ undeclared (first use in this function)
MHD_USE_EPOLL_INTERNALLY,
^
src/gateway.c:251:7: note: each undeclared identifier is reported only once for each function it appears in
src/gateway.c:256:7: error: ‘MHD_OPTION_LISTENING_ADDRESS_REUSE’ undeclared (first use in this function)
MHD_OPTION_LISTENING_ADDRESS_REUSE, 1,
^
Makefile:20: recipe for target 'src/gateway.o' failed
make: *** [src/gateway.o] Error 1
Thanks
This is not like any other bulletin boards that I have been on. Been flamed on other BB's so bad I was afraid to ask.

All my Raspberry Pi's are like the Hessian artilleryman of Sleepy Hollow.

alvarorodelo
Posts: 2
Joined: Sun Apr 02, 2017 8:35 am

Re: Nodogsplash, build problems

Sun Apr 02, 2017 9:07 am

to fix this issue do this:
modify ./src/gateway.c
1. add this lines, maybe after the initial includes:
ifndef MHD_OPTION_LISTENING_ADDRESS_REUSE
#define MHD_OPTION_LISTENING_ADDRESS_REUSE 25
#endif
2. replace MHD_USE_EPOLL_INTERNALLY
for MHD_USE_EPOLL_INTERNALLY_LINUX_ONLY
then make
then make install
do all this commans with sudo prefix.
it worked for me on debian and on rapsberry pi.

alvarorodelo
Posts: 2
Joined: Sun Apr 02, 2017 8:35 am

Re: Nodogsplash, build problems

Mon Apr 03, 2017 3:11 am

I found out that release 2 of nodogsplash , is not going to compile with current libmicrohttpd-dev,
which by today is version 0.9.37,
is expecting instead version 0.9.51, which you can download the debian package, how ever, it will find problem with all the out of date dependences themselves,

so my recommendation is download nodogsplash ver sion 1.0.1,
which has no problems with libmicrohttpd-dev 0.9.37.

Return to “General discussion”