'wait_queue_t_' not defined for stretch on RBPi 3 B+

Bug #1776893 reported by Anton T
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
New
Undecided
Unassigned

Bug Description

Im trying to install canlib on a modle B+ raspberry pie (using Stretch), I have been following these two guides

https://www.kvaser.com/developer-blog/running-python-wrapper-linux/

https://www.kvaser.com/developer-blog/building-canlib-linuxcan-raspberry-pi/?ts=true

but I end up recieving the same error when it's time to compile with make according to both articles.

The error message printed out is:

In file included from /home/pi/linuxcan/linuxcan/common/../include/osif_funktions_kernel.h:56:0,
                 from /home/pi/linuxcan/linuxcan/common/VCanOsIf.c:90:
/home/pi/linuxcan/linuxcan/common/../include/osif_kernel.h:76:13 error: unknown type name 'wait_queue_t'
             typedef wait_queue_t OS_IF_WAITQUEUE;
                     ^~~~~~~~~~~~
According to many sources the type 'wait_queue_t' is retrieved by including <linux/wiat.h>. It's still not working even tho I have included the wait.h file, I have also tried including the uapi version of the file.
The kernel I'm running on is 4.14.34-v7+ and I assume that the kernel is not compatible with this library.

My environment:
Raspbian GNU/Linux 9 (stretch)
Linux ida 4.14.34-v7+
Raspberry Pi 3 Model B Plus Rev 1.3
FW version: af8084725947aa2c7314172068f79dad9be1c8b4 (clean) (release)
FW version hash in the target system: 5db8e4e1c63178e200d6fbea23ed4a9bf4656658
version of Linux kernel in the system: f70eae405b5d75f7c41ea300b9f790656f99a203

Anton T (anti002)
summary: - "error unknown type name 'wait_queue_t'
+ 'wait_queue_t_' not defined for stretch on RBPi 3 B+
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.