Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to build / install? #2

Open
ozett opened this issue May 13, 2015 · 3 comments
Open

how to build / install? #2

ozett opened this issue May 13, 2015 · 3 comments

Comments

@ozett
Copy link

ozett commented May 13, 2015

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
Copy link
Author

ozett commented May 13, 2015

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
Copy link
Author

ozett commented May 13, 2015

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
Copy link
Author

ozett commented May 13, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant