Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574764 - =app-text/libebook-0.1.2 emerge failure due to undefined reference to boost::system::{system,generic}_category()
Summary: =app-text/libebook-0.1.2 emerge failure due to undefined reference to boost::...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-15 07:07 UTC by Yixun Lan
Modified: 2016-08-08 03:16 UTC (History)
2 users (show)

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


Attachments
full build log (build.log.xz,5.23 KB, application/x-xz)
2016-02-15 07:10 UTC, Yixun Lan
Details
libebook-boost-1.59-makefile.patch (libebook-boost-1.59-makefile.patch,335 bytes, patch)
2016-02-25 14:43 UTC, Derk W te Bokkel
Details | Diff
libebook-0.1.2-r1.ebuild (libebook-0.1.2-r1.ebuild,964 bytes, text/plain)
2016-02-25 15:48 UTC, Derk W te Bokkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2016-02-15 07:07:32 UTC
make[3]: Entering directory '/var/tmp/portage/app-text/libebook-0.1.2/work/libe-book-0.1.2/src/conv'
Making all in html
make[4]: Entering directory '/var/tmp/portage/app-text/libebook-0.1.2/work/libe-book-0.1.2/src/conv/html'
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../..    -I../../../inc -I/usr/include/librevenge-0.0   -I/usr/include/librevenge-0.0   -I/usr/include/librevenge-0.0    -DNDEBUG -O2 -pipe -march=core2  -fvisibility=hidden -DLIBE_BOOK_VISIBILITY -Wall -Wextra -pedantic -Wshadow -Wunused-variable -Weffc++ -c -o ebook2html.o ebook2html.cpp
/bin/sh ../../../libtool  --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++ -I../../../inc -I/usr/include/librevenge-0.0   -I/usr/include/librevenge-0.0   -I/usr/include/librevenge-0.0    -DNDEBUG -O2 -pipe -march=core2  -fvisibility=hidden -DLIBE_BOOK_VISIBILITY -Wall -Wextra -pedantic -Wshadow -Wunused-variable -Weffc++  -Wl,-O1 -Wl,--as-needed -o ebook2html ebook2html.o ../../lib/libe-book-0.1.la -lrevenge-0.0   -lrevenge-generators-0.0 -lrevenge-0.0   -lrevenge-stream-0.0    
libtool: link: x86_64-pc-linux-gnu-g++ -I../../../inc -I/usr/include/librevenge-0.0 -I/usr/include/librevenge-0.0 -I/usr/include/librevenge-0.0 -DNDEBUG -O2 -pipe -march=core2 -fvisibility=hidden -DLIBE_BOOK_VISIBILITY -Wall -Wextra -pedantic -Wshadow -Wunused-variable -Weffc++ -Wl,-O1 -Wl,--as-needed -o .libs/ebook2html ebook2html.o  ../../lib/.libs/libe-book-0.1.so -lxml2 -licui18n -licuuc -licudata -lz -lrevenge-generators-0.0 -lrevenge-0.0 -lrevenge-stream-0.0
../../lib/.libs/libe-book-0.1.so: undefined reference to `boost::system::system_category()'
../../lib/.libs/libe-book-0.1.so: undefined reference to `boost::system::generic_category()'
collect2: error: ld returned 1 exit status
Makefile:443: recipe for target 'ebook2html' failed
make[4]: *** [ebook2html] Error 1
make[4]: Leaving directory '/var/tmp/portage/app-text/libebook-0.1.2/work/libe-book-0.1.2/src/conv/html'
Makefile:384: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1


Reproducible: Always
Comment 1 Yixun Lan archtester gentoo-dev 2016-02-15 07:10:40 UTC
Created attachment 425544 [details]
full build log

for similar problem (fix), please check bug #574120

local boost version
$ qlist -ICv boost
dev-libs/boost-1.59.0
dev-util/boost-build-1.59.0
Comment 2 Derk W te Bokkel 2016-02-25 14:43:49 UTC
Created attachment 426538 [details, diff]
libebook-boost-1.59-makefile.patch

i've managed to make this compile against libebook-0.1.2 by manually patching

the diff does not seem to patch properly .. or is not detected properly .. but the add line does work once in place

modified from lib-ebook commit https://sourceforge.net/p/libebook/code/ci/b903d0dc91f482b348e5840e5a1df599ebd5e6f9/
Comment 3 Derk W te Bokkel 2016-02-25 15:48:34 UTC
Created attachment 426540 [details]
libebook-0.1.2-r1.ebuild

finally a working ebuild .. required addition of base eclass
and Patches array .. had an issue with typos too..
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2016-02-26 14:01:47 UTC
(In reply to Derk W te Bokkel from comment #3)
> Created attachment 426540 [details]
> libebook-0.1.2-r1.ebuild
> 
> finally a working ebuild .. required addition of base eclass
> and Patches array .. had an issue with typos too..

The patch looks good, thanks!

About the ebuild...

* base.eclass is deprecated and needs to go the way of the dinosaur
  -> PATCHES is part of EAPI=6
* you're patching Makefile.am, but not regenerating Makefile, I'm wondering why 
  that works at all...
  -> added "inherit autotools" and an eautoreconf call

Committed as 0.1.2-r1
Comment 5 Derk W te Bokkel 2016-02-26 15:58:42 UTC
sorry about the use of base.eclass .. I based this on a version of libabw which used base.eclass and EAPI=5 .. with the patches array ..??
perhaps some one forgot to switch it to EAPI=6 and removed base.eclass
Comment 6 Derk W te Bokkel 2016-02-26 16:07:10 UTC
the reason my ebuild works is that only Makefile.am and Makefile.in exist after unpack phase, patches are applied in prepare phase and Makefile generated during configure phase .. after that compile, install phases etc..

manual stepping through ebuilds is very handy ..to trouble shoot :)