Re: [maemo-developers] building an application with custom kernel-headers

2006-10-19 Thread Eero Tamminen
Hi,

 [sbox-fitz: ~]  grep
 IFA_F_HOMEADDRESS /usr/src/su-18-kernel-headers/include/linux/rtnetlink.h
 #define IFA_F_HOMEADDRESS   0x10

Is this in the part of the kernel header that is not exported
unless you're compiling kernel source code?  (or claiming
so with a define used for this)


   - Eero
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] building an application with custom kernel-headers

2006-10-17 Thread Larry Battraw

 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 [EMAIL PROTECTED] 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@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] building an application with custom kernel-headers

2006-10-17 Thread Koen Kooi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Larry Battraw schreef:
  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

No, -isystem is largely equivalent to -I.

regards,

Koen
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFNRb9MkyGM64RGpERAoAbAJ43ItGqZZqs50SGG/oE51GRU+ZshgCaAmFZ
xCkyNddk2scoh1R58cFgK5k=
=6xLt
-END PGP SIGNATURE-
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers