Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 524700 - =media-gfx/hugin-2014.0.0_rc4 with =media-libs/lensfun-0.3.0 - .../work/hugin-2014.0.0/src/hugin_base/lensdb/LensDB.cpp:623:18: error: 'LF_DIST_MODEL_FOV1' was not declared in this scope
Summary: =media-gfx/hugin-2014.0.0_rc4 with =media-libs/lensfun-0.3.0 - .../work/hugin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-07 15:12 UTC by Johannes Hirte
Modified: 2014-10-10 20:12 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,17.53 KB, text/plain)
2014-10-07 15:12 UTC, Johannes Hirte
Details
lensfun-0.3-no-LF_DIST_MODEL_FOV1.patch (lensfun-0.3-no-LF_DIST_MODEL_FOV1.patch,564 bytes, patch)
2014-10-08 09:49 UTC, Francesco Riosa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Hirte 2014-10-07 15:12:18 UTC
When trying to build hugin with lensfun-0.3.0, emerge fails with the following error message:

[ 22%] Building CXX object src/hugin_base/CMakeFiles/huginbase.dir/lensdb/LensDB.cpp.o
/var/tmp/portage/media-gfx/hugin-2014.0.0_rc4/work/hugin-2014.0.0/src/hugin_base/lensdb/LensDB.cpp: In member function 'bool HuginBase::LensDB::LensDB::GetFov(double, double&)':
/var/tmp/portage/media-gfx/hugin-2014.0.0_rc4/work/hugin-2014.0.0/src/hugin_base/lensdb/LensDB.cpp:586:50: warning: 'bool lfLens::InterpolateFov(float, lfLensCalibFov&) const' is deprecated (declared at /usr/include/lensfun/lensfun.h:1151) [-Wdeprecated-declarations]
     if(m_lenses[0]->InterpolateFov(focal,calibFov))
                                                  ^
/var/tmp/portage/media-gfx/hugin-2014.0.0_rc4/work/hugin-2014.0.0/src/hugin_base/lensdb/LensDB.cpp: In member function 'bool HuginBase::LensDB::LensDB::GetDistortion(double, std::vector<double, std::allocator<double> >&)':
/var/tmp/portage/media-gfx/hugin-2014.0.0_rc4/work/hugin-2014.0.0/src/hugin_base/lensdb/LensDB.cpp:623:18: error: 'LF_DIST_MODEL_FOV1' was not declared in this scope
             case LF_DIST_MODEL_FOV1:
                  ^
/var/tmp/portage/media-gfx/hugin-2014.0.0_rc4/work/hugin-2014.0.0/src/hugin_base/lensdb/LensDB.cpp: In member function 'void HuginBase::LensDB::LensDB::SaveHFOV(double, double)':
/var/tmp/portage/media-gfx/hugin-2014.0.0_rc4/work/hugin-2014.0.0/src/hugin_base/lensdb/LensDB.cpp:999:48: warning: 'bool lfLens::RemoveCalibFov(int)' is deprecated (declared at /usr/include/lensfun/lensfun.h:976) [-Wdeprecated-declarations]
             m_currentLens->RemoveCalibFov(index);
                                                ^
/var/tmp/portage/media-gfx/hugin-2014.0.0_rc4/work/hugin-2014.0.0/src/hugin_base/lensdb/LensDB.cpp:1004:40: warning: 'void lfLens::AddCalibFov(const lfLensCalibFov*)' is deprecated (declared at /usr/include/lensfun/lensfun.h:965) [-Wdeprecated-declarations]
         m_currentLens->AddCalibFov(&lcf);
                                        ^
