FS#72058 - [snappy] Linker error with snappy-1.1.9-1
Attached to Project:
Arch Linux
Opened by Bastian Senst (bsenst) - Tuesday, 07 September 2021, 09:56 GMT
Last edited by Toolybird (Toolybird) - Sunday, 03 September 2023, 09:47 GMT
Opened by Bastian Senst (bsenst) - Tuesday, 07 September 2021, 09:56 GMT
Last edited by Toolybird (Toolybird) - Sunday, 03 September 2023, 09:47 GMT
|
Details
Description:
With the new snappy version snappy-1.1.9-1, I get the following linker error when compiling my cpp-file: % LANG=C g++ -lsnappy hs_snappy.cpp /usr/bin/ld: /tmp/ccb57hvC.o:(.data.rel.ro._ZTI8BSSource[_ZTI8BSSource]+0x10): undefined reference to `typeinfo for snappy::Source' collect2: error: ld returned 1 exit status The same file compiles with 1.1.8-2 fine. The file is the attached. Additional info: * package version(s): 1.1.9-1 Steps to reproduce: * Save the code above in a file * Compile with g++ -lsnappy $FILENAME |
This task depends upon
Closed by Toolybird (Toolybird)
Sunday, 03 September 2023, 09:47 GMT
Reason for closing: Fixed
Additional comments about closing: snappy 1.1.9-2
Sunday, 03 September 2023, 09:47 GMT
Reason for closing: Fixed
Additional comments about closing: snappy 1.1.9-2
Comment by Antonio Rojas (arojas) -
Tuesday, 07 September 2021, 10:04 GMT
Comment by
Anatol Pomozov (anatolik) - Tuesday,
07 September 2021, 11:05 GMT
Comment by
Anatol Pomozov (anatolik) - Tuesday,
07 September 2021, 23:48 GMT
Comment by
Anatol Pomozov (anatolik) - Tuesday,
07 September 2021, 23:49 GMT
Comment by Bastian Senst (bsenst) -
Wednesday, 08 September 2021, 15:44 GMT
rtti was disabled in
https://github.com/google/snappy/commit/c98344f6260d24d921e5e04006d4bedb528f404a
Here is a pull request for upstream that tries to remove this
disable-rtti flag
https://github.com/google/snappy/pull/129
I think removing `no-rtti` flag makes sense here. I am about to
patch-in the proposed pull request.
The patch has been merged as SVN 423516. Please try it and let us
know if it works for you.
Thank you! 1.1.9-2 works perfectly here!