Skip to contentSkip to conversation

issue building iputils with uclibc

DISCUSSION John Toomey 2 participants 5 messages Mar 9, 2012 – Mar 12, 2012

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 1 line · John Toomey

undefined reference to `dn_comp'

add LDFLAGS_libc-uclibc_append = " -lresolv" to recipe.

#2 lore raw
Quoted 4 lines · Khem Raj
Quoted 1 line · John Toomey

undefined reference to `dn_comp'

add LDFLAGS_libc-uclibc_append = " -lresolv" to recipe.

Hi Raj

I'm still getting the same...

| 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 7 (/poky/meta/recipes-extended/iputils/iputils_s20101006.bb, do_compile) failed with exit code '1'

Anything else I can try?

Regards
John

#3 lore raw
Quoted 3 lines · John Toomey

Anything else I can try?

Do you have UCLIBC_HAS_RESOLVER_SUPPORT=y
in uclibc .config ?

#4 lore raw
Quoted 6 lines · Khem Raj
Quoted 2 lines · John Toomey

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?