src/hugin_base/CMakeFiles/huginbase.dir/build.make:813: recipe for target 'src/hugin_base/CMakeFiles/huginbase.dir/lensdb/LensDB.cpp.o' failed
make[2]: *** [src/hugin_base/CMakeFiles/huginbase.dir/lensdb/LensDB.cpp.o] Error 1
CMakeFiles/Makefile2:432: recipe for target 'src/hugin_base/CMakeFiles/huginbase.dir/all' failed
make[1]: *** [src/hugin_base/CMakeFiles/huginbase.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: media-gfx/hugin-2014.0.0_rc4::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-gfx/hugin-2014.0.0_rc4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/hugin-2014.0.0_rc4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/hugin-2014.0.0_rc4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/hugin-2014.0.0_rc4/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/hugin-2014.0.0_rc4/work/hugin-2014.0.0_rc4_build'
 * S: '/var/tmp/portage/media-gfx/hugin-2014.0.0_rc4/work/hugin-2014.0.0'

>>> Failed to emerge media-gfx/hugin-2014.0.0_rc4, Log file:

>>>  '/var/tmp/portage/media-gfx/hugin-2014.0.0_rc4/temp/build.log'

Downgrading lensfun to 0.2.8-r1 works.

Reproducible: Always




emerge --info
Portage 2.2.14_rc1 (python 2.7.8-final-0, default/linux/amd64, gcc-4.8.3, glibc-2.19-r1, 3.17.0-btrfs-00118-gabc13e2 x86_64)
=================================================================
System uname: Linux-3.17.0-btrfs-00118-gabc13e2-x86_64-Intel-R-_Core-TM-_i5_CPU_M_540_@_2.53GHz-with-gentoo-2.2
KiB Mem:     3838196 total,    794760 free
KiB Swap:    3975164 total,   3829332 free
Timestamp of tree: Tue, 07 Oct 2014 12:00:01 +0000
ld GNU gold (Gentoo 2.24 p1.4 2.24) 1.11
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3, 4.9.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo x11 mysql qt local kde
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x TeamViewer googleearth google-chrome PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=corei7 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/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="-O2 -march=corei7 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-z,combreloc -O2 -march=corei7 -pipe"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/mysql /var/lib/layman/qt /usr/local/portage /var/lib/layman/kde"
USE="X a52 aac acl acpi addressbook aio alsa amd64 amr amrenc apm apng attica audiofile berkdb bzip2 cairo calendar caps caps-ng cdda cddb cdio cdparanoia celt chm clang cli consolekit corefonts cracklib crypt cups cxx dbus demosaic desktopglobe device-mapper dii dirac djvu dot dpi dri dts dv dvd dvdnav ebook egl eigen epub evdev exif expoblending faac faad fam ffmpeg fftw flac fontconfig fortran frei0r gdbm gif git gmp gold gphoto2 gpm graphviz h224 h281 h323 hunspell iconv icu id3tag ilbc ipv6 jabber jemalloc jpeg jpeg2k json kde kipi latex lcms ldap lensfun libass libffi libkms libmpeg2 libnotify lm_sensors lto lzma lzo mad matroska minizip mjpeg mmap mmx mng mobi modules mongodb mount mp3 mp4 mpeg mpfr mpi mtp multilib musicbrainz mysql mysqli ncurses networkmanager new-login nls nptl ntfs ntfsprogs ofx ogg okteta opencv openexr opengl openipmi openldap openmp opus otr pam pango panorama pcre pdf perl plasma png pnm policykit postscript prison python python3 qt3support qt4 qthelp quotes rar raw readline reviewboard romio rpc samba scanner schroedinger sdl secure-delete session shapefile sip sipe sipim smb smime smp sndfile snmp speex spell sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification subversion svg system-cairo system-icu system-jpeg system-sqlite szip t1lib taglib tcpd theora threads thumbnail tiff tremor truetype twolame udev umfpack unicode unlock-notify unwind upower usb v4l v8 vaapi vhosts vlc vorbis vpx wav wavpack webkit webp wifi wmf x264 xattr xcb xcomposite xinirama xkb xml xmp xpm xscreensaver xv xvid zip zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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 proxy_http" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 canon" 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 ublox ubx" GRUB_PLATFORMS="efi-32 efi-64 pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite split_clients ssi upstream_ip_hash userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby21" SANE_BACKENDS="snapscan" USERLAND="GNU" UWSGI_PLUGINS="cache carbon cheaper_busyness corerouter fastrouter http logfile logsocket mongodblog nagios ping rawrouter redislog router_basicauth router_cache router_expires router_hash router_http router_memcached router_metrics router_redirect router_redis router_rewrite router_static router_uwsgi rpc signal spooler sslrouter symcall syslog transformation_chunked transformation_gzip transformation_offload transformation_tofile ugreen zergpool" VIDEO_CARDS="i965 intel" 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"
USE_PYTHON="2.7 3.3 3.4"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 1 Johannes Hirte 2014-10-07 15:12:59 UTC
Created attachment 386186 [details]
build.log
Comment 2 Francesco Riosa 2014-10-08 09:49:30 UTC
Created attachment 386234 [details, diff]
lensfun-0.3-no-LF_DIST_MODEL_FOV1.patch

lensfun 3.0 does not define LF_DIST_MODEL_FOV1 (it's still there in 0.2.8-r1)
the attached patch test for it's existance.

the case statment it's altering was doing nothing anyway
Comment 3 David Kredba 2014-10-09 16:26:23 UTC
Final 2014.0.0 release needs the patch too.
Comment 4 Markus Meier gentoo-dev 2014-10-10 20:12:28 UTC
Fixed and bumped to 2014.0.0 final version in cvs, thanks for the report and patch!

+*hugin-2014.0.0 (10 Oct 2014)
+
+  10 Oct 2014; Markus Meier <maekke@gentoo.org> -hugin-2014.0.0_rc4.ebuild,
+  +hugin-2014.0.0.ebuild, +files/hugin-2014.0.0-lensfun-0.3.0.patch:
+  version bump, fix building with media-libs/lensfun-0.3.0 by Francesco Riosa
+  in bug #524700
+