[oe] Couple of autotools configure problems

Jack Mitchell ml at communistcode.co.uk
Mon Sep 10 13:28:38 UTC 2012


On 10/09/12 14:15, Martin Jansa wrote:
> On Mon, Sep 10, 2012 at 02:00:12PM +0100, Jack Mitchell wrote:
>> First off:
>>
>> | automake: warnings are treated as errors
>> | lib/Makefile.am:22: warning: ':='-style assignments are not portable
>> | lib/Makefile.am:23: warning: ':='-style assignments are not portable
>> | autoreconf: automake failed with exit status: 1
>> | ERROR: autoreconf execution failed.
>>
>> What is a portable version of ':=', maybe '+='? I can't get anything but
>> unrelated hits from Google.
>>
>> Secondly:
>>
>> | autoreconf: running: aclocal -I
>> /mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.12
>> -I
>> /mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libwebsockets-0.0.0-r0/git/aclocal-copy/
>> -I
>> /mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.12
>> -I
>> /mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libwebsockets-0.0.0-r0/git/aclocal-copy/
>> --force --warnings=cross
>> | aclocal: warning: unknown warning category 'cross'
>>
>> Where does this warning=cross come from and how come it doesn't effect
>> any other autotool builds?
>>
>> I am attempting to compile libwebsockets which is located at:
>> http://git.warmcat.com/cgi-bin/cgit/libwebsockets/tree/
>>
>> Cheers,
> See this thread
> http://lists.linuxtogo.org/pipermail/openembedded-core/2012-September/029108.html
>
> Cheers,
>

Thanks, seems as though the patch has just landed in master in the past 
few minutes!

As for the first issue I have found that ':=' operator means 'expand and 
use' , they are used here and it turns out to be a make issue, not 
configure:

libwebsockets_la_CFLAGS:=-Wall -std=gnu99 -pedantic
libwebsockets_la_LDFLAGS:=

Could I change them to

libwebsockets_la_CFLAGS =-Wall -std=gnu99 -pedantic
libwebsockets_la_LDFLAGS =

or even,

libwebsockets_la_CFLAGS+=-Wall -std=gnu99 -pedantic
libwebsockets_la_LDFLAGS+=

I don't see anything that needs expanding, or does it expand the 
variable and then append the new flags?

Cheers,

-- 

   Jack Mitchell (jack at embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--





More information about the Openembedded-devel mailing list