Hi Ravi,

 

I already have an account in gerrit.

 

About building, I tried your first option ("I<include_dir_path>" list of the
CFLAGS/CXXFLAGS", adding the options in my .spec file in %build section as:

 

%build

export CFLAGS="$CFLAGS -I/data/tizen/kernels/linux-3.4/include"

export CXXFLAGS="$CXXFLAGS -I/data/tizen/kernels/linux-3.4/include"

make %{?_smp_mflags}

 

The error continues, it cannot find the header file:

 

[   13s] + CXXFLAGS='-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
-I/data/tizen/kernels/linux-3.4/include'

[   13s] + make -j16

[   13s] 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
-I/data/tizen/kernels/linux-3.4/include    test.c   -o test

[   13s] test.c:11:29: fatal error: linux/sock_diag.h: No such file or
directory

[   13s] compilation terminated.

[   13s] make: *** [test] Error 1

[   13s] error: Bad exit status from /var/tmp/rpm-tmp.u0NBId (%build)

 

 

About "Other option, you can download the source and port the spec file and
build it using GBS to get the rpm files. This could be possible. " how can I
make my gbs build use the rpm I generated instead of the one in
~/GBS-ROOT/local/sources/tizen2.2./linux-3.0.15-1 ?

 

Thanks very much,

 

Joao Assis

 

From: ravi nanjundappa [mailto:[email protected]] 
Sent: quinta-feira, 12 de dezembro de 2013 06:25
To: Joao Marinho Assis
Cc: Hanchett, Paul; general
Subject: Re: [Tizen General] Platform gps build missing linux/sock_diag.h

 

hi Joao, 

 

Please see the comments inline below.

 

 

On Wed, Dec 11, 2013 at 11:12 PM, Joao Marinho Assis <[email protected]>
wrote:

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.

 

I was assuming that you have a git/gerrit account. For accessing that you
need to have access permission. If you don't have one, then please follow
the instructions @ the below link.

 

https://source.tizen.org/documentation/developer-guide/environment-setup 

 

 

 

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?

if you want to make GBS to use the downloaded kernel headers, you need to
add the directory path containing these header files as part of your
"-I<include_dir_path>" list of the CFLAGS/CXXFLAGS. Other option, you can
download the source and port the spec file and build it using GBS to get the
rpm files. This could be possible.

 

 

 

 Thanks once more!

 

Joao Assis

 

 

 

 

From: ravi nanjundappa [mailto:[email protected]] 
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 <[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 





 

-- 
Thanks and Best Regards,
N Ravi 

_______________________________________________
General mailing list
[email protected]
https://lists.tizen.org/listinfo/general

Reply via email to