Maintained by: NLnet Labs

[Unbound-users] [1.5.0] Compile error on Debian Lenny

Saturas
Sat Nov 29 21:19:15 CET 2014


Hello,

i´m trying to compile Unbound 1.5.0 for my old Debian Lenny box.
1.4.22 runs fine so far. OpenSSL is self-compiled - "OpenSSL 1.0.1j 15
Oct 2014". Kernel is stock - "Linux debian 2.6.26-2-686 #1 SMP Sun Mar
4 22:19:19 UTC 2012 i686 GNU/Linux" and GCC is 4.3.2.

$ export CFLAGS="-march=pentium3 -msse -O2"
$ ./configure --prefix=/opt/unbound --with-ssl=/opt/ssl --with-pthreads
$ make
[...]
./libtool --tag=CC --mode=compile gcc -I.  -I/opt/ssl/include
-march=pentium3 -msse -O2 -pthread -o getentropy_linux.lo -c
compat/getentropy_linux.c
libtool: compile:  gcc -I. -I/opt/ssl/include -march=pentium3 -msse
-O2 -pthread -c compat/getentropy_linux.c  -fPIC -DPIC -o
.libs/getentropy_linux.o
In file included from compat/getentropy_linux.c:51:
/usr/include/linux/random.h:38: error: expected
specifier-qualifier-list before '__u32'
make: *** [getentropy_linux.lo] Error 1

The lines in random.h look like this:

struct rand_pool_info {
	int	entropy_count;
	int	buf_size;
	__u32	buf[0];
};

Is this something unbound should patch or related to the kernel? May
be it´s just a little issue. But as a non-C-programmer I have no clue :)

PS: I just checked 1.5.1-rc1, too. No effect.

-- 
Regards
Saturas

-------------------------------------------------

VFEmail.net - http://www.vfemail.net
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!