[libgcrypt] configure warnings

Edoardo Causarano curious.corn@katamail.com
Sat Aug 24 14:17:02 2002


./configure output:

checking for random device... yes
checking linux/random.h usability... no
checking linux/random.h presence... yes
configure: WARNING: linux/random.h: present but cannot be compiled
configure: WARNING: linux/random.h: check for missing prerequisite headers?
configure: WARNING: linux/random.h: proceeding with the preprocessor's result
checking for linux/random.h... yes
checking for random device ioctl... yes

linux/random.h points to the relevant include in my 2.4.19 kernel source. 
config.log relevant section: (I think)

configure:12889: checking for random device
configure:12897: result: yes
configure:12929: checking linux/random.h usability
configure:12938: gcc -c -g -O2  conftest.c >&5
In file included from configure:12966:
/usr/include/linux/random.h:38: parse error before `__u32'
/usr/include/linux/random.h:38: warning: no semicolon at end of struct or 
union
configure:12941: $? = 1
configure: failed program was:
#line 12931 "configure"
#include "confdefs.h"
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <linux/random.h>
configure:12956: result: no
configure:12960: checking linux/random.h presence
configure:12967: gcc -E  conftest.c
configure:12973: $? = 0
configure:12991: result: yes
configure:13002: WARNING: linux/random.h: present but cannot be compiled
configure:13004: WARNING: linux/random.h: check for missing prerequisite 
headers?
configure:13006: WARNING: linux/random.h: proceeding with the preprocessor's 
result
configure:13009: checking for linux/random.h
configure:13016: result: yes
configure:13029: checking for random device ioctl
configure:13041: result: yes

But, alas, /usr/include/linux/random.h:38 reads:

struct rand_pool_info {
        int     entropy_count;
        int     buf_size;
        __u32   buf[0];       
}; <-- But the semicolon IS THERE! SIGH!

Could this be the cause of the segfaults? Excuse me for the mail volume, if it 
doesn't help  (IE... my machineis broken, I should either live with it or 
reinstall it from scratch) please tell me.

Ciao,
Edo

-- 
  2:17pm  up  2:26,  1 user,  load average: 0.35, 0.45, 0.31