Summary: | Build process search for libgig.so.7 in the wrong directory and fails linking | ||
---|---|---|---|
Product: | LinuxSampler | Reporter: | Giovanni Mariani <mc2374> |
Component: | other | Assignee: | Christian Schoenebeck <cuse> |
Status: | CLOSED WORKSFORME | ||
Severity: | critical | ||
Priority: | P5 | ||
Version: | 2.0.0 | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: | Log file of failed build with linking errors |
The order in which the lib directories are searched is not a matter of the LinuxSampler build files, this order is defined by configuration files of your OS (usually /etc/ld.so.conf and /etc/ld.so.conf.d/*). I am closing this report now, since it seems to be a configuration issue, not a bug on our side. If you still think this is an issue that should be resolved, then feel free to reopen this report. Thanks! |
Created attachment 76 [details] Log file of failed build with linking errors Trying to build linuxsampler 2.0.0 for Rosa Fresh R6 x86_64. Build process fails at linking time with "undefined reference" errors, after the warning below: ******************** /usr/bin/ld: warning: libgig.so.7, needed by ./.libs/liblinuxsampler.so, not found (try using -rpath or -rpath-link) ******************** The libgig.so.7 library is installed in /usr/lib64/libgig/ (where it was placed by the build/install process for libgig 4.0.0), and its pkgconfig file correctly points to it: ********************** prefix=/usr exec_prefix=/usr libdir=/usr/lib64/libgig includedir=/usr/include/libgig Name: gig Description: C++ library for accessing Gigasampler/GigaStudio, DLS, SoundFont and KORG sound files Version: 4.0.0 Libs: -L${libdir} -lgig Cflags: -I${includedir} ********************** So it looks like the linuxsampler build cannot actually find it because it searches for the library in only /usr/lib64. This can confirmed by placing in /usr/lib64 a symlink named "libgig.so.7" to the installed library in /usr/lib64/libgig: this causes the build to finish successfully.