-
Notifications
You must be signed in to change notification settings - Fork 10
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
Does not compile on 2015-01-03 kernel #7
Comments
Hi, I've cloned and compiled on a fresh Raspbian install on a Pi 2 with the latest kernel. Everything seemed to compile fine:
Try updating to the latest kernel. |
Hello and thanks for replying! Will try the above later tonight and let you know. /emgi 2015-02-16 12:38 GMT+01:00 Thomas Preston [email protected]:
|
Hi, Just tested it again. Same issue. You are correct that make itself still pi@raspi03 ~/libpifacedigital $ uname -a pi@raspi03 ~/libpifacedigital $ make example pi@raspi03 ~/libpifacedigital $ make pifacedigital pi@raspi03 ~/libpifacedigital $ 2015-02-16 19:24 GMT+01:00 Leo Gijssel [email protected]:
|
Hi, so far I've managed to get it to compile if I put a Compiles if I change:
to:
|
Hi Thomas, I'd like to bear with you but I was unable to locate the section above in /Leo 2015-02-17 16:26 GMT+01:00 Thomas Preston [email protected]:
|
root@raspi03:/home/leo/libpifacedigital# uname -a
Linux raspi03 3.12-1-rpi #1 Debian 3.12.9-1+rpi3 (2015-01-03) armv6l GNU/Linux
root@raspi03:/home/leo/libpifacedigital# make example
gcc -o example example.c -Isrc/ -L. -lpifacedigital -L../libmcp23s17/ -lmcp23s17
example.c: In function 'main':
example.c:125:9: warning: passing argument 1 of 'pifacedigital_wait_for_input' makes pointer from integer without a cast [enabled by default]
src/pifacedigital.h:212:5: note: expected 'uint8_t ' but argument is of type 'int'
example.c:125:9: error: too few arguments to function 'pifacedigital_wait_for_input'
src/pifacedigital.h:212:5: note: declared here
Makefile:44: recipe for target 'example' failed
make: ** [example] Error 1
root@raspi03:/home/leo/libpifacedigital# make pifacedigital
gcc -o pifacedigital util/pifacedigital-cmd.c -Isrc/ -I../libmcp23s17/src/ -L. -lpifacedigital -L../libmcp23s17/ -lmcp23s17 -lstderr
util/pifacedigital-cmd.c: In function 'main':
util/pifacedigital-cmd.c:123:9: warning: passing argument 1 of 'sprintf' from incompatible pointer type [enabled by default]
/usr/include/stdio.h:361:12: note: expected 'char * restrict' but argument is of type 'struct _IO_FILE *'
util/pifacedigital-cmd.c: In function 'str2reg':
util/pifacedigital-cmd.c:153:9: warning: passing argument 1 of 'sprintf' from incompatible pointer type [enabled by default]
/usr/include/stdio.h:361:12: note: expected 'char * restrict' but argument is of type 'struct _IO_FILE '
/usr/bin/ld: cannot find -lstderr
collect2: ld returned 1 exit status
Makefile:50: recipe for target 'pifacedigital' failed
make: ** [pifacedigital] Error 1
root@raspi03:/home/leo/libpifacedigital#
The text was updated successfully, but these errors were encountered: