[OmniOS-discuss] compiling mediatomb #error "non-amd64 code depends on amd64 privileged header!"

Dan McDonald danmcd at omniti.com
Sun May 11 19:35:25 UTC 2014


You are trying to build a 64-but object , right?  Are you adding -m64 to the compiler flags?

Dan

Sent from my iPhone (typos, autocorrect, and all)

> On May 11, 2014, at 3:00 PM, Natxo Asenjo <natxo.asenjo at gmail.com> wrote:
> 
> hi,
> 
> trying to use my home omnios server for streaming media I get this error when making mediatomb:
> 
> g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc    -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I..       -I/usr/local/include    -D_REENTRANT -pthreads    -I/usr/include/amd64    -g -O2 -MT libmediatomb_a-action_request.o -MD -MP -MF .deps/libmediatomb_a-action_request.Tpo -c -o libmediatomb_a-action_request.o `test -f '../src/action_request.cc' || echo './'`../src/action_request.cc
> In file included from /usr/include/sys/regset.h:420:0,
>                 from /usr/include/sys/ucontext.h:36,
>                 from /usr/include/sys/signal.h:245,
>                 from /usr/include/sys/procset.h:42,
>                 from /usr/include/sys/wait.h:43,
>                 from /usr/include/stdlib.h:40,
>                 from ../src/memory.h:35,
>                 from ../src/common.h:36,
>                 from ../src/action_request.h:36,
>                 from ../src/action_request.cc:36:
> /usr/include/amd64/sys/privregs.h:42:2: error: #error "non-amd64 code depends on amd64 privileged header!"
> #error "non-amd64 code depends on amd64 privileged header!"
>  ^
> make[2]: *** [libmediatomb_a-action_request.o] Error 1
> make[2]: Leaving directory `/root/mediatomb-0.12.1/build'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/mediatomb-0.12.1'
> make: *** [all] Error 2
> 
> There are quite a few hits on google regarding this #error "non-amd64 code depends on amd64 privileged header!" on omnios, but so far I could not find a solution.
> 
> I am building this on a zone with gcc-4.8.1.
> 
> Any help greatly appreciated.
> 
> --
> Groeten,
> natxo
> _______________________________________________
> OmniOS-discuss mailing list
> OmniOS-discuss at lists.omniti.com
> http://lists.omniti.com/mailman/listinfo/omnios-discuss


More information about the OmniOS-discuss mailing list