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

Wouter Wijngaards wouter at nlnetlabs.nl
Sun Nov 30 01:58:57 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jeroen, Saturas,

Does this patch alleviate the issue?

Index: compat/getentropy_linux.c
===================================================================
- --- compat/getentropy_linux.c	(revision 3284)
+++ compat/getentropy_linux.c	(working copy)
@@ -48,6 +48,7 @@
 #include <time.h>
 #include <openssl/sha.h>

+#include <linux/types.h>
 #include <linux/random.h>
 #include <linux/sysctl.h>
 #ifdef HAVE_GETAUXVAL


Best regards,
   Wouter

On 11/29/2014 09:35 PM, Jeroen Massar wrote:
> On 2014-11-29 21:19, Saturas wrote:
>> 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
> 
> Debian does not store SSL in /opt/ hence why are you pointing 
> there?
> 
> Also, why not simply backport the Debian package? That is, get the 
> new package from the repo (add source repo, apt-get source unbound,
> dpkg-buildpackage -b...) ?
> 
>> $ 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'
> 
> Seems you are missing a define somewhere. Likely a: #define __u32 
> uint32_t
> 
> would likely save the day. Though that is something that should be
>  defined by the configure. Most very likely you simply do not have 
> the ssl libs there.
> 
> Greets, Jeroen
> 
> _______________________________________________ Unbound-users 
> mailing list Unbound-users at unbound.net 
> http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUennhAAoJEJ9vHC1+BF+N11UQAJkj4eiJrwrWcTRVhRxpNKlY
YfNCxTyL3wEQmeMIzBx+ftlX01AAFdLxkWNH17R00NR30rYGQpmo2SXNd4QkF/ip
TCrL0wxzLJ1lCSGRwAWlfRUBKQe/tCzF9EMAUMdv1oIr5fqDChE/ZdOK5kZF969v
E1C4ur4mmJOgNwkpgMkB5r7Y69Ecxiod387euMr0AfXsUAXEd2DSU8PAS+Vprp6e
j2X27Wprae4q1hnVaO1fl4Qc5Axp/NVkvGuUBBLl60zIcRufZLMABr3lDkpHn9GG
42nyU/AQDv7BmzK8FC01OGkwdDawGwUfZijsGrRimIlY0vE3I1bldflln1hjpUWO
B6886ttGAiVm/oaw93JoSBwPTuuXAaBRnF+8vQcDU/KSefVyV0fg+3PKSNhVKNMf
6Z5m1gR63mEJD5f+5YWvJ3zN/vsPT9f4OO/aj7+moLnrfDGon/s4ZMNd3DZl/REK
+7L2ElTMsUMrcY3YVrRvLO9O+zlNlHxEgVwRGl2EF1na1dmCcRGMNbUk2sIRHw+1
3Z7E4un5g6+uhnvwmTditUCArhcuJZ4uXA5SeKpdg0raEcAZp10GCtJFRPlfPD2o
qgpb8nOAdwXLwbiEn2SlHHtb9q2/zjgz9J7b7TvT671M3N2YnsN0m1PQj0gaYpkA
5lEIrQpKLI4TdJrKh+yZ
=Acmn
-----END PGP SIGNATURE-----



More information about the Unbound-users mailing list