DinoTools / dionaea

Home of the dionaea honeypot
https://dionaea.readthedocs.io/
GNU General Public License v2.0
704 stars 182 forks source link

build error on current master #210

Closed t3chn0m4g3 closed 6 years ago

t3chn0m4g3 commented 6 years ago

I am getting the following build error when trying to compile from master (OS is Debian Stretch, 64Bit)

However checking out 0.7.0 compiles just fine.

*** dionaea configuration ***

debug                              : yes
performance                        : no
werror                             : yes
ipv4 mapped                        : yes

ev                                 : yes
 - cflags                          : -I/usr/include -DEV_COMPAT3=0
 - libs                            : -L/usr/lib -lev

glib                               : yes
 - cflags                          : -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
 - libs                            : -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0

python                             : yes
 - binary                          : /usr/bin/python3
 - cflags                          : -fPIC -I/usr/include/python3.5m
 - libs                            : -Wl,-z,relro -lpthread -ldl  -lutil -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lm -lpython3.5m

cython                             : yes
 - binary                          : /usr/bin/cython3

ssl                                : yes
 - cflags                          : 
 - libs                            : -lssl -lcrypto

emu                                : yes
 - cflags                          : -I/usr/include
 - libs                            : -L/usr/lib/libemu -lemu

udns                               : yes
 - cflags                          : 
 - libs                            : -ludns

pcap                               : yes
 - cflags                          : 
 - libs                            : -lpcap

netfilter_queue                    : yes
 - cflags                          : 
 - libs                            : -lnetfilter_queue

cspm                               : no
 - cflags                          : 
 - libs                            : 

loudmouth                          : yes
 - cflags                          : -I/usr/include/loudmouth-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
 - libs                            : -lloudmouth-1 -lglib-2.0

curl                               : yes
 - cflags                          : 
 - libs                            : -lcurl

nl                                 : no
 - cflags                          : 
 - libs                            : 

xmatch                             : no
 - cflags                          : 
 - libs                            : 
make  all-recursive
make[1]: Entering directory '/root/dionaea'
Making all in src
make[2]: Entering directory '/root/dionaea/src'
gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include -DEV_COMPAT3=0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include    -I../include -I .. -fno-strict-aliasing -std=c99 -D_GNU_SOURCE -D_GNU_SOURCE -I/usr/include -DEV_COMPAT3=0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -Wall -Werror -Wstrict-prototypes -g  -MT dionaea-dionaea.o -MD -MP -MF .deps/dionaea-dionaea.Tpo -c -o dionaea-dionaea.o `test -f 'dionaea.c' || echo './'`dionaea.c
dionaea.c: In function 'options_parse':
dionaea.c:205:30: error: 'DIONAEA_CONFDIR' undeclared (first use in this function)
   options->config = g_strdup(DIONAEA_CONFDIR"/dionaea.cfg");
                              ^~~~~~~~~~~~~~~
dionaea.c:205:30: note: each undeclared identifier is reported only once for each function it appears in
dionaea.c:205:45: error: expected ')' before string constant
   options->config = g_strdup(DIONAEA_CONFDIR"/dionaea.cfg");
                                             ^~~~~~~~~~~~~~
dionaea.c: In function 'show_version':
dionaea.c:359:25: error: 'DIONAEA_VERSION' undeclared (first use in this function)
  ver->dionaea.version = DIONAEA_VERSION;
                         ^~~~~~~~~~~~~~~
dionaea.c: In function 'show_help':
dionaea.c:413:83: error: 'DIONAEA_CONFDIR' undeclared (first use in this function)
   {"c",   "config=FILE",          "use FILE as configuration file",               DIONAEA_CONFDIR "/dionaea.cfg"},
                                                                                   ^~~~~~~~~~~~~~~
dionaea.c:413:99: error: expected '}' before string constant
   {"c",   "config=FILE",          "use FILE as configuration file",               DIONAEA_CONFDIR "/dionaea.cfg"},
                                                                                                   ^~~~~~~~~~~~~~
dionaea.c:442:57: error: expected ')' before 'DIONAEA_RUNDIR'
    "\t# dionaea -u nobody -g nogroup -w " PREFIX " -p " DIONAEA_RUNDIR "/dionaea.pid\n");
                                                         ^~~~~~~~~~~~~~
make[2]: *** [dionaea-dionaea.o] Error 1
Makefile:502: recipe for target 'dionaea-dionaea.o' failed
make[2]: Leaving directory '/root/dionaea/src'
make[1]: *** [all-recursive] Error 1
Makefile:491: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/root/dionaea'
Makefile:399: recipe for target 'all' failed
make: *** [all] Error 2
phibos commented 6 years ago

We are migrating from autotools to cmake. Please have a look at the project "Migrate from autotools to cmake", on the Migration guide and at the installation guide.

Version 0.8.0 will be released in a few days.

Feel free to reopen the issue or open a new one if you still have problems building dionaea.

t3chn0m4g3 commented 6 years ago

Thanks for the swift response, missed out on the cmake changes and will incorporate ASAP (0.8.0).

phibos commented 6 years ago

Version 0.8.0 has been released a few minutes ago. Please feel free to report any build issues.