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

After install #6

Closed
JeffHoover opened this issue Jan 7, 2017 · 7 comments
Closed

After install #6

JeffHoover opened this issue Jan 7, 2017 · 7 comments

Comments

@JeffHoover
Copy link

Following the the steps in INSTALL.md on my raspberry pi (specs at the end of this issue), when I run make, I get an error (see below) that looks like maybe jansson wasn't installed correctly (although it appears to be, at /usr/share/doc/libjansson4/).

I thought at first it was because I had done the apt-get of the dependencies with sudo instead of as root. So I did remove, then su'ed to root, then did the apt-get again and exited. Make still gave me the error:

$ make cd lib/orcania && make make[1]: Entering directory '/home/pi/ulfius/lib/orcania' gcc -c -fPIC -Wall -D_REENTRANT -O3 orcania.c orcania.c: In function ‘json_search’: orcania.c:273:5: warning: implicit declaration of function ‘json_array_foreach’ [-Wimplicit-function-declaration] orcania.c:273:49: error: expected ‘;’ before ‘{’ token Makefile:35: recipe for target 'orcania.o' failed make[1]: *** [orcania.o] Error 1 make[1]: Leaving directory '/home/pi/ulfius/lib/orcania' Makefile:45: recipe for target 'libulfius.so' failed make: *** [libulfius.so] Error 2

Debian GNU/Linux 7.11 (wheezy)
ARMv7 Processor rev 5 (v7l)
I've updated the firmware, and I've done sudo apt-get update and 'sudo apt-get upgrade' as well.

@babelouest
Copy link
Owner

It looks like you don't have libjansson-dev installed.

$ sudo apt-get install libjansson-dev 

Should do the trick, let me know if you still have the same problem after

@JeffHoover
Copy link
Author

Seems like it is already installed. See below. (Sorry I can't figure out the markdown formatting)

$ sudo apt-get install libjansson-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libjansson-dev is already the newest version.
The following packages were automatically installed and are no longer required:
javascript-common libc-ares-dev libc-ares2 libev-dev libev4 libssl-dev
libssl-doc libv8-3.8.9.20 libv8-dev node-node-uuid wwwconfig-common
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Maybe the latest version isn't the one I need? Here's what the install said (after I did the remove):

``$ sudo apt-get install libjansson-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libjansson-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/30.4 kB of archives.
After this operation, 68.6 kB of additional disk space will be used.
Selecting previously unselected package libjansson-dev:armhf.
(Reading database ... 89444 files and directories currently installed.)
Unpacking libjansson-dev:armhf (from .../libjansson-dev_2.3.1-2+deb7u1_armhf.deb) ...
Setting up libjansson-dev:armhf (2.3.1-2+deb7u1) …

@babelouest
Copy link
Owner

I think I got it, you use raspbian wheezy which has libjansson 2..3 in it, although in this version, there is no json_array_foreach macro.

You can update to raspbian jessie or install manually the last libjansson library. I'll add a note in the INSTALL.md file to prevent it, thanks.

@JeffHoover
Copy link
Author

JeffHoover commented Jan 7, 2017 via email

@babelouest
Copy link
Owner

I never upgraded from wheezy to jessie on a raspbian, but I flashed jessie images on sd-cards like billions of times, works like a charm :)

@babelouest
Copy link
Owner

Closing it: 51cfd0a

@JeffHoover
Copy link
Author

Installation worked fine on my new Jessie image. Thanks again for your help!

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

2 participants