Am Samstag, 31. März 2018, 15:02:28 CEST schrieb Henri Beauchamp:
> On Sat, 31 Mar 2018 13:36:28 +0200, Lance Corrimal wrote:
> > Hi guys,
> > 
> > I'm trying to build a viewer on linux, and the build fails due to several
> > undefined variables, which, given their names, should actually be defined
> > 
> > somewhere in the source, or in the autobuild_variables_file:
> >   error: #error "LL_ALIGN_PREFIX and LL_ALIGN_POSTFIX undefined"
> >   error: 'LL_DEFAULT_HEAP_ALIGN' was not declared in this scope
> > 
> > happens right after the actual build starts.
> > 
> > Where do I get those variables?
> 
> $ grep -r LL_ALIGN_POSTFIX linden/indra/* | grep '#define'
> 
> linden/indra/llcommon/llmemory.h:#define LL_ALIGN_POSTFIX(x)
> __attribute__((aligned(x))) linden/indra/llcommon/llmemory.h:#define
> LL_ALIGN_POSTFIX(x)
> linden/indra/llcommon/llmemory.h:#define LL_ALIGN_16(var)
> LL_ALIGN_PREFIX(16) var LL_ALIGN_POSTFIX(16)
> 
> You probably failed to #include "llmemory.h" in the sources where this
> error happens.

...the interesting part here is that I haven't even made any changes yet... and 
the first time the error hits is actually *inside* llmemory.h:

/home/abuild/rpmbuild/BUILD/phoenix-firestorm-lgpl/indra/llcommon/llmemory.h:
98:2: error: #error "LL_ALIGN_PREFIX and LL_ALIGN_POSTFIX undefined"
[  286s]  #error "LL_ALIGN_PREFIX and LL_ALIGN_POSTFIX undefined"
[  286s]   ^

After closer inspection it seems that LL_LINUX, LL_DARWIN or LL_WINDOWS need to 
be defined to get the right things done right in the include files... shouldn't 
autobuild make sure of this?

Cheers
LC



_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges

Reply via email to