The "MMap::MMap(FileFd&, unsigned long)" symbol is missing in libapt-pkg.so

Bug #1883079 reported by Evgeny Kolesnikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

The "MMap::MMap(FileFd&, unsigned long)" function is missing in libapt-pkg.so.6.0.0.

nm -D -C /usr/lib/x86_64-linux-gnu/libapt-pkg.so.6.0.0 | grep MMap

00000000001701f0 T pkgCacheGenerator::MakeStatusCache(pkgSourceList&, OpProgress*, MMap**, bool)
000000000016e9c0 T pkgCacheGenerator::MakeOnlyStatusCache(OpProgress*, DynamicMMap**)
0000000000167b10 T pkgCache::pkgCache(MMap*, bool)
0000000000167b10 T pkgCache::pkgCache(MMap*, bool)

Tags: focal
Revision history for this message
Evgeny Kolesnikov (evgenyz) wrote :

cat /etc/os-release

NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Revision history for this message
Evgeny Kolesnikov (evgenyz) wrote :

nm -D -C libapt-pkg.so.5.0 | grep MMap (Ubuntu 18.04)

...
00000000000c97d0 T MMap::Map(FileFd&)
00000000000c9e10 T MMap::Sync(unsigned long, unsigned long)
00000000000c9b80 T MMap::Sync()
00000000000c9c20 T MMap::Close(bool)
00000000000c97a0 T MMap::MMap(unsigned long)
00000000000c9b40 T MMap::MMap(FileFd&, unsigned long)
00000000000c97a0 T MMap::MMap(unsigned long)
00000000000c9b40 T MMap::MMap(FileFd&, unsigned long)
00000000000c9d20 T MMap::~MMap()
00000000000c9d00 T MMap::~MMap()
00000000000c9d00 T MMap::~MMap()
...

tags: added: focal
Revision history for this message
Julian Andres Klode (juliank) wrote :

Yes, that's by design.

Changed in apt (Ubuntu):
status: New → Incomplete
Revision history for this message
Julian Andres Klode (juliank) wrote :

MMap is an internal implementation detail that people have been using accidentally when they wanted to open the cache, where they should use pkgCacheFile for.

Changed in apt (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Evgeny Kolesnikov (evgenyz) wrote :

Okay, this happens. But I can't help but wonder why it wasn't deprecated first and why it still present in public headers then?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.