nfc-tools / nfc-eventd

NFC monitor daemon which is able to launch modules (libraries) on action (tag inserted or removed)
http://nfc-tools.org
GNU General Public License v3.0
32 stars 8 forks source link

how to build / install? #2

Open ozett opened 9 years ago

ozett commented 9 years ago

i downloaded the master branch, but got an error

root@raspberrypi:/usr/src/nfc-eventd-master# autoreconf -vis
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
aclocal: couldn't open directory 'm4': No such file or directory
autoreconf: aclocal failed with exit status: 1
root@raspberrypi:/usr/src/nfc-eventd-master#

what to do? libnfc went fine...

ozett commented 9 years ago

i copied nfc-eventd and library "nem_execute.so" from my old install to the new image"2015-02-16-raspbian-wheezy.img" and it worked. how do i trace the bug.?? (libnfc run fine and works ok, just minutes before...)

old lsb: Distributor ID: Raspbian Description: Raspbian GNU/Linux 7.5 (wheezy) Release: 7.5 Codename: wheezy Linux raspberry-voip 3.6.11+ #385

new-lsb: Distributor ID: Debian Description: Debian GNU/Linux 7.8 (wheezy) Release: 7.8 Codename: wheezy Linux raspberrypi 3.18.7+ #755

ozett commented 9 years ago

i compiled my old tar-archive "nfc-eventd-0.1.7.tar.gz" on the new raspberry image. no compile error, but nfc-eventd doesnt seems to work. no output of any info.

if i use the binary (and one lib) from the old-system on the new image: it works... which version has the master-branch here on github, compared to my old google-code versions 0.7.1?

ozett commented 9 years ago

i copied the M4-folder from my old tar-ball (with 4 files in it) to the master here on github an made this:

root@raspberrypi:/usr/src/nfc-eventd-master# autoreconf -is
sh: 1: svnversion: not found
sh: 1: svnversion: not found
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
configure.ac:21: installing `./config.guess'
configure.ac:21: installing `./config.sub'
configure.ac:13: installing `./install-sh'
configure.ac:13: installing `./missing'
src/Makefile.am: installing `./depcomp'
Makefile.am: installing `./INSTALL'
root@raspberrypi:/usr/src/nfc-eventd-master# ./configure --prefix=/usr --sysconfdir=/etc
[...]
root@raspberrypi:/usr/src/nfc-eventd-master# make
make  all-recursive
make[1]: Entering directory '/usr/src/nfc-eventd-master'
Making all in src
make[2]: Entering directory '/usr/src/nfc-eventd-master/src'
Making all in debug
make[3]: Entering directory '/usr/src/nfc-eventd-master/src/debug'
  CC     debug.lo
  CC     nfc-utils.lo
  CCLD   libdebug.la
make[3]: Leaving directory '/usr/src/nfc-eventd-master/src/debug'
Making all in nfcconf
make[3]: Entering directory '/usr/src/nfc-eventd-master/src/nfcconf'
  CC     nfcconf.lo
nfcconf.c: In function 'nfcconf_put_str':
nfcconf.c:166:19: warning: variable 'item' set but not used [-Wunused-but-set-variable]
nfcconf.c: In function 'nfcconf_put_int':
nfcconf.c:175:17: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
nfcconf.c: In function 'nfcconf_put_bool':
nfcconf.c:189:17: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
nfcconf.c: In function 'parse_type':
nfcconf.c:445:9: warning: ISO C forbids conversion of object pointer to function pointer type [-pedantic]
nfcconf.c: In function 'write_type':
nfcconf.c:603:9: warning: ISO C forbids conversion of object pointer to function pointer type [-pedantic]
  CC     parse.lo
parse.c: In function 'nfcconf_item_find':
parse.c:77:77: warning: unused parameter 'key' [-Wunused-parameter]
  CC     write.lo
  CC     nfclex.lo
  CCLD   libnfcconf.la
make[3]: Leaving directory '/usr/src/nfc-eventd-master/src/nfcconf'
Making all in modules
make[3]: Entering directory '/usr/src/nfc-eventd-master/src/modules'
make  all-am
make[4]: Entering directory '/usr/src/nfc-eventd-master/src/modules'
  CC     nem_execute_la-nem_execute.lo
  CCLD   nem_execute.la
make[4]: Leaving directory '/usr/src/nfc-eventd-master/src/modules'
make[3]: Leaving directory '/usr/src/nfc-eventd-master/src/modules'
make[3]: Entering directory '/usr/src/nfc-eventd-master/src'
  CC     nfc-eventd.o
nfc-eventd.c: In function ‘load_module’:
nfc-eventd.c:127:25: warning: ISO C forbids assignment between function pointer and ‘void *’ [-pedantic]
nfc-eventd.c:138:34: warning: ISO C forbids assignment between function pointer and ‘void *’ [-pedantic]
nfc-eventd.c: In function ‘parse_args’:
nfc-eventd.c:223:9: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
  CCLD   nfc-eventd
make[3]: Leaving directory '/usr/src/nfc-eventd-master/src'
make[2]: Leaving directory '/usr/src/nfc-eventd-master/src'
Making all in conf
make[2]: Entering directory '/usr/src/nfc-eventd-master/conf'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/usr/src/nfc-eventd-master/conf'
make[2]: Entering directory '/usr/src/nfc-eventd-master'
make[2]: Leaving directory '/usr/src/nfc-eventd-master'
make[1]: Leaving directory '/usr/src/nfc-eventd-master'

if i run the binary, i got this error (while using the original conf from master-branch)

nfc-eventd 0.1.7
nfc-eventd: ERROR: Error parsing file '/etc/nfc-eventd.conf'
nfc-eventd: ERROR: Error parsing configuration file /etc/nfc-eventd.conf

what to do?