You cannot use the autotools configure script to compile with pgCC. I have found in compiling other projects that there are some default flags that the autotools want to use are specific to gcc. I have not investigated autotools to see how to make pgCC to work with it.
You need to follow the instructions in the INSTALL.html for building with the traditional Makefiles.
I made a header, ACE_wrappers/ace/config.h that contains:
I made a macro file, ACE_wrappers/include/makeinclude/platform_macros.GNU that contains:
In the platform_linux_pgi.GNU file I made a few changes:
CC = pgcc
CXX = pgCC
removed -one_instantiation_per_object -prelink_objects flags
My gcc version is gcc 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2).
In order to quickly replicate this problem I would suggest using a VM to install a version of Ubuntu 7.10 and then ACE+TAO+CIAO. I believe the problem will be the same on any other Linux distribution and a similar version of gcc.