Hello,

I am compiling oiio-1.3.9 on Slackware 14.0 but I got an error:
$ tar xvf oiio-Release-1.3.9.tar.gz
$ mkdir oiio-1.3.9
$ cd oiio-1.3.9
$ cmake ../oiio-Release-1.3.9
$ make
[...]
Linking CXX shared library libOpenImageIO.so
[ 73%] Built target OpenImageIO
Scanning dependencies of target atomic_test
[ 74%] Building CXX object 
src/libOpenImageIO/CMakeFiles/atomic_test.dir/atomic_test.cpp.o
Linking CXX executable atomic_test
CMakeFiles/atomic_test.dir/atomic_test.cpp.o: In function `do_int64_math(int)':
atomic_test.cpp:(.text+0x178): undefined reference to `__sync_fetch_and_add_8'
atomic_test.cpp:(.text+0x194): undefined reference to `__sync_fetch_and_add_8'
atomic_test.cpp:(.text+0x1b0): undefined reference to `__sync_fetch_and_add_8'
atomic_test.cpp:(.text+0x1cc): undefined reference to `__sync_fetch_and_add_8'
atomic_test.cpp:(.text+0x1e8): undefined reference to `__sync_fetch_and_add_8'
CMakeFiles/atomic_test.dir/atomic_test.cpp.o:atomic_test.cpp:(.text+0x204): 
more undefined references to `__sync_fetch_and_add_8' follow
CMakeFiles/atomic_test.dir/atomic_test.cpp.o: In function 
`test_atomic_int64(int, int)':
atomic_test.cpp:(.text+0x455): undefined reference to 
`__sync_bool_compare_and_swap_8'
atomic_test.cpp:(.text+0x5f1): undefined reference to `__sync_fetch_and_add_8'
atomic_test.cpp:(.text+0x615): undefined reference to `__sync_fetch_and_add_8'
collect2: error: ld returned 1 exit status
make[2]: *** [src/libOpenImageIO/atomic_test] Error 1
make[1]: *** [src/libOpenImageIO/CMakeFiles/atomic_test.dir/all] Error 2
make: *** [all] Error 2

Can you help me?

Thank you.
Best regards.
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to