[prev in list] [next in list] [prev in thread] [next in thread]
List: ltp-list
Subject: Re: [LTP] ltp-full-20080930 build error on s390
From: Daniel Gollub <dgollub () suse ! de>
Date: 2008-10-23 9:30:26
Message-ID: 200810231130.27851.dgollub () suse ! de
[Download RAW message or body]
On Thursday 23 October 2008 10:50:52 Subrata Modak wrote:
> It unfortunately introduces error on x86_64.
>
> # uname -a
> Linux 2.6.27-gcov-autokern1 #1 SMP PREEMPT Thu Oct 23 02:09:37 UTC 2008
> x86_64 GNU/Linux
>
> cc -Wall -I../../include -g -Wall -I../../../../include -Wall
> get_robust_list01.c -L../../../../lib -lltp -o get_robust_list01
> get_robust_list01.c:51:28: error: linux/compiler.h: No such file or
> directory
> make[4]: *** [get_robust_list01] Error 1
>
> Should we not try to avoid including linux/*.h files directly ?
I would recommend to just avoid linux headers which get not _installed_ by:
make headers_install
You can easily identify such headers by looking into the Kbuild of the same
directory as the header file is located.
Example:
dgollub@marvin:~/projects/linux-2.6/include/linux> grep connector.h Kbuild
unifdef-y += connector.h
# GOOD for inclusion
dgollub@marvin:~/projects/linux-2.6/include/linux> grep compiler.h Kbuild
dgollub@marvin:~/projects/linux-2.6/include/linux>
# BAD for inclusion
Note: this also requires checking if the header file is available also in older
kernel releases - or got removed in more recent releases (e.g. asm/page.h, ...)
Btw. is there any "kernel-release-range" LTP should build/support?
Like 2.6.0 to latest? Or 2.6.14 to latest? Or something like that?
Hope that helps.
best regards,
Daniel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic