Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394639 - media-gfx/povray-3.7.0_rc3-r{0,1} - jpeg.cpp: undefined reference to `boost::gregorian::greg_month::as_short_string() const'
Summary: media-gfx/povray-3.7.0_rc3-r{0,1} - jpeg.cpp: 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: Joe Peterson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 04:43 UTC by Michael M. Tung
Modified: 2012-01-25 16:09 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,178.06 KB, text/plain)
2011-12-14 04:44 UTC, Michael M. Tung
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael M. Tung 2011-12-14 04:43:25 UTC
povray-3.7.0_rc3 (and subversion -r1) while compiling give linking error with error  "undefined reference to `boost::gregorian::greg_month::as_long_string() const'"

Reproducible: Always

Steps to Reproduce:
1. emerge -av media-gfx/povray
2.
3.
Actual Results:  
compilation fails

Expected Results:  
to compile without error

Portage 2.1.10.11 (default/linux/amd64/10.0, gcc-4.5.3, unavailable, 2.6.37-gentoo-r4 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.37-gentoo-r4-x86_64-Intel-R-_Core-TM-_i7_CPU_930_@_2.80GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 14 Dec 2011 03:15:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo sunrise belak flow
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.dei.uc.pt/pub/linux/gentoo/ http://gentoo.wheel.sk/ http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/belak /var/lib/layman/flow"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bzip2 cddb cli cracklib crypt cups cxx dbus djvu dri dvd dvdr firefox flac fortran gd gdbm gif gpm gstreamer iconv ipv6 jpeg laptop midi mmx modules motif mudflap multilib ncurses nls nptl nptlonly ntp opengl openmp pam pcre pdf png pppd pulseaudio raw readline session sse sse2 ssl svg sysfs tcl tcpd threads tiff tk truetype truetype-fonts type1-fonts unicode usb v4l vcd vim-syntax vorbis xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon nikon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev wacom joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia intel vga vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-gfx/povray-3.6.1-r4 was built with the following:
USE="X (multilib) tiff (-svga)"
Comment 1 Michael M. Tung 2011-12-14 04:44:30 UTC
Created attachment 295753 [details]
build.log
Comment 2 Rafał Mużyło 2011-12-14 14:29:14 UTC
...so the obvious question follows: which version(s) of boost do you have installed (with useflags) and 'eselect boost list' ?
Comment 3 Michael M. Tung 2011-12-14 14:55:58 UTC
Rafal, I am using the latest stable boost release:

dev-libs/boost-1.46.1-r1 was built with the following:
USE="eselect (multilib) python -debug -doc -icu -mpi -static-libs -test -tools"
CFLAGS="-march=native -fno-strict-aliasing"
CXXFLAGS="-march=native -fno-strict-aliasing"

BTW, the same compile error is also reproduced from the original source code downloaded from the povray site.
Comment 4 Michael M. Tung 2012-01-24 00:01:38 UTC
Hi!

I just downloaded the original source code of povray-3.7.0.RC3 and could successfully compile with the following additional configure option

--with-boost-thread=boost_thread-mt

as also indicated on http://www.povray.org/beta/source/. This seems to be necessary on most 64-bit platforms. Could you please add it to the ebuild (or at least include a USE flag to enable this configure option)?

Thanks! Best, Mike
Comment 5 Joe Peterson (RETIRED) gentoo-dev 2012-01-24 04:35:14 UTC
OK, thanks for the fix.  I have added this line and tested building, and it works here as well (even though failure was not always easy to reproduce).  Please test again after the change to -r1 hits the tree and reopen bug if not fixed.
Comment 6 Michael M. Tung 2012-01-25 11:43:52 UTC
Perfect! Now compiles flawlessly. However, needed the flags

CFLAGS="-O2" CXXFLAGS="-O2"
Comment 7 Joe Peterson (RETIRED) gentoo-dev 2012-01-25 14:41:33 UTC
(In reply to comment #6)
> Perfect! Now compiles flawlessly. However, needed the flags
> 
> CFLAGS="-O2" CXXFLAGS="-O2"

Well, remember that CFLAGS, etc., on the system should always be honored by ebuilds (i.e. ebuilds should use the -O2 flag if your system /etc/make.conf specifies that).  If this build is not picking up your sys flags, let me know...
Comment 8 Michael M. Tung 2012-01-25 16:09:53 UTC
Sorry, if I wasn't clear in my last comment. My default /etc/make.conf contains CFLAGS="-march=native". This sometimes causes problems. For a successful compilation of povray (apart from the new ebuild setting) I had to override manually with

env CFLAGS="-O2" CXXFLAGS="-O2" USE emerge -av media-gfx/povray.

Best, Mike