Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788241 - dev-libs/libfilezilla-0.27.1 fails with ‘numeric_limits’ is not a member of ‘std’
Summary: dev-libs/libfilezilla-0.27.1 fails with ‘numeric_limits’ is not a member of ‘...
Status: RESOLVED DUPLICATE of bug 786849
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-04 22:23 UTC by Sven Müller
Modified: 2021-05-04 22:29 UTC (History)
1 user (show)

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


Attachments
patch (fix_limits.patch,241 bytes, patch)
2021-05-04 22:29 UTC, Sven Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Müller 2021-05-04 22:23:29 UTC
buffer.cpp: In member function ‘unsigned char* fz::buffer::get(size_t)’:
buffer.cpp:46:34: error: ‘numeric_limits’ is not a member of ‘std’
   46 |                         if (std::numeric_limits<size_t>::max() - capacity_ < write_size) {
      |                                  ^~~~~~~~~~~~~~
buffer.cpp:46:55: error: expected primary-expression before ‘>’ token
   46 |                         if (std::numeric_limits<size_t>::max() - capacity_ < write_size) {

Reproducible: Always

Steps to Reproduce:
1. emerge dev-libs/libfilezilla




Package was compiled with gcc-11.1.0 on x86_64.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-04 22:27:13 UTC
1) Please always give the full build.log and emerge --info
2) You may need to emerge --sync? see bug 786849.

*** This bug has been marked as a duplicate of bug 786849 ***
Comment 2 Sven Müller 2021-05-04 22:29:21 UTC
Created attachment 706059 [details, diff]
patch

inserts the missing include.