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=tree;f=include/linux;h=a572baf63979836163e698ef48532070637b9623;hb=3f3cfdda411a43c846dd043abaf90216e558d96d
On Tue, Dec 10, 2013 at 11:33 PM, Joao Marinho Assis <[email protected]>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 > [email protected] > https://lists.tizen.org/listinfo/general > > -- Thanks and Best Regards, N Ravi
_______________________________________________ General mailing list [email protected] https://lists.tizen.org/listinfo/general
