Re: Building issues with gcc

Richard Shaw <hobbe...@...>

On Thu, Dec 8, 2011 at 9:28 AM, Jeff Clifford <j...@...> wrote:

I've hit upon a couple of issues when trying to build the core OpenColorIO


The following error occurs:

/usr/bin/ld: CMakeFiles/OpenColorIO.dir/Baker.cpp.o: relocation
R_X86_64_PC32 against `std::basic_ostringstream<char,
std::char_traits<char>, std::allocator<char>
::basic_ostringstream(std::_Ios_Openmode)@@GLIBCXX_3.4' can not be used
when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [src/core/] Error 1
Disclaimer: I'm not a programmer :)

But, I do know that Fedora builds with -fPIC by default, which the
error message suggests. I haven't run into this issue with Fedora 15
which uses a pretty recent gcc version.


Join to automatically receive all group messages.