Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unable to update fs.h or other headers

Featured Replies

Hi,

 

I've been trying to compile a c program with GCC and have been unable to move past various errors related to file functions that should be declared in fs.h

I have installed (several times!) linux-headers-5.7.15-sunxi, made scripts, pointed the make file to ARCH=arm (not really necessary I know) and KSRC=/usr/src/linux-headers-5.7.15-sunxi/.

In the fs header in /usr/src/linux-headers-5.7.15-sunxi/linux/ looks correct and includes references to the functions I require (filp_open(), filp_close(), kernel_write()) but the compiler simply refuses to accept that these functions are declared. It appears to still be using the original headers in /usr/include.

I just know that I've done something wrong here but, having done everything I can find in this forum, I am now simply going round in circles...

 

Also tried adding  -I /usr/src/linux-headers-5.7.15-sunxi/include/ to the make file to force the compiler to look at the sunxi headers before the system ones however this just gives errors such as;

/usr/src/linux-headers-5.7.15-sunxi/include/linux/linkage.h:8:10: fatal error: asm/linkage.h: No such file or directory

Anyone point a poor frustrated programmer in the right direction?

 

Edited by jcheriton
Addition of further detail

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.