Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489256 - net-p2p/fms-0.3.75 USE=frost net-libs/polarssl-1.3.0 - .../work/src/freenet/frostidentity.cpp:97: error: ‘SIG_RSA_SHA1’ was not declared in this scope
Summary: net-p2p/fms-0.3.75 USE=frost net-libs/polarssl-1.3.0 - .../work/src/freenet/f...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Sachau
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 503610
  Show dependency tree
 
Reported: 2013-10-24 12:39 UTC by Dennis Nezic
Modified: 2017-05-13 13:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
polarssl-1.3.0 compatibility fix (frost-polarssl-fix.diff,477 bytes, patch)
2013-11-22 04:59 UTC, Dennis Nezic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Nezic 2013-10-24 12:39:56 UTC
net-p2p/fms-0.3.71 cannot compile with upgraded net-libs/polarssl-1.3.0

After upgrading to net-libs/polarssl-1.3.0 because of:

http://www.gentoo.org/security/en/glsa/glsa-201310-10.xml

FMS (with frost support) fails to compile near the end:

[ 98%] Building CXX object CMakeFiles/fms.dir/src/freenet/frostidentity.o
/usr/bin/i686-pc-linux-gnu-g++  -DDO_CHARSET_CONVERSION -DFROST_SUPPORT -DPOCO_HAVE_IPv6  -DNDEBUG -O3 
-march=pentium-m -pipe -fomit-frame-pointer    -o CMakeFiles/fms.dir/src/freenet/frostidentity.o -c /va
r/tmp/portage/net-p2p/fms-0.3.71/work/src/freenet/frostidentity.cpp
/var/tmp/portage/net-p2p/fms-0.3.71/work/src/freenet/frostidentity.cpp: In member function ‘const bool 
FrostIdentity::VerifySignature(const std::vector<unsigned char, std::allocator<unsigned char> >&, const
 std::string&)’:
/var/tmp/portage/net-p2p/fms-0.3.71/work/src/freenet/frostidentity.cpp:97: error: ‘SIG_RSA_SHA1’ was not declared in this scope

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-10-24 14:07:56 UTC
Please attach the entire build log to this bug report.
Comment 2 Dennis Nezic 2013-10-25 02:00:32 UTC
No need. It seems to be an upstream issue, not supporting the new polarssl. I tried:

#include <polarssl/compat-1.2.h>

... which contained a definition for SIG_RSA_SHA1, but just ended up with more obvious compile-type warnings about functions needing to be changed/updated.

However it does still compile without frost support, USE=-frost
Comment 3 Dennis Nezic 2013-11-12 13:40:51 UTC
Bump. Can someone contact upstream (SomeDude) to fix this situation with polarssl? Is he aware of the security vulnerabilities with polarssl < 1.3.0?
Comment 4 Dennis Nezic 2013-11-22 04:59:04 UTC
Created attachment 363780 [details, diff]
polarssl-1.3.0 compatibility fix

I think this simple patch fixes things.
Comment 5 Thomas Sachau gentoo-dev 2013-12-25 13:46:33 UTC
for now i masked the frost USE flag

Once i checked if there was any report in the fms board, i may report this issue there for SomeDude to respond.

As a side note: You should be able to do that yourself, no need to wait for the ebuild maintainer for an upstream report, if you are sure that the issue is an upstream issue.
Comment 6 Dennis Nezic 2014-08-02 00:53:04 UTC
Any word from upstream? In the meantime, the patch still works with fms 0.3.73. Perhaps we should simply apply the patch instead of masking the USE flag?
Comment 7 Dennis Nezic 2015-09-19 12:10:37 UTC
Bump. This patch still works with net-p2p/fms-0.3.75, and is required to be able to compile with USE=frost. (There's no need to mask the use flag.)
Comment 8 Dennis Nezic 2017-03-06 14:57:41 UTC
I dont think that use mask (default/linux/package.use.mask:net-p2p/fms frost) is required any more with 0.3.79?
Comment 9 Thomas Sachau gentoo-dev 2017-05-13 13:58:01 UTC
This is probably outdated by now, latest version of fms does not longer use polarssl, but instead depends on mbedtls. If the issue is still there for mbedtls, please open a new bug.