popt failes to compile on gentoo-mips with a linux 2.6 kernel this is caused by a configure script that relies on /proc/cpuinfo te give endian information which is no longer available in 2.6 kernels. Patch is use another way of detection endianness below is a patch that replaces the old detection with one copied form sudo. It might be nicer to complement the old check in stead of just replacing it.
Created attachment 56577 [details, diff] patch for configure failure on mips with 2.6 kernel
Created attachment 56578 [details, diff] patch for configure failure on mips with 2.6 kernel lynx submits even if it can't open the local file hope it works this time
Created attachment 56579 [details, diff] patch for configure failure on mips with 2.6 kernel lynx submits even if it can't open the local file hope it works this time
Created attachment 56580 [details, diff] patch for configure failure on mips with 2.6 kernel, ebuild part ebuild part of the diff
Comment on attachment 56577 [details, diff] patch for configure failure on mips with 2.6 kernel didn't uplaod patch
Comment on attachment 56578 [details, diff] patch for configure failure on mips with 2.6 kernel didn't upload patch
config.guess should be updated automatically by the gnuconfig package if that isnt happening, find out why your system doesnt have 'autoconfig' in FEATURES