[oe] bitbake ntpdate failure

Khem Raj raj.khem at gmail.com
Thu Nov 18 21:46:36 UTC 2010


On Thu, Nov 18, 2010 at 11:56 AM, AJ ONeal <coolaj86 at gmail.com> wrote:
> *| ntpdc.c:452: error: 'EAI_NODATA' undeclared (first use in this function)*
>

EAI_NODATA is removed from getaddrinfo struct

you can conditionalize the code to take care of it

#if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME
     stuff .... depending on EAI_NODATA
#endif

>
> Full output:
> https://gist.github.com/705497
>
>
> Snippit:
>
> | make[3]: Entering directory
> `/mnt/local/overo-coolaj86/tmp/work/armv7a-angstrom-linux-gnueabi/ntp-4.2.0-r9/ntp-4.2.0/ntpdc'
> | arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon
> -mfloat-abi=softfp -mthumb-interwork -mno-thumb -std=gnu99 -DHAVE_CONFIG_H
> -I. -I.. -I../include
> -isystem/mnt/local/overo-coolaj86/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/include
> -isystem/mnt/local/overo-coolaj86/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/include
> -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb2
> -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -Wall -Wcast-qual -Wmissing-prototypes
> -Wpointer-arith -Wshadow -Wstrict-prototypes -MT ntpdc.o -MD -MP -MF
> .deps/ntpdc.Tpo -c -o ntpdc.o ntpdc.c
> | ntpdc.c: In function 'openhost':
> *| ntpdc.c:452: error: 'EAI_NODATA' undeclared (first use in this function)*
> | ntpdc.c:452: error: (Each undeclared identifier is reported only once
> | ntpdc.c:452: error: for each function it appears in.)
> | make[3]: *** [ntpdc.o] Error 1
> | make[3]: Leaving directory
> `/mnt/local/overo-coolaj86/tmp/work/armv7a-angstrom-linux-gnueabi/ntp-4.2.0-r9/ntp-4.2.0/ntpdc'
> | make[2]: *** [all] Error 2
> | make[2]: Leaving directory
> `/mnt/local/overo-coolaj86/tmp/work/armv7a-angstrom-linux-gnueabi/ntp-4.2.0-r9/ntp-4.2.0/ntpdc'
> | make[1]: *** [all-recursive] Error 1
> | make[1]: Leaving directory
> `/mnt/local/overo-coolaj86/tmp/work/armv7a-angstrom-linux-gnueabi/ntp-4.2.0-r9/ntp-4.2.0'
> | make: *** [all] Error 2
> | FATAL: oe_runmake failed
> NOTE: Task failed:
> /mnt/local/overo-coolaj86/tmp/work/armv7a-angstrom-linux-gnueabi/ntp-4.2.0-r9/temp/log.do_compile.7879
> ERROR: TaskFailed event exception, aborting
>
> AJ ONeal
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>




More information about the Openembedded-devel mailing list