Re: [yocto] issue building iputils with uclibc.

2012-03-30 Thread Paul Eggleton
On Thursday 29 March 2012 20:05:52 Paul Eggleton wrote:
 On Thursday 29 March 2012 14:20:44 John Toomey wrote:
  On 20/03/2012 16:56, Khem Raj wrote:
   go into the uclibc build tree and like kernel or busybox it will have
   a .config and grok that. If this is disabled then enable it in
   uClibc.distro file under uclibc recipes dir and rebuild uclibc.
   ideally these are distro knobs but for tests you can try it
   file ( uclibc uses kconfig )
  
  I am unable to find a .config file in the uclibc build tree, can you be
  more specific about the path i might find it at?
  
  UCLIBC_HAS_RESOLVER_SUPPORT=y doesnt seem to be present in the
  uClibc.distro file, i added it and tried running the build again with no
  success. Is there anything else I can try?
 
 OK, so I just gave this build a try. You can find the configuration actually
 used in the build in TMPDIR/work/i586-poky-linux-uclibc/uclibc-0.9.32-
 r4.3/git/.config  (directory names may vary slightly depending on your
 build configuration).
 
 With master, when I checked my version of that file,
 UCLIBC_HAS_RESOLVER_SUPPORT=y is set, so apparently this feature is getting
 enabled by default. However, when I did the same on edison (which uses
 uclibc 0.9.32 as opposed to 0.9.33) that setting is not present. Digging
 around I'm beginning to wonder if this option was perhaps added in uclibc
 0.9.33, which if true would explain why it is not present when building
 uclibc in edison; but does that mean the underlying functionality was added
 in that version or just the option?

More detective work - the dn_comp() function was indeed not in uclibc until 
0.9.33; also, the reference to dn_comp() was added in the following commit to 
iputils:

http://www.linux-
ipv6.org/gitweb/gitweb.cgi?p=gitroot/iputils.git;a=commitdiff;h=ac3fe58bc1939c8ed3cf34c30f713dfe82b27ce5

So I guess you have a few options:

1) Avoid using iputils altogether - you can get very basic versions of the 
utilities in iputils from busybox. Looks like on the face of it nothing 
depends on iputils but it is pulled in via task-core-basic (which is pulled in 
by core-image-basic).

2) Upgrade to uclibc 0.9.33 (can be done in a separate layer on top of edison)

3) Patch iputils to remove the call to this function and any others that 
aren't in uclibc 0.9.32

4) Patch iputils to not build ping6

5) Build an older version of iputils

Cheers,
Paul


-- 

Paul Eggleton
Intel Open Source Technology Centre
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] issue building iputils with uclibc.

2012-03-29 Thread John Toomey

On 20/03/2012 16:56, Khem Raj wrote:

On Tue, Mar 20, 2012 at 9:23 AM, Paul Eggleton
paul.eggle...@linux.intel.com  wrote:

IIRC the thread ended with Khem asking if UCLIBC_HAS_RESOLVER_SUPPORT='y' was
in the uclibc configuration, the implication being that dn_comp is unavailable
unless that is true. I'm not too familiar with how uclibc is configured and
with only a brief glance at the recipe I can see the config seems to be
automatically generated but I can't see exactly how additional options (beyond
what gets added from DISTRO_FEATURES) would be added.

Khem, could you help out here?

go into the uclibc build tree and like kernel or busybox it will have
a .config and grok that. If this is disabled then enable it in
uClibc.distro file under uclibc recipes dir and rebuild uclibc.
ideally these are distro knobs but for tests you can try it
file ( uclibc uses kconfig )


Hi Folks

I am unable to find a .config file in the uclibc build tree, can you be 
more specific about the path i might find it at?


UCLIBC_HAS_RESOLVER_SUPPORT=y doesnt seem to be present in the 
uClibc.distro file, i added it and tried running the build again with no 
success. Is there anything else I can try?


Thanks,
John


___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] issue building iputils with uclibc.

