You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Graham Leggett <mi...@sharp.fm> on 2003/03/27 16:00:47 UTC

random number support weirdness in APR

Hi all,

When I build HEAD of httpd v2.0 like below, ./configure bombs out 
claiming a lack of random number support in APR. Can anyone else confirm 
this or is it just me?

./configure -C --prefix=/etc/httpd --exec-prefix=/usr --bindir=/usr/bin 
--sbindir=/usr/sbin --mandir=/usr/share/man --libdir=/usr/lib 
--sysconfdir=/etc/httpd/conf --includedir=/usr/include/httpd 
--libexecdir=/usr/lib/httpd/modules --datadir=/var/www 
--with-mpm=prefork --enable-suexec --with-suexec 
--with-suexec-caller=apache --with-suexec-docroot=/var/www 
--with-suexec-logfile=/var/log/httpd/suexec.log 
--with-suexec-bin=/usr/sbin/suexec --with-suexec-uidmin=500 
--with-suexec-gidmin=500 --with-egd --with-devrandom 
--enable-mods-shared=all --enable-ssl --with-ssl --enable-deflate 
--enable-cgid --enable-proxy --enable-proxy-connect --enable-proxy-http 
--enable-proxy-ftp

checking whether to enable mod_auth_anon... shared (all)
checking whether to enable mod_auth_dbm... shared (all)
checking whether to enable mod_auth_digest... checking dependencies
You need APR random support to use mod_auth_digest.
Look at APR configure options --with-egd and --with-devrandom.
checking whether to enable mod_auth_digest... configure: error: 
mod_auth_digest has been requested but can not be built due to 
prerequisite failures

I am trying to build under Yellowdog Linux v2.3.

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."


Re: random number support weirdness in APR

Posted by Graham Leggett <mi...@sharp.fm>.
Jeff Trawick wrote:

>> When I build HEAD of httpd v2.0 like below, ./configure bombs out 
>> claiming a lack of random number support in APR. Can anyone else 
>> confirm this or is it just me?
>>
>> checking whether to enable mod_auth_digest... checking dependencies
>> You need APR random support to use mod_auth_digest.
>> Look at APR configure options --with-egd and --with-devrandom.
>> checking whether to enable mod_auth_digest... configure: error: 
>> mod_auth_digest has been requested but can not be built due to 
>> prerequisite failures
>>
>> I am trying to build under Yellowdog Linux v2.3.
> 
> 
> what is the setting of APR_HAS_RANDOM in whichever apr.h the Apache 
> build is using?

#define APR_HAS_RANDOM            1

> what is put in config.log related to the mod_auth_digest checking right 
> before the failure?

This appears buried inside the config.log file:

configure:6356: checking whether to enable mod_auth_digest
configure:6437: result: no

> Note that this code was changed to use an APR macro to check for 
> APR_HAS_RANDOM recently (2 weeks ago), and the APR macro itself was 
> changed in the same timeframe, so updating httpd-2.0 without updating 
> apr wouldn't be too cool.  Hopefully the info asked for above will yield 
> some clues.

Looks like auth_digest is not supposed to be included, but it gets 
included anyway.

I have attached the config.log file - does any of this make sense?

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."

Re: random number support weirdness in APR

Posted by Graham Leggett <mi...@sharp.fm>.
Jeff Trawick wrote:

>> When I build HEAD of httpd v2.0 like below, ./configure bombs out 
>> claiming a lack of random number support in APR. Can anyone else 
>> confirm this or is it just me?
>>
>> checking whether to enable mod_auth_digest... checking dependencies
>> You need APR random support to use mod_auth_digest.
>> Look at APR configure options --with-egd and --with-devrandom.
>> checking whether to enable mod_auth_digest... configure: error: 
>> mod_auth_digest has been requested but can not be built due to 
>> prerequisite failures
>>
>> I am trying to build under Yellowdog Linux v2.3.
> 
> 
> what is the setting of APR_HAS_RANDOM in whichever apr.h the Apache 
> build is using?

#define APR_HAS_RANDOM            1

> what is put in config.log related to the mod_auth_digest checking right 
> before the failure?

This appears buried inside the config.log file:

configure:6356: checking whether to enable mod_auth_digest
configure:6437: result: no

> Note that this code was changed to use an APR macro to check for 
> APR_HAS_RANDOM recently (2 weeks ago), and the APR macro itself was 
> changed in the same timeframe, so updating httpd-2.0 without updating 
> apr wouldn't be too cool.  Hopefully the info asked for above will yield 
> some clues.

Looks like auth_digest is not supposed to be included, but it gets 
included anyway.

I have attached the config.log file - does any of this make sense?

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."

Re: random number support weirdness in APR

Posted by Jeff Trawick <tr...@attglobal.net>.
Graham Leggett wrote:

> When I build HEAD of httpd v2.0 like below, ./configure bombs out 
> claiming a lack of random number support in APR. Can anyone else confirm 
> this or is it just me?
> 
> checking whether to enable mod_auth_digest... checking dependencies
> You need APR random support to use mod_auth_digest.
> Look at APR configure options --with-egd and --with-devrandom.
> checking whether to enable mod_auth_digest... configure: error: 
> mod_auth_digest has been requested but can not be built due to 
> prerequisite failures
> 
> I am trying to build under Yellowdog Linux v2.3.

what is the setting of APR_HAS_RANDOM in whichever apr.h the Apache 
build is using?

what is put in config.log related to the mod_auth_digest checking right 
before the failure?

Note that this code was changed to use an APR macro to check for 
APR_HAS_RANDOM recently (2 weeks ago), and the APR macro itself was 
changed in the same timeframe, so updating httpd-2.0 without updating 
apr wouldn't be too cool.  Hopefully the info asked for above will yield 
some clues.

Thanks,

Jeff




Re: random number support weirdness in APR

Posted by Jeff Trawick <tr...@attglobal.net>.
Graham Leggett wrote:

> When I build HEAD of httpd v2.0 like below, ./configure bombs out 
> claiming a lack of random number support in APR. Can anyone else confirm 
> this or is it just me?
> 
> checking whether to enable mod_auth_digest... checking dependencies
> You need APR random support to use mod_auth_digest.
> Look at APR configure options --with-egd and --with-devrandom.
> checking whether to enable mod_auth_digest... configure: error: 
> mod_auth_digest has been requested but can not be built due to 
> prerequisite failures
> 
> I am trying to build under Yellowdog Linux v2.3.

what is the setting of APR_HAS_RANDOM in whichever apr.h the Apache 
build is using?

what is put in config.log related to the mod_auth_digest checking right 
before the failure?

Note that this code was changed to use an APR macro to check for 
APR_HAS_RANDOM recently (2 weeks ago), and the APR macro itself was 
changed in the same timeframe, so updating httpd-2.0 without updating 
apr wouldn't be too cool.  Hopefully the info asked for above will yield 
some clues.

Thanks,

Jeff