3 ms·
Offtopic, but I've been bitten often by linking problems caused by version mismatches in libc. Why can't the linker deal with newer versions of shared libraries
by amelius 4y ago
Offtopic, but I've been bitten often by linking problems caused by version mismatches in libc. Why can't the linker deal with newer versions of shared libraries which are backward compatible? Shouldn't the .so file format provide some way to express this?
- glandium 4y agoThe problem is not the .so, which has all versions, but the .o files, that don't have a way to represent the version they would prefer to use. C declarations also lack a way to specify those versions, and the last version is the only one that is guaranteed to correspond to what's declared in the headers (because the older versions could have a different ABI... in fact, if they did have the same ABI, a change in version wouldn't have been necessary in the first place).