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: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-29 21:26 UTC by Alessandro Barbieri
Modified: 2021-04-03 02:28 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 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