Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693094 - dev-db/cdb-0.75-r4 - ld: cdbmake.o: in function `main': cdbmake.c:(.text.startup.main+0x9a): undefined reference to `get'
Summary: dev-db/cdb-0.75-r4 - ld: cdbmake.o: in function `main': cdbmake.c:(.text.star...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Akinori Hattori
URL:
Whiteboard:
Keywords:
: 794892 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-08-29 21:26 UTC by Alessandro Barbieri
Modified: 2021-11-10 13:45 UTC (History)
4 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 Alessandro Barbieri 2019-08-29 21:26:14 UTC
that's because get is an inline function
building with -std=c90 will solve the problem

./load cdbmake cdb.a alloc.a buffer.a unix.a byte.a
./auto-str auto_home `head -n 1 conf-home` > auto_home.c
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cdbmake.o: in function `main':
cdbmake.c:(.text.startup.main+0x9a): undefined reference to `get'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cdbmake.c:(.text.startup.main+0xba): undefined reference to `get'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cdbmake.c:(.text.startup.main+0x107): undefined reference to `get'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cdbmake.c:(.text.startup.main+0x181): undefined reference to `get'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cdbmake.c:(.text.startup.main+0x1dc): undefined reference to `get'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cdbmake.o:cdbmake.c:(.text.startup.main+0x1f0): more undefined references to `get' follow
Comment 1 Alessandro Barbieri 2021-04-03 02:28:20 UTC
Just get rid of this mess and use tinycdb instead
Comment 2 Akinori Hattori gentoo-dev 2021-11-08 13:28:09 UTC
*** Bug 794892 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2021-11-10 13:45:59 UTC
The bug has been closed via the following commit(s):

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

commit 58d46a271f1bfbe0965971bae534c805bef0e244
Author:     Akinori Hattori <hattya@gentoo.org>
AuthorDate: 2021-11-10 13:40:47 +0000
Commit:     Akinori Hattori <hattya@gentoo.org>
CommitDate: 2021-11-10 13:40:47 +0000

    dev-db/cdb: fix build
    
    Closes: https://bugs.gentoo.org/693094
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Akinori Hattori <hattya@gentoo.org>

 dev-db/cdb/cdb-0.75-r4.ebuild     |  1 +
 dev-db/cdb/files/cdb-inline.patch | 11 +++++++++++
 2 files changed, 12 insertions(+)