Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 404271 - x11-libs/goffice + dev-libs/libpre-8.30-r2 = /usr/lib64/libgoffice-0.8.so: undefined reference to `pcre_info'
Summary: x11-libs/goffice + dev-libs/libpre-8.30-r2 = /usr/lib64/libgoffice-0.8.so: u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GNOME Office (OBSOLETE)
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords: PATCH
: 412729 412793 (view as bug list)
Depends on:
Blocks: 402363
  Show dependency tree
 
Reported: 2012-02-17 16:30 UTC by Rolf S. Arvidson
Modified: 2012-04-20 19:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (1,4.28 KB, text/plain)
2012-02-17 16:30 UTC, Rolf S. Arvidson
Details
emended ebuild to include patch; patch to follow (goffice-0.8.17.ebuild,1.49 KB, text/plain)
2012-02-17 16:58 UTC, Rolf S. Arvidson
Details
patch for API replacement of pcre_info() with pcre_fullinfo() (goffice-0.8.17-pcre-8_30.patch,362 bytes, patch)
2012-02-17 17:03 UTC, Rolf S. Arvidson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf S. Arvidson 2012-02-17 16:30:50 UTC
Created attachment 302273 [details]
emerge --info

building dev-libs/libpre-8.30-r2 appears to kill gnumeric-1.10.17; if gnumeric is already built, dev-libs/libpre-8.30-r2 results in strace error:

writev(2, [{"gnumeric", 8}, {": ", 2}, {"symbol lookup error", 19}, {": ", 2}, {"/usr/lib64/libgoffice-0.8.so.8", 30}, {": ", 2}, {"undefined symbol: pcre_info", 27}, {"", 0}, {"", 0}, {"\n", 1}], 10gnumeric: symbol lookup error: /usr/lib64/libgoffice-0.8.so.8: undefined symbol: pcre_info
) = 91

Trying to rebuild gnumeric results in link failure (excerpt from build.log:

print.c: In function ‘gnm_begin_print_cb’:
print.c:1204:11: warning: variable ‘i_pb’ set but not used [-Wunused-but-set-variable]
main-application.c:244:2: warning: #warning "REMOVE REMOVE REMOVE" [-Wcpp]
  CCLD   libspreadsheet.la
  CCLD   ssconvert
  CCLD   gnumeric
  CCLD   ssindex
  CCLD   ssgrep
  CCLD   sstest
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../lib64/libgoffice-0.8.so: undefined reference to `pcre_info'
collect2: ld returned 1 exit status
make[4]: *** [ssgrep] Error 1
make[4]: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../lib64/libgoffice-0.8.so: undefined reference to `pcre_info'
collect2: ld returned 1 exit status
make[4]: *** [ssindex] Error 1
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../lib64/libgoffice-0.8.so: undefined reference to `pcre_info'
collect2: ld returned 1 exit status
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../lib64/libgoffice-0.8.so: undefined reference to `pcre_info'
collect2: ld returned 1 exit status
make[4]: *** [ssconvert] Error 1
make[4]: *** [sstest] Error 1
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../lib64/libgoffice-0.8.so: undefined reference to `pcre_info'
collect2: ld returned 1 exit status
make[4]: *** [gnumeric] Error 1
make[4]: Leaving directory `/var/tmp/portage/app-office/gnumeric-1.10.17/work/gnumeric-1.10.17/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-office/gnumeric-1.10.17/work/gnumeric-1.10.17/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-office/gnumeric-1.10.17/work/gnumeric-1.10.17/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-office/gnumeric-1.10.17/work/gnumeric-1.10.17'
make: *** [all] Error 2
emake failed

Related to other libpcre bugs (pcre_info symbol)?  E.g.:
https://bugs.gentoo.org/show_bug.cgi?id=402363
https://bugs.gentoo.org/show_bug.cgi?id=402351
https://bugs.gentoo.org/show_bug.cgi?id=402371

Reverting to dev-libs/libpcre-8.21, rebuilding x11-libs/goffice-0.8.17 allows gnumeric-1.10.17 to build (and execute) without error. 

Not sure if this should have been piggybacked onto https://bugs.gentoo.org/show_bug.cgi?id=402363 

Emerge --info attached
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-17 16:55:17 UTC
Did you try rebuilding x11-libs/libgoffice?
Comment 2 Rolf S. Arvidson 2012-02-17 16:57:48 UTC
OK, I may have pulled the trigger too soon. On further searching, I guess the problem lies with goffice not libpcre (or gnumeric). Grabbing the patch suggested at https://build.opensuse.org/package/view_file?file=goffice-0_8-pcre-8_30.patch&package=goffice-0_8&project=home%3Adimstar%3Abranches%3AGNOME%3AApps&rev=b92fb787d233925a583440bc3c6fd0f9, and emending the ebuild for goffice-0.8.17 to include this patch allows gnumeric-1.10.17 to build and execute correctly. I've attached a suggested ebuild and patch for goffice-0.8.17 below. My apologies to gentoo devs for the confusion ... //Rolf
Comment 3 Rolf S. Arvidson 2012-02-17 16:58:43 UTC
Created attachment 302279 [details]
emended ebuild to include patch; patch to follow
Comment 5 Pacho Ramos gentoo-dev 2012-02-18 08:15:45 UTC
Please report this problem and the patch to upstream -> bugzilla.gnome.org
Comment 6 Rolf S. Arvidson 2012-02-18 17:48:11 UTC
Added a comment to gnome bug 670316 (https://bugzilla.gnome.org/show_bug.cgi?id=670316), thanks. //Rolf
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-20 17:41:20 UTC
*** Bug 412729 has been marked as a duplicate of this bug. ***
Comment 8 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-20 18:31:28 UTC
*** Bug 412793 has been marked as a duplicate of this bug. ***
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-20 19:29:07 UTC
Thank you all for reporting. This bug was caused by goffice's configure failing to detect regex support in glib and activating the libpcre-based workaround that had been needed for <glib-2.15.1. That libpcre-based code is completely unnecessary for any version of glib currently in portage, and therefore, it has been removed in goffice-0.8.17-r1. The issue should now be fixed.

>*goffice-0.8.17-r1 (20 Apr 2012)
>
>  20 Apr 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  +goffice-0.8.17-r1.ebuild, +files/goffice-0.8.17-no-pcre.patch:
>  Prevent goffice from accidentally linking to pcre and causing "undefined
>  symbol: pcre_info" errors (bug #404271)