Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 839519 - dev-db/mongodb-5.0.5 - src/.../shell_utils_extended.cpp: error: ofs was not declared in this scope
Summary: dev-db/mongodb-5.0.5 - src/.../shell_utils_extended.cpp: error: ofs was not d...
Status: RESOLVED DUPLICATE of bug 843290
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-04-19 14:07 UTC by Toralf Förster
Modified: 2022-06-17 14:54 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.58 KB, text/plain)
2022-04-19 14:07 UTC, Toralf Förster
Details
dev-db:mongodb-5.0.5:20220419-130606.log (dev-db:mongodb-5.0.5:20220419-130606.log,97.88 KB, text/plain)
2022-04-19 14:07 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,47.81 KB, text/plain)
2022-04-19 14:07 UTC, Toralf Förster
Details
environment (environment,131.03 KB, text/plain)
2022-04-19 14:07 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,6.05 KB, application/x-bzip)
2022-04-19 14:07 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,9.16 KB, application/x-bzip)
2022-04-19 14:07 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,41.33 KB, application/x-bzip)
2022-04-19 14:07 UTC, Toralf Förster
Details
Add missing boost headers (mongodb-4.4.10-boost.patch,2.66 KB, patch)
2022-06-17 04:20 UTC, Holger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-04-19 14:07:30 UTC
                 from build/opt/mongo/base/error_codes.h:36,
                 from src/mongo/base/status.h:35,
                 from src/mongo/bson/bson_validate.h:34,
                 from src/mongo/shell/shell_utils_extended.cpp:43:
src/mongo/shell/shell_utils_extended.cpp:397:13: error: 'ofs' was not declared in this scope; did you mean 'ffs'?
  397 |             ofs);
      |             ^~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20220418-180013

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
/usr/lib/llvm/14
14.0.1
Python 3.9.12
Available Rust versions:
  [1]   rust-1.60.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11]
Available Java Virtual Machines:
  [1]   openjdk-bin-11  system-vm

php cli:
  [1]   php7.4 *
  [2]   php8.0

  HEAD of ::gentoo
commit 9894d2d54628bd26d11e92226a086a07b303686d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Apr 19 10:54:05 2022 +0000

    2022-04-19 10:54:03 UTC

emerge -qpvO dev-db/mongodb
[ebuild  N    ] dev-db/mongodb-5.0.5  USE="tools -debug -kerberos -lto -mongosh -ssl" CPU_FLAGS_X86="avx"
Comment 1 Toralf Förster gentoo-dev 2022-04-19 14:07:31 UTC
Created attachment 771896 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-04-19 14:07:33 UTC
Created attachment 771899 [details]
dev-db:mongodb-5.0.5:20220419-130606.log
Comment 3 Toralf Förster gentoo-dev 2022-04-19 14:07:34 UTC
Created attachment 771902 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-04-19 14:07:36 UTC
Created attachment 771905 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-04-19 14:07:37 UTC
Created attachment 771908 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-04-19 14:07:38 UTC
Created attachment 771911 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-04-19 14:07:40 UTC
Created attachment 771914 [details]
temp.tar.bz2
Comment 8 Holger 2022-06-17 04:20:42 UTC
Created attachment 785825 [details, diff]
Add missing boost headers
Comment 9 Holger 2022-06-17 04:20:55 UTC
I noticed the same error while building 4.4.10.
Looks like this is caused by the latest boost update. The latter changed the way how boost/filesystem/fstream.hpp is included.
Solution was to include boost/filesystem/fstream.hpp where needed (see attached patch).
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-17 14:53:41 UTC
(In reply to Holger from comment #9)
> I noticed the same error while building 4.4.10.
> Looks like this is caused by the latest boost update. The latter changed the
> way how boost/filesystem/fstream.hpp is included.
> Solution was to include boost/filesystem/fstream.hpp where needed (see
> attached patch).

Isn't that fixed already in 4.4.10-r1?
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-17 14:54:10 UTC

*** This bug has been marked as a duplicate of bug 843290 ***