[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
linux/random.h bug
From: |
Peter Hendrickson |
Subject: |
linux/random.h bug |
Date: |
11 Sep 2003 00:11:57 -0000 |
I just got this request from a configure I created with autoconf on a
NetBSD system and then ran under Linux:
> 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
> configure: WARNING: ## ------------------------------------ ##
> configure: WARNING: ## Report this to address@hidden ##
> configure: WARNING: ## ------------------------------------ ##
What is likely the problem is that the typedef __u32 is not defined
because linux/random.h doesn't include all of the header files it
relies upon. (The code fragment below suggests this.)
Including <asm/types.h> before <linux/random.h> seems to work. I'm
not sure this is the canonical solution, however.
If you need more detailed information or need me to test something,
please let me know.
Peter
------------------------------------------------------------------------
typedef unsigned int __u32;
#include <linux/random.h>
#include <stdio.h>
main()
{
printf("Hello world!\n");
}
- linux/random.h bug,
Peter Hendrickson <=