[sudo-users] Problem during cross-compilation

Vinay HN Vinay.HN at Lntemsys.com
Sat Jan 30 05:26:57 EST 2010

I'm trying to cross-compile "sudo" source for Power-PC platform using 
Montavista tool chain. I'm getting the following error message during 
checking host system type... Invalid configuration `ppc_82xx': machine 
`ppc_82xx' not recognized

It is clear that it has found the cross-compiler and configure knows that 
we are cross-compiling but it fails to recognize the machine.

The complete dump follows:

[vhn at localhost sudo-1.7.2p2]$ ./configure --host=ppc_82xx
configure: WARNING: If you wanted to set the --build type, don't use 
If a cross compiler is detected then cross compile mode will be used.
configure: Configuring Sudo version 1.7.2p2
checking whether to lecture users the first time they run sudo... yes
checking whether sudo should log via syslog or to a file by default... 
checking which syslog facility sudo should log with... local2
checking at which syslog priority to log commands... notice
checking at which syslog priority to log failures... alert
checking how long a line in the log file should be... 80
checking whether sudo should ignore '.' or '' in $PATH... no
checking whether to send mail when a user is not in sudoers... yes
checking whether to send mail when user listed but not for this host... no
checking whether to send mail when a user tries a disallowed command... no
checking who should get the mail that sudo sends... root
checking for bad password prompt... Password:
checking for bad password message... Sorry, try again.
checking whether to expect fully qualified hosts in sudoers... no
checking for umask programs should be run with... 0022
checking for default user to run commands as... root
checking for editor that visudo should use... vi
checking whether to obey EDITOR and VISUAL environment variables... no
checking number of tries a user gets to enter their password... 3
checking time in minutes after which sudo will ask for a password again... 
checking time in minutes after the password prompt will time out... 5
checking whether to use per-tty ticket files... no
checking whether to include insults... no
checking whether to override the user's path... no
checking whether to get ip addresses from the network interfaces... yes
checking whether stow should be used... no
checking whether to use an askpass helper... no
checking whether to do user authentication by default... yes
checking whether to disable running the mailer as root... no
checking whether to disable shadow password support... no
checking whether root should be allowed to use sudo... yes
checking whether to log the hostname in the log file... no
checking whether to invoke a shell if sudo is given no arguments... no
checking whether to set $HOME to target user in shell mode... no
checking whether to disable 'command not found' messages... no
checking whether to enable environment debugging... no
checking for egrep... egrep
checking for ppc_82xx-gcc... ppc_82xx-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether ppc_82xx-gcc accepts -g... (cached) no
checking for ppc_82xx-gcc option to accept ISO C89... none needed
checking for library containing strerror... none required
checking how to run the C preprocessor... ppc_82xx-gcc -E
checking build system type... i686-pc-linux-gnu
checking host system type... Invalid configuration `ppc_82xx': machine 
`ppc_82xx' not recognized
configure: error: /bin/sh ./config.sub ppc_82xx failed

If you have any suggestions, please let me know. 

More information about the sudo-users mailing list