stunt compilation error

0 views
Skip to first unread message

Michael Taboada

unread,
Jul 14, 2017, 9:10:17 AM7/14/17
to moo-...@googlegroups.com
Hi,
I just tried compiling stunt on arch linux, using g++ 7.1.1. I got an error, however. It is included below. I am using the master branch, if that matters.

db_verbs.cc:167:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (!isdigit(first) || prep >= NPREPS)
db_verbs.cc:172:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     if ((ptr = strchr(s, '/')) != '\0')bb db_match_prep(const charefunctioefunctionb_verbs.cc: In 

Any help?
-Michael.

Todd Sundsted

unread,
Jul 14, 2017, 2:50:15 PM7/14/17
to MOO Talk, moo-...@googlegroups.com
There was an outstanding PR that fixed this issue. I just merged it into master.

Todd

binarywar

unread,
Sep 6, 2017, 9:26:22 AM9/6/17
to MOO Talk, moo-...@googlegroups.com
I'm getting a different error:

root@localhost:~/MOO/stunt-io/stunt# make
gcc -g -g -O -Wall  -c -o http_parser.o http_parser.c
gcc -g -g -O -Wall  -c -o regexpr.o regexpr.c
In file included from regexpr.c:36:0:
my-string.h:69:20: error: conflicting types for 'sys_errlist'
 extern const char *sys_errlist[];
                    ^~~~~~~~~~~
In file included from /usr/include/stdio.h:855:0,
                 from my-stdio.h:23,
                 from regexpr.c:32:
/usr/include/i386-linux-gnu/bits/sys_errlist.h:27:26: note: previous declaration of 'sys_errlist' was here
 extern const char *const sys_errlist[];
                          ^~~~~~~~~~~
<builtin>: recipe for target 'regexpr.o' failed
make: *** [regexpr.o] Error 1
root@localhost:~/MOO/stunt-io/stunt#


 Is this because of a missing declaration?
Reply all
Reply to author
Forward
0 new messages