Porting #126
undefined reference symbol, but symbol is defined in DSO
Status:
fixed
Priority:
bug
Assignee:
% Done:
0%
Description
When, for example, building package gavl I obtain
/usr/bin/ld: volume_test.o:undefined reference symbol 'sinf@GLIBC_2.0'
@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/usr/bin/ld: note: 'sinf
/lib/libm.so.6: could not read symbols: Invalid operation
History
Updated by lluvia almost 12 years ago
I solved something similar in the package openal adding this options to cmake
-D CMAKE_EXE_LINKER_FLAGS:STRING='-Wl,-rpath,/usr/lib -lavutil'\
Do you agree with a solution of this kind. I'd like having a solution documented in the wiki.
Updated by lluvia almost 12 years ago
I didn't notice there was a specific category for porting issues