Month: November 2014

Missing predefs.h during compiling sources

Today I compiled freerdp ( from the latest sources to connect to a rdp connection through a rdp-gateway.

Durring compilation I get the following error:

[  0%] Building C object winpr/libwinpr/CMakeFiles/winpr.dir/synch/address.c.o
In file included from /usr/include/stdio.h:28:0,
from <folder>/FreeRDP.git/winpr/include/winpr/synch.h:25,
from <folder>/FreeRDP.git/winpr/libwinpr/synch/address.c:24:
/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
#include <bits/predefs.h>
compilation terminated.
make[2]: *** [winpr/libwinpr/CMakeFiles/winpr.dir/synch/address.c.o] Error 1
make[1]: *** [winpr/libwinpr/CMakeFiles/winpr.dir/all] Error 2
make: *** [all] Error 2

It was clear that the problem must be anywhere around the libc6 libraries, but where 🙂

Remove and install of libc6-dev, build-essential and gcc-multilib doesn’t help. But after many hourse (no a joke after some minutes) I found it.

Here are the solution (yes it can be so easy):

apt-get install –reinstall libc6-dev

have a nice day

(This was all done under Ubuntu 14.04 amd64)

Scroll to Top