Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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 Antonio Rojas (arojas) - Tuesday, 07 September 2021, 10:04 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Anatol Pomozov (anatolik)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

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

Comment by Antonio Rojas (arojas) - Tuesday, 07 September 2021, 10:04 GMT Comment by Anatol Pomozov (anatolik) - Tuesday, 07 September 2021, 11:05 GMT
Here is a pull request for upstream that tries to remove this disable-rtti flag https://github.com/google/snappy/pull/129
Comment by Anatol Pomozov (anatolik) - Tuesday, 07 September 2021, 23:48 GMT
I think removing `no-rtti` flag makes sense here. I am about to patch-in the proposed pull request.
Comment by Anatol Pomozov (anatolik) - Tuesday, 07 September 2021, 23:49 GMT
The patch has been merged as SVN 423516. Please try it and let us know if it works for you.
Comment by Bastian Senst (bsenst) - Wednesday, 08 September 2021, 15:44 GMT
Thank you! 1.1.9-2 works perfectly here!

Loading...