uglyDwarf / linuxtrack

Headtracking for Linux/Mac
MIT License
158 stars 29 forks source link

Build fails due to missing sys/cdefs.h #102

Open vranki opened 9 years ago

vranki commented 9 years ago

I tried building linuxtrack on Ubuntu 15.04, with X-Plane plugin enabled.

Build fails:

make[3]: Entering directory '/2giganen/home/cosmo/src/linuxtrack/src'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -O2  '-Wl,-rpath,/usr/local/lib/linuxtrack' '-DLIB_PATH="/usr/local/lib/linuxtrack/"' -m32 -g -O2 -Wall -Wextra -Wformat -Wformat-security          --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2  -c -o liblinuxtrack32_la-ltlib.lo `test -f 'ltlib.c' || echo './'`ltlib.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -O2 -Wl,-rpath,/usr/local/lib/linuxtrack -DLIB_PATH=\"/usr/local/lib/linuxtrack/\" -m32 -g -O2 -Wall -Wextra -Wformat -Wformat-security --param ssp-buffer-size=4 -fstack-protector -D_FORTIFY_SOURCE=2 -c ltlib.c  -fPIC -DPIC -o .libs/liblinuxtrack32_la-ltlib.o
In file included from /usr/include/stdlib.h:24:0,
                 from ltlib.c:1:
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory
 #  include <sys/cdefs.h>
                         ^
compilation terminated.
uglyDwarf commented 9 years ago

Hello, the file you are missing is part of the libc6-dev-i386 package (assuming you run 64bit) - check if you have it installed and install it, if not. Then the compilation should work...

Kind regards,

Michal

PS. http://packages.ubuntu.com can help you with such problems...

vranki commented 9 years ago

Installing the package solves the issue. But shouldn't this be detected by configure script?

uglyDwarf commented 9 years ago

Hi, good question... Technically, I can't check for the package (every distro can name it differently, ...). What I can check for is the ability to compile in 32bit and if unsuccessful, I can turn off all the things that require it...

I'll think it through and see what I can do... Kind regards,

Michal