The include path in /usr/lib/pkgconfig/libR.pc should be point to the correct directory. Now its "rincludedir=/var/tmp/portage/dev-lang/R-2.5.1/image//usr/lib64/R/include" which is the directory while the compiling step. With this error thinks like pkg-config --cflags libR doesn't provide the right compiler flags for using and linking against libR. Reproducible: Always Steps to Reproduce: 1. install dev-lang/R 2. try 'pkg-config --cflags libR' Actual Results: -I/var/tmp/portage/dev-lang/R-2.5.1/image//usr/lib64/R/include Expected Results: -I/usr/lib64/R/include The lib component in the pc file is correct.
Fixed in cvs. Thanks for reporting! Best, Markus