Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679322 - app-misc/abook-0.6.1-r1 - vcard.o: In function `vcard_parse_file_libvformat': vcard.c:(.text+0x2d): undefined reference to `vf_read_file'
Summary: app-misc/abook-0.6.1-r1 - vcard.o: In function `vcard_parse_file_libvformat':...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Cédric Krier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 699968
  Show dependency tree
 
Reported: 2019-03-03 13:27 UTC by Leho Kraav (:macmaN @lkraav)
Modified: 2020-05-24 17:24 UTC (History)
1 user (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 Leho Kraav (:macmaN @lkraav) 2019-03-03 13:27:45 UTC
https://sourceforge.net/p/abook/mailman/message/30215849/ thread (note: year 2012) claims `--enable-vformat` fixes `undefined reference" build failure listed below.

Instead, I only get this to build if I remove `--enable-vformat` from https://gitweb.gentoo.org/repo/gentoo.git/tree/app-misc/abook/abook-0.6.1-r1.ebuild#n42 

Has this configure flag become obsolete, or what might be the case?

```
...
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/ncursesw  -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed -std=gnu89 -c -o vcard.o vcard.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed -std=gnu89 -lvformat -Wl,-O1 -Wl,--as-needed -o abook abook.o abook_rl.o database.o edit.o filter.o getname.o getopt.o getopt1.o gettext.o ldif.o list.o mbswidth.o misc.o options.o ui.o views.o xmalloc.o vcard.o  -lncursesw -lreadline                                                                         
vcard.o: In function `vcard_parse_file_libvformat':
vcard.c:(.text+0x2d): undefined reference to `vf_read_file'
vcard.c:(.text+0x85): undefined reference to `vf_get_property'
vcard.c:(.text+0xad): undefined reference to `vf_get_property'
vcard.c:(.text+0xdf): undefined reference to `vf_get_property'
vcard.c:(.text+0x115): undefined reference to `vf_get_property'
vcard.c:(.text+0x14b): undefined reference to `vf_get_property'
vcard.o:vcard.c:(.text+0x181): more undefined references to `vf_get_property' follow
vcard.o: In function `vcard_parse_file_libvformat':
vcard.c:(.text+0x29a): undefined reference to `vf_get_next_object'
vcard.c:(.text+0x2ce): undefined reference to `vf_get_property'
vcard.c:(.text+0x2e2): undefined reference to `vf_get_prop_value_string'
vcard.c:(.text+0x314): undefined reference to `vf_get_next_property'
vcard.c:(.text+0x333): undefined reference to `vf_get_prop_value_string'
vcard.c:(.text+0x34c): undefined reference to `vf_get_next_property'
vcard.c:(.text+0x373): undefined reference to `vf_get_prop_value_string'
vcard.c:(.text+0x3f0): undefined reference to `vf_get_prop_value_string'
vcard.c:(.text+0x440): undefined reference to `vf_get_property'
vcard.c:(.text+0x456): undefined reference to `vf_get_prop_value_string'
vcard.c:(.text+0x478): undefined reference to `vf_get_prop_value_string'
vcard.c:(.text+0x4b8): undefined reference to `vf_get_prop_value_string'
vcard.c:(.text+0x4f8): undefined reference to `vf_get_prop_value_string'
vcard.c:(.text+0x507): undefined reference to `vf_get_prop_value_string'
vcard.o:vcard.c:(.text+0x535): more undefined references to `vf_get_prop_value_string' follow
vcard.o: In function `vcard_parse_file_libvformat':
vcard.c:(.text+0x738): undefined reference to `vf_get_property'
vcard.c:(.text+0x760): undefined reference to `vf_get_property'
vcard.c:(.text+0x776): undefined reference to `vf_get_prop_value_string'
vcard.c:(.text+0x7b8): undefined reference to `vf_get_prop_value_string'
vcard.c:(.text+0x7ef): undefined reference to `vf_get_prop_value_string'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:481: abook] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-misc/abook-0.6.1-r1/work/abook-0.6.1'
make[1]: *** [Makefile:529: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-misc/abook-0.6.1-r1/work/abook-0.6.1'
make: *** [Makefile:382: all] Error 2
 * ERROR: app-misc/abook-0.6.1-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-misc/abook-0.6.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-misc/abook-0.6.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-misc/abook-0.6.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-misc/abook-0.6.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-misc/abook-0.6.1-r1/work/abook-0.6.1'
 * S: '/var/tmp/portage/app-misc/abook-0.6.1-r1/work/abook-0.6.1'
[91.0.3@papaya /] Phase:

>>> Failed to emerge app-misc/abook-0.6.1-r1, Log file:

>>>  '/var/tmp/portage/app-misc/abook-0.6.1-r1/temp/build.log'

 * Messages for package app-misc/abook-0.6.1-r1:

 * ERROR: app-misc/abook-0.6.1-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-misc/abook-0.6.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-misc/abook-0.6.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-misc/abook-0.6.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-misc/abook-0.6.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-misc/abook-0.6.1-r1/work/abook-0.6.1'
 * S: '/var/tmp/portage/app-misc/abook-0.6.1-r1/work/abook-0.6.1'
```
Comment 1 Larry the Git Cow gentoo-dev 2020-05-24 17:24:02 UTC
The bug has been closed via the following commit(s):

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

commit 4005f7db3a9be036144792e24e1ab8446b52f3a2
Author:     Cédric Krier <cedk@gentoo.org>
AuthorDate: 2020-05-24 17:23:00 +0000
Commit:     Cédric Krier <cedk@gentoo.org>
CommitDate: 2020-05-24 17:23:54 +0000

    app-misc/abook: Fix link to tinfo and vformat
    
    Closes: https://bugs.gentoo.org/679322
    Bug: https://bugs.gentoo.org/699968
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Cédric Krier <cedk@gentoo.org>

 .../abook/{abook-0.6.1-r1.ebuild => abook-0.6.1-r2.ebuild}    |  3 ++-
 app-misc/abook/files/abook-0.6.1-tinfo.patch                  |  4 ++--
 app-misc/abook/files/abook-0.6.1-vformat.patch                | 11 +++++++++++
 app-misc/abook/metadata.xml                                   |  4 +++-
 4 files changed, 18 insertions(+), 4 deletions(-)