[maemo-developers] [maemo-developers] building an application with custom kernel-headers
From: Larry Battraw lbattraw at gmail.comDate: Tue Oct 17 20:41:54 EEST 2006
- Previous message: [maemo-developers] building an application with custom kernel-headers
- Next message: [maemo-developers] building an application with custom kernel-headers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I believe you need to use the capital 'I' option like so: gcc -c -Wall -g -O2 -isystem -I/usr/src/su-18-kernel-headers/include conftest.c Larry On 10/17/06, Yves-Alexis Perez <corsac at corsac.net> wrote: > Hi list, > > I run into probleme trying to build an application which requires custom > kernel headers on scratchbox (0.9.8.5) using maemo rootstrap 2.0, cpu > transparency via qemu-arm. > > I've built a patched kernel (which boots fine on the device), following > the Howto Kernel Compilation found on Maemo wiki. I've installed > su-18-kernel-headers too, and those headers are located > in /usr/src/su-18-kernel-headers/include in the scratchbox root. > > I've checked that these headers have the correct files, with correct > definition. > > The configure script tries to build a sample c file with a test on a > #define'd variable which exists in the custom headers files (and not in > the vanilla ones), and fails. > > I tried with the sample c file by hand, using: > > gcc -c -Wall -g -O2 -isystem /usr/src/su-18-kernel-headers/include > conftest.c > > conftest.c contains: > ----8<---- > #include <linux/rtnetlink.h> > > int > main () > { > #ifndef IFA_F_HOMEADDRESS > char *p = (char *) IFA_F_HOMEADDRESS; > #endif > > ; > return 0; > } > ----8<---- > > and: > [sbox-fitz: ~] > grep > IFA_F_HOMEADDRESS /usr/src/su-18-kernel-headers/include/linux/rtnetlink.h > #define IFA_F_HOMEADDRESS 0x10 > > > I guess gcc doesn't use correct kernel headers due to cross compilation, > but have not clue how to fix this. > > If anybody can help me on this, it would be really nice. > > Thanks & regards, > -- > Yves-Alexis Perez > > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://maemo.org/mailman/listinfo/maemo-developers >
- Previous message: [maemo-developers] building an application with custom kernel-headers
- Next message: [maemo-developers] building an application with custom kernel-headers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]