Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 678134

Summary: dev-util/geany-plugins-1.34 with dev-libs/libgit2-0.28.0 - ld: .libs/git_changebar_la-gcb-plugin.o: in function `clear_cached_blob_contents': gcb-plugin.c:(.text+0x76): undefined reference to `git_buf_free'
Product: Gentoo Linux Reporter: Adam Purkrt <adam>
Component: Current packagesAssignee: Chris Mayo <aklhfex>
Status: RESOLVED OBSOLETE    
Severity: normal CC: mgorny, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Adam Purkrt 2019-02-16 09:33:47 UTC
dev-util/geany-plugins-1.34 fails to compile with the following error:

/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/git_changebar_la-gcb-plugin.o: in function `clear_cached_blob_contents':
gcb-plugin.c:(.text+0x76): undefined reference to `git_buf_free'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/git_changebar_la-gcb-plugin.o: in function `free_job':
gcb-plugin.c:(.text+0x170): undefined reference to `git_buf_free'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/git_changebar_la-gcb-plugin.o: in function `worker_thread':
gcb-plugin.c:(.text+0xf7b): undefined reference to `git_buf_free'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/git_changebar_la-gcb-plugin.o: in function `plugin_init':
gcb-plugin.c:(.text+0x2539): undefined reference to `giterr_last'
collect2: error: ld returned 1 exit status

The problem occurs with dev-libs/libgit2-0.28.0

Workaround is to downgrade to dev-libs/libgit2-0.27.8 (i.e. mask 0.28.0)
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-02-16 10:52:21 UTC
It's fixed in libgit2-0.28.1.