Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728556 - =dev-perl/MongoDB-1.8.0 - bson/bson-context.c:51:1: error: conflicting types for 'gettid'
Summary: =dev-perl/MongoDB-1.8.0 - bson/bson-context.c:51:1: error: conflicting types ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords: PATCH, PMASKED
Depends on:
Blocks: glibc-2.30
  Show dependency tree
 
Reported: 2020-06-17 10:51 UTC by Deniss Gaplevsky
Modified: 2021-11-28 21:48 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Deniss Gaplevsky 2020-06-17 10:51:35 UTC
building dev-perl/MongoDB-1.8.0 produce an error:
bson/bson-context.c:51:1: error: conflicting types for 'gettid'
   51 | gettid (void)
      | ^~~~~~
In file included from /usr/include/unistd.h:1170,
                 from bson/bson-compat.h:65,
                 from bson/bson-context.c:17:
/usr/include/bits/unistd_ext.h:34:16: note: previous declaration of 'gettid' was here
   34 | extern __pid_t gettid (void) __THROW;
      |                ^~~~~~
make: *** [Makefile:439: bson/bson-context.o] Error 1

Reproducible: Always

Steps to Reproduce:
1. build
2.
3.
Actual Results:  
fail

Expected Results:  
built

the patch:
--- a/bson/bson-context.c   2020-06-17 13:26:45.340624792 +0300
+++ b/bson/bson-context.c   2020-06-17 13:27:22.583052402 +0300
@@ -47,11 +47,11 @@


 #if defined(__linux__)
-static uint16_t
+/*static uint16_t
 gettid (void)
 {
    return syscall (SYS_gettid);
-}
+}*/
 #endif
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-25 13:20:27 UTC
It seems to be dead, jim: https://www.mongodb.com/blog/post/the-mongodb-perl-driver-is-being-deprecated
Comment 2 Larry the Git Cow gentoo-dev 2021-10-25 13:28:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a00b30e2a257b70d50cf3b8e54fd5b5bff7280ec

commit a00b30e2a257b70d50cf3b8e54fd5b5bff7280ec
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-25 13:22:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-25 13:26:28 +0000

    profiles: last-rite dev-perl/MongoDB
    
    Bug: https://bugs.gentoo.org/728556
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2021-11-28 21:48:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbe991d5f7c55659d89df37558f3c7d4552cfc83

commit dbe991d5f7c55659d89df37558f3c7d4552cfc83
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2021-11-28 21:42:34 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2021-11-28 21:42:34 +0000

    dev-perl/MongoDB: treeclean
    
    Closes: https://bugs.gentoo.org/728556
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 dev-perl/MongoDB/Manifest             |  1 -
 dev-perl/MongoDB/MongoDB-1.8.0.ebuild | 80 -----------------------------------
 dev-perl/MongoDB/metadata.xml         | 64 ----------------------------
 profiles/package.mask                 |  6 ---
 4 files changed, 151 deletions(-)