Unable to compile OpenSSL 0.9.7i with -xpec

This is really weird. Check this out:

$ gcc cversion.c -I . -I .. -I ../include -xpec -c -fast

51:.size$XB_sgccYSSEEVaU.SSLeay_version.buf, 295

52: $XB_sgccYSSEEVaU.SSLeay_version.buf:

53:.skip 295

cg error (as) : "/var/tmp//ccyxnrK5.s", line 52 : redefinition of symbol "$XB_sgccYSSEEVaU.SSLeay_version.buf"

$ gcc cversion.c -I . -I .. -I ../include -c -fast

$ gcc -v

Using built-in specs.

Target: sparc-sun-solaris2.10

Configured with: /export/home/bldmstr/nightly/20060207_gcc2ir.s10.opt.tarbuild/src/configure --prefix=/opt/gcc --enable-languages=c,c++

Thread model: posix

gcc version 4.0.2 (gccfss)

It works fine without -xpec but not right with it. This is OpenSSL's crypto/cversion.c file which basically just defines a function. Changing the name of the function changes the name of the error, so it's not that there's another instance of the same name anywhere.

Any ideas?

[982 byte] By [JoelKatz] at [2007-11-25 23:11:42]
# 1
We were able to reproduce the problem and are now working on a fix.If it is convenient for you, you could make progress by removing the -xpec flag for just this file (still keeping it for others). Hopefully, you would not encounter the same problem for others.Thanks.
raj_prakash at 2007-7-5 18:01:42 > top of Java-index,Open Source Technologies,OpenSPARC...
# 2
Thanks.It's not causing me any major problems, I just reported it before it affects someone else doing something more important.Optimizing the "get version information" function doesn't seem too important. I doubt it appears in any performance-critical code. ;)
JoelKatz at 2007-7-5 18:01:42 > top of Java-index,Open Source Technologies,OpenSPARC...