Hi Ravi and Paul,
Thanks very much for the tips. Ravi, I could not open the link you told me, but I could see include/linux/sock_diag.h is included in kernel since version 3.4. Paul, I could not find the header file in my GBS_ROOT, because Tizen 2.2.x uses kernel is 3.0.x. So that's the problem. So I ask you guys another question: I have downloaded a 3.4.x kernel and I would like to use its headers to build my app for armv7l. Can I cross-compile it using standard ways instead of GBS? Or another way would be to make GBS use the downloaded kernel headers instead, is it possible? Thanks once more! Joao Assis From: ravi nanjundappa [mailto:ravi.nanjunda...@gmail.com] Sent: quarta-feira, 11 de dezembro de 2013 01:09 To: Joao Marinho Assis Cc: general Subject: Re: [Tizen General] Platform gps build missing linux/sock_diag.h hi, Please try including "linux-kernel-headers" in "BuilRequires:" section of your spec file. This will pull the required header file. The below link shows that this pkg might be having the header file. https://review.tizen.org/gerrit/gitweb?p=platform/kernel/linux-3.10.git;a=tr ee;f=include/linux;h=a572baf63979836163e698ef48532070637b9623;hb=3f3cfdda411 a43c846dd043abaf90216e558d96d On Tue, Dec 10, 2013 at 11:33 PM, Joao Marinho Assis <j.as...@samsung.com> wrote: Hi all, I am trying to build a c test program using GBS, but it gives me this error: [ 10s] cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=vfpv3 -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb test.c -o cve-2013-1763 [ 10s] test.c:11:29: fatal error: linux/sock_diag.h: No such file or directory [ 10s] compilation terminated. The includes I have are: #include <unistd.h> #include <sys/socket.h> #include <linux/netlink.h> #include <netinet/tcp.h> #include <errno.h> #include <linux/if.h> #include <linux/filter.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <linux/sock_diag.h> #include <linux/inet_diag.h> #include <linux/unix_diag.h> #include <sys/mman.h> Does anyone can help me figure out how to make gbs use the correct kernel headers? How can I know the version used? I am not sure on how to do it in my packaging file. Thanks very much, -- Joao Assis Samsung Electronics _______________________________________________ General mailing list General@lists.tizen.org https://lists.tizen.org/listinfo/general -- Thanks and Best Regards, N Ravi
_______________________________________________ General mailing list General@lists.tizen.org https://lists.tizen.org/listinfo/general