Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43318 - Freeradius-0.9.3 fails to build; gives error about
Summary: Freeradius-0.9.3 fails to build; gives error about
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-29 14:10 UTC by P Nienaber
Modified: 2004-03-06 04:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description P Nienaber 2004-02-29 14:10:36 UTC
When trying to emerge freeradius I get strange errors about 'invalid host type' which appear to be a problem with either the ebuild or one of the configure scripts.

Reproducible: Always
Steps to Reproduce:
0. (change make.conf to reflect different architecture, but I don't believe this is the issue anymore)
1. emerge freeradius

Actual Results:  
See error msg under Details.  Seems strange that it's looking at ${CC} to
determine host type, no?

Expected Results:  
Built and installed. ;)

configure: configuring in src/modules/rlm_attr_rewrite
configure: running /bin/sh './configure' --prefix=/usr  '--prefix=/usr'
'--sysconfdir=/etc' '--localstatedir=/var' '--mandir=/usr/share/man'
'--host=i686-pc-linux-gnu' '--with-gnu-ld' '--with-system-libtool'
'--disable-ltdl-install' '--without-snmp' 'CC=gcc' 'CFLAGS=-O2 -march=i686
-pipe' 'host_alias=i686-pc-linux-gnu' --cache-file=/dev/null --srcdir=.
configure: warning: CC=gcc: invalid host type
configure: warning: CFLAGS=-O2 -march=i686 -pipe: invalid host type
configure: error: can only configure for one host and one target at a time
configure: error: /bin/sh './configure' failed for src/modules/rlm_attr_rewrite

!!! ERROR: net-dialup/freeradius-0.9.3 failed.
!!! Function src_compile, Line 86, Exitcode 1
!!! (no error message)

</paste>

CFLAGS="-O2 -march=athlon-xp -pipe"
have also tried with i386 and i686 instead, both from console and by editing
make.conf
Comment 1 P Nienaber 2004-02-29 14:12:08 UTC
I've had a friend try this as well, and he gets an identical error.  Also note that portage and sync are both up to date..
Comment 2 Scott Reese 2004-03-03 20:10:27 UTC
I can verify this problem.  

It is a problem with autoconf.  The build process with not work with the current version of autoconf (2.58)

A workaround is to use the older version of autoconf that is available.  This can be accomplished by setting the WANT_AUTOCONF environment variable to 2.1 ("export WANT_AUTOCONF=2.1" if you are using bash) and then issuing the emerge command.  The 2.13 version of autoconf seems to work OK.  

Additionally, this has been broken very recently.  I have freeradius 0.9.3 that built successfully on another server sometime in early January without messing around with autoconf.  It won't build on that server now.
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-06 04:47:50 UTC
i added WANT_AUTOMAKE=2.1 for now