DBI 1.02 no longer compiles with perl as shipped with RedHat 6.0 (it did with RedHat 5.2). gcc rightly complains about the semun union being defined twice: once in /usr/src/linux/include/linux/sem.h and once in /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h As a work around removing the comments around the definition of HAS_UNION_SEMUN in /usr/lib/perl5/5.00503/i386-linux/CORE/config.h at line 1710 fixes the problem.
This issue has been forwarded to a developer for further action.
Why is DBI including /usr/src/linux/include/linux/sem.h? The user space programs should not include the kernel header files directly.