Forum

configure error when cross compiling

Mufasa
16 December 2008, 22:42
While cross compiling for an xscale processor I run the configure script.

"./configure --host xscale"

It seems to work till the script looks for /dev/urandom then I get this error.

"checking for /dev/urandom... configure: error: cannot check for file existence when cross compiling"

is there a command I can give the configure script to get past this error?

This is a common error with the Curl (command-line URL) lib but I was unable to find a solution to the problem.
Hugo Leisink
17 December 2008, 15:48
The urandom is necessary for SSL initialization. What you can do is check configure.ac, hiawatha.c and serverconfig.c and remove all the ifdef HAVE_DEV_URANDOM blocks. Of course, this causes SSL to not initialize securely. Yes, it requires to know a little about compilers and autoconf. And most of all, it requires you to know what you are doing

The best option is of course to compile on the platform you will run Hiawatha on. But I guess that's not possible.
Peter
22 February 2009, 18:32
You may need to provide a parameter like '--with-random=/dev/urandom' to configure as it cannot detect the presence of a random number generating device for a target system.
Hugo Leisink
23 February 2009, 00:10
Oke, I will look into that.
This topic has been closed.