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

Natxo Asenjo natxo.asenjo at gmail.com
Sun May 11 19:00:08 UTC 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20140511/f46d70c9/attachment.html>


More information about the OmniOS-discuss mailing list