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

Bug 645882

Summary: app-misc/gcal-4.1 : gcal.c:(.text+<snip>): undefined reference to u8_strlen
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Shell Tools project <shell-tools>
Status: CONFIRMED ---    
Severity: normal CC: ulm
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-misc:gcal-4.1:20180126-231032.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2018-01-27 08:41:29 UTC
x86_64-pc-linux-gnu-gcc -I../lib -I. -I.. -D_GNU_SOURCE -O2 -pipe -march=native  -Wl,-O1 -Wl,--as-needed -o gcal gcal.o file-io.o hd-astro.o hd-data.o hd-data1.o hd-use.o help.o print.o tty.o utils.o rc-astro.o rc-check.o rc-insert.o rc-use.o rc-utils.o hd-data2.o hd-data3.o hd-data4.o hd-data5.o ../lib/libgnu.a  -lm  -lncurses
gcal.o: In function `eval_longopt':
gcal.c:(.text+0x4c9): undefined reference to `u8_strlen'
gcal.c:(.text+0x4f0): undefined reference to `u8_strlen'
gcal.c:(.text+0x608): undefined reference to `u8_strlen'
gcal.c:(.text+0x659): undefined reference to `u8_strlen'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome_libressl_20180123-193402

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems)
  [2]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv app-misc/gcal
[ebuild  N    ] app-misc/gcal-3.6.3  USE="ncurses nls unicode"
Comment 1 Toralf Förster gentoo-dev 2018-01-27 08:41:32 UTC
Created attachment 516878 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-01-27 08:41:35 UTC
Created attachment 516880 [details]
app-misc:gcal-4.1:20180126-231032.log
Comment 3 Toralf Förster gentoo-dev 2018-01-27 08:41:38 UTC
Created attachment 516882 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-01-27 08:41:41 UTC
Created attachment 516884 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-01-27 08:41:44 UTC
Created attachment 516886 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-01-27 08:41:47 UTC
Created attachment 516888 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-01-27 08:41:50 UTC
Created attachment 516890 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2018-01-30 08:12:47 UTC
The bug has been referenced in the following commit(s):

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

commit c5d38c1604603e14b166b053bed91888dc7c67f2
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2018-01-30 07:57:21 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2018-01-30 08:12:14 +0000

    app-misc/gcal: Add missing dependency on dev-libs/libunistring.
    
    Bug: https://bugs.gentoo.org/645882
    Package-Manager: Portage-2.3.20, Repoman-2.3.6

 app-misc/gcal/gcal-4.1.ebuild | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)}
Comment 9 Ulrich Müller gentoo-dev 2018-01-30 08:16:34 UTC
Adding the following line to src_configure (plus a dependency on libunistring) makes it compile:

    use unicode && append-libs -lunistring

However, this is a workaround only for a problem in the upstream package. So this should be reported upstream.
Comment 10 Patrice Clement gentoo-dev 2018-01-30 08:54:01 UTC
Thanks a lot Ulrich!