2012-03-29 Thread Paul Eggleton
On Thursday 29 March 2012 14:20:44 John Toomey wrote:
 On 20/03/2012 16:56, Khem Raj wrote:
  go into the uclibc build tree and like kernel or busybox it will have
  a .config and grok that. If this is disabled then enable it in
  uClibc.distro file under uclibc recipes dir and rebuild uclibc.
  ideally these are distro knobs but for tests you can try it
  file ( uclibc uses kconfig )
 
 I am unable to find a .config file in the uclibc build tree, can you be
 more specific about the path i might find it at?
 
 UCLIBC_HAS_RESOLVER_SUPPORT=y doesnt seem to be present in the
 uClibc.distro file, i added it and tried running the build again with no
 success. Is there anything else I can try?

OK, so I just gave this build a try. You can find the configuration actually 
used in the build in TMPDIR/work/i586-poky-linux-uclibc/uclibc-0.9.32-
r4.3/git/.config  (directory names may vary slightly depending on your build 
configuration). 

With master, when I checked my version of that file, 
UCLIBC_HAS_RESOLVER_SUPPORT=y is set, so apparently this feature is getting 
enabled by default. However, when I did the same on edison (which uses uclibc 
0.9.32 as opposed to 0.9.33) that setting is not present. Digging around I'm 
beginning to wonder if this option was perhaps added in uclibc 0.9.33, which 
if true would explain why it is not present when building uclibc in edison; 
but does that mean the underlying functionality was added in that version or 
just the option?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] issue building iputils with uclibc.

2012-03-29 Thread Khem Raj
On Thu, Mar 29, 2012 at 12:05 PM, Paul Eggleton
paul.eggle...@linux.intel.com wrote:
 On Thursday 29 March 2012 14:20:44 John Toomey wrote:
 On 20/03/2012 16:56, Khem Raj wrote:
  go into the uclibc build tree and like kernel or busybox it will have
  a .config and grok that. If this is disabled then enable it in
  uClibc.distro file under uclibc recipes dir and rebuild uclibc.
  ideally these are distro knobs but for tests you can try it
  file ( uclibc uses kconfig )

 I am unable to find a .config file in the uclibc build tree, can you be
 more specific about the path i might find it at?

 UCLIBC_HAS_RESOLVER_SUPPORT=y doesnt seem to be present in the
 uClibc.distro file, i added it and tried running the build again with no
 success. Is there anything else I can try?

 OK, so I just gave this build a try. You can find the configuration actually
 used in the build in TMPDIR/work/i586-poky-linux-uclibc/uclibc-0.9.32-
 r4.3/git/.config  (directory names may vary slightly depending on your build
 configuration).

 With master, when I checked my version of that file,
 UCLIBC_HAS_RESOLVER_SUPPORT=y is set, so apparently this feature is getting
 enabled by default. However, when I did the same on edison (which uses uclibc
 0.9.32 as opposed to 0.9.33) that setting is not present. Digging around I'm
 beginning to wonder if this option was perhaps added in uclibc 0.9.33, which
 if true would explain why it is not present when building uclibc in edison;
 but does that mean the underlying functionality was added in that version or
 just the option?

thats makes it clear. Its 0.9.33 feature. I was assuming thats what
you were using.


 Cheers,
 Paul

 --

 Paul Eggleton
 Intel Open Source Technology Centre
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] issue building iputils with uclibc.

2012-03-20 Thread John Toomey

Hello all

I'm having problems compiling iputils with uclibc -

| ping6.o: In function `niquery_option_subject_name_handler':
| 
/tmp/work/i586-poky-linux-uclibc/iputils-s20101006-r2/iputils-s20101006/ping6.c:428: 
undefined reference to `dn_comp'

| collect2: ld returned 1 exit status
| make: *** [ping6] Error 1
| make: *** Waiting for unfinished jobs
| make[1]: Leaving directory 
`/tmp/work/i586-poky-linux-uclibc/iputils-s20101006-r2/iputils-s20101006/doc'

| ERROR: oe_runmake failed
NOTE: package iputils-s20101006-r2: task do_compile: Failed
ERROR: Task 4 (/poky/meta/recipes-extended/iputils/iputils_s20101006.bb, 
do_compile) failed with exit code '1'


It works fine with eglibc. I posted this question before but didnt 
really get a good answer - can anyone help point me in the right direction?


Regards
John
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] issue building iputils with uclibc.

2012-03-20 Thread Paul Eggleton
On Tuesday 20 March 2012 15:49:10 John Toomey wrote:
 I'm having problems compiling iputils with uclibc -
 
 | ping6.o: In function `niquery_option_subject_name_handler':
 /tmp/work/i586-poky-linux-uclibc/iputils-s20101006-r2/iputils-s20101006/ping
 6.c:428: undefined reference to `dn_comp'
 
 | collect2: ld returned 1 exit status
 | make: *** [ping6] Error 1
 | make: *** Waiting for unfinished jobs
 | make[1]: Leaving directory
 
 `/tmp/work/i586-poky-linux-uclibc/iputils-s20101006-r2/iputils-s20101006/doc
 '
 | ERROR: oe_runmake failed
 
 NOTE: package iputils-s20101006-r2: task do_compile: Failed
 ERROR: Task 4 (/poky/meta/recipes-extended/iputils/iputils_s20101006.bb,
 do_compile) failed with exit code '1'
 
 It works fine with eglibc. I posted this question before but didnt
 really get a good answer - can anyone help point me in the right direction?

IIRC the thread ended with Khem asking if UCLIBC_HAS_RESOLVER_SUPPORT='y' was 
in the uclibc configuration, the implication being that dn_comp is unavailable 
unless that is true. I'm not too familiar with how uclibc is configured and 
with only a brief glance at the recipe I can see the config seems to be 
automatically generated but I can't see exactly how additional options (beyond 
what gets added from DISTRO_FEATURES) would be added.

Khem, could you help out here?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] issue building iputils with uclibc.

2012-03-20 Thread Khem Raj
On Tue, Mar 20, 2012 at 9:23 AM, Paul Eggleton
paul.eggle...@linux.intel.com wrote:

 IIRC the thread ended with Khem asking if UCLIBC_HAS_RESOLVER_SUPPORT='y' was
 in the uclibc configuration, the implication being that dn_comp is unavailable
 unless that is true. I'm not too familiar with how uclibc is configured and
 with only a brief glance at the recipe I can see the config seems to be
 automatically generated but I can't see exactly how additional options (beyond
 what gets added from DISTRO_FEATURES) would be added.

 Khem, could you help out here?

go into the uclibc build tree and like kernel or busybox it will have
a .config and grok that. If this is disabled then enable it in
uClibc.distro file under uclibc recipes dir and rebuild uclibc.
ideally these are distro knobs but for tests you can try it
file ( uclibc uses kconfig )
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] issue building iputils with uclibc

2012-03-12 Thread John Toomey

On 09/03/2012 16:45, Khem Raj wrote:

On Fri, Mar 9, 2012 at 7:45 AM, John Toomeyjohn.too...@linux.intel.com  wrote:

Anything else I can try?


Do you have UCLIBC_HAS_RESOLVER_SUPPORT=y
in uclibc .config ?



I dont think so, is there an easy way to check?

How would I set it to try this?
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] issue building iputils with uclibc

2012-03-09 Thread John Toomey

Hello all

I'm having problems compiling iputils with uclibc -

| ping6.o: In function `niquery_option_subject_name_handler':
| 
/tmp/work/i586-poky-linux-uclibc/iputils-s20101006-r2/iputils-s20101006/ping6.c:428: 
undefined reference to `dn_comp'

| collect2: ld returned 1 exit status
| make: *** [ping6] Error 1
| make: *** Waiting for unfinished jobs
| make[1]: Leaving directory 
`/tmp/work/i586-poky-linux-uclibc/iputils-s20101006-r2/iputils-s20101006/doc'

| ERROR: oe_runmake failed
NOTE: package iputils-s20101006-r2: task do_compile: Failed
ERROR: Task 4 (/poky/meta/recipes-extended/iputils/iputils_s20101006.bb, 
do_compile) failed with exit code '1'


It works fine with eglibc. Any help would be greatly appreciated!

Regards
John

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] issue building iputils with uclibc

2012-03-09 Thread Khem Raj
On Fri, Mar 9, 2012 at 7:18 AM, John Toomey john.too...@linux.intel.com wrote:
 undefined reference to `dn_comp'

add LDFLAGS_libc-uclibc_append =  -lresolv to recipe.
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto