Has someone managed to build ELDK 3.1 from sratch under Gentoo x86_64?

It fails at the rpm build with:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../lib -I../rpmdb -I../rpmio
-I../popt -I../zlib -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -c
parseSpec.c -MT parseSpec.lo -MD -MP -MF .deps/parseSpec.TPlo -fPIC
-DPIC -o .libs/parseSpec.lo
parseSpec.c: In function `readLine':
parseSpec.c:290: error: assignment of read-only location
parseSpec.c:298: error: assignment of read-only location
parseSpec.c: At top level:
parseSpec.c:9: warning: '_debug' defined but not used
make[1]: *** [parseSpec.lo] Error 1
make[1]: Leaving directory
`/opt/eldk/build/ppc-2005-03-12/work/build-rpm/rpm-4.1.1/build'
make: *** [install-recursive] Error 1
/opt/eldk/build/build.sh: line 409:
/opt/eldk/build/ppc-2005-03-12/work/bin/rpm: No such file or directory
+ exit 1
+ rm -fr /tmp/pkg.20465



rick