gcc -march=i386 -Os -pipe -fomit-frame-pointer -DMAWK -I.. -c -o rexp3.o rexp3.c make[1]: Leaving directory `/var/tmp/portage/mawk-1.3.3/work/mawk-1.3.3/rexp' gcc -march=i386 -Os -pipe -fomit-frame-pointer -o mawk parse.o scan.o memory.o main.o hash.o execute.o code.o da.o error.o init.o bi_vars.o cast.o print.o bi_funct.o kw.o jmp.o array.o field.o split.o re_cmpl.o zmalloc.o fin.o files.o scancode.o matherr.o fcall.o version.o missing.o rexp/rexp.o rexp/rexp0.o rexp/rexp1.o rexp/rexp2.o rexp/rexp3.o /lib/libm.so.6 gcc: /lib/libm.so.6: No such file or directory make: *** [mawk] Error 1 This is caused by the line: export MATHLIB="/lib/libm.so.6" in the ebuild. To fix, replace "/lib/libm.so.6" with "-lm". sed -i 's:/lib/libm.so.6:-lm:' mawk-1.3.3.ebuild Please apply.
Created attachment 87910 [details, diff] Patch for ebuild This patch show the fix.
Jon, 26 months ago you made a change to the ebuild to attempt to correct the problem in bug #45636 but you used a hardcoded full path. http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/mawk/mawk-1.3.3.ebuild?r1=1.4&r2=1.5
Fixed InCVS. Thanks for reporting.