Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446460 - media-gfx/gmic-1.5.2.4 - gmic_use_lib.cpp:(.text+0x58): undefined reference to `cimg_library::CImgList<float>::assign(unsigned int)'
Summary: media-gfx/gmic-1.5.2.4 - gmic_use_lib.cpp:(.text+0x58): undefined reference t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-08 13:45 UTC by Francesco Riosa
Modified: 2012-12-09 13:02 UTC (History)
2 users (show)

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


Attachments
media-gfx:gmic-1.5.2.4:20121208-133313.log (media-gfx:gmic-1.5.2.4:20121208-130849.log,12.54 KB, text/plain)
2012-12-08 13:54 UTC, Francesco Riosa
Details
media-gfx:gmic-1.5.2.4:20121208-133313.log (media-gfx:gmic-1.5.2.4:20121208-133313.log,12.54 KB, text/plain)
2012-12-08 13:55 UTC, Francesco Riosa
Details
media-gfx:gmic-1.5.2.2:20121208-141045.log (media-gfx:gmic-1.5.2.2:20121208-141045.log,11.16 KB, text/plain)
2012-12-08 14:50 UTC, Francesco Riosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2012-12-08 13:45:05 UTC
that "-Dcimg_display=0" need further review?

test Doc # eix media-gfx/gmic
[U] media-gfx/gmic
     Available versions:  (~)1.5.2.2 (~)1.5.2.4 {{X doc ffmpeg fftw graphicsmagick jpeg opencv openexr png tiff zlib}}
     Installed versions:  1.5.2.2(15:10:41 13/11/2012)(X fftw jpeg opencv openexr png tiff zlib -doc -ffmpeg -graphicsmagick)
     Homepage:            http://gmic.sourceforge.net/
     Description:         GREYC's Magic Image Converter


x86_64-pc-linux-gnu-g++ -o gmic_double.o -c gmic.cpp -O2 -march=corei7-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=6144 -mtune=corei7-avx -mno-bmi2 -mno-avx2 -mno-lzcnt -mrdrnd --param=l1-cache-size=32 -fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine  -ggdb -gdwarf-4 -fvar-tracking-assignments -fvisibility-inlines-hidden  -Dgmic_build -I/usr/include -Dcimg_use_vt100  -Dcimg_display=1 -Dcimg_appname=\"gmic\"  -Dcimg_use_xshm -Dcimg_use_png -Dcimg_use_jpeg -Dcimg_use_tiff -Dcimg_use_zlib -Dcimg_use_fftw3 -Dcimg_use_openexr -I/usr/include/OpenEXR    -Dgmic_split_compilation -Dgmic_double
ar rcs libgmic.a gmic_lib.o
x86_64-pc-linux-gnu-g++ -shared -Wl,-soname,libgmic.so.1 -o libgmic.so gmic_lib.o -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,--no-copy-dt-needed-entries -Wl,--build-id -lfftw3
x86_64-pc-linux-gnu-g++ -o gmic_use_lib gmic_use_lib.cpp -L. -lgmic -lfftw3
/var/tmp/portage/media-gfx/gmic-1.5.2.4/temp/ccTgUHNi.o: In function `main':
gmic_use_lib.cpp:(.text+0x58): undefined reference to `cimg_library::CImgList<float>::assign(unsigned int)'
gmic_use_lib.cpp:(.text+0x9a): undefined reference to `cimg_library::CImg<float>::assign(unsigned int, unsigned int, unsigned int, unsigned int)'
gmic_use_lib.cpp:(.text+0x40a): undefined reference to `cimg_library::CImgList<float>::assign(unsigned int)'
gmic_use_lib.cpp:(.text+0x43c): undefined reference to `cimg_library::CImgList<char>::~CImgList()'
gmic_use_lib.cpp:(.text+0x44b): undefined reference to `cimg_library::CImgList<float>::~CImgList()'
gmic_use_lib.cpp:(.text+0x4b9): undefined reference to `cimg_library::CImgList<char>::~CImgList()'
gmic_use_lib.cpp:(.text+0x4cd): undefined reference to `cimg_library::CImgList<float>::~CImgList()'
collect2: error: ld returned 1 exit status
make[1]: *** [gmic_lib] Errore 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/gmic-1.5.2.4/work/gmic-1.5.2.4/src'
make: *** [lib] Errore 2
make: *** Attesa dei processi non terminati....
x86_64-pc-linux-gnu-g++ -o gmic gmic_bool.o gmic_uchar.o gmic_char.o gmic_ushort.o gmic_short.o gmic_uint.o gmic_int.o gmic_float.o gmic_double.o -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,--no-copy-dt-needed-entries -Wl,--build-id -lX11 -lpthread  -lXext -lpng -lz -ljpeg -ltiff -lz -lfftw3 -lIlmImf -lHalf
make[1]: Leaving directory `/var/tmp/portage/media-gfx/gmic-1.5.2.4/work/gmic-1.5.2.4/src'
 * ERROR: media-gfx/gmic-1.5.2.4 failed (compile phase):
 *   emake failed
 *



Portage 2.2.0_alpha144 (default/linux/amd64/10.0, gcc-4.7.2, glibc-2.15-r3, 3.5.7-vs2.3.4.3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.5.7-vs2.3.4.3-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Sat, 08 Dec 2012 10:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.8 [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.10.2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3, 4.7.2, 4.8.0_alpha20121118::toolchain
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo vivovl mysql qt toolchain x11 kde digikam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=corei7-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=6144 -mtune=corei7-avx -mno-bmi2 -mno-avx2 -mno-lzcnt -mrdrnd --param=l1-cache-size=32 -fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine  -ggdb -gdwarf-4 -fvar-tracking-assignments"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/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-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=6144 -mtune=corei7-avx -mno-bmi2 -mno-avx2 -mno-lzcnt -mrdrnd --param=l1-cache-size=32 -fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine  -ggdb -gdwarf-4 -fvar-tracking-assignments -fvisibility-inlines-hidden"
DISTDIR="/g/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid --quiet-build=y --buildpkg-exclude=x11-drivers/nvidia-drivers --buildpkg-exclude=sys-power/bbswitch --buildpkg-exclude=app-emulation/virtualbox-modules --buildpkg-exclude=sys-fs/aufs3"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs compress-build-logs compressdebug config-protect-if-modified distcc distlocks ebuild-locks fail-clean fixlafiles installsources merge-sync metadata-transfer news noinfo notitles parallel-fetch parallel-install sandbox sfperms skiprocheck splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.lagis.at/ http://mirror.qubenet.net/mirror/gentoo/"
INSTALL_MASK=" /usr/lib64/elektra/*.la /usr/lib64/libelektra*.la /usr/lib64/libo{{,sp}grove,style}.la /lib/udev/rules.d/45-Argyll.rules /usr/lib64/terminfo/[0-9] /usr/src/debug /usr/lib64/debug/ "
LANG="it_IT@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,--no-copy-dt-needed-entries -Wl,--build-id"
MAKEOPTS="-j36"
PKGDIR="/g/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/g/portage"
PORTDIR_OVERLAY="/g/ovl/tmp /g/ovl/mysql /g/ovl/qt /g/ovl/toolchain /g/ovl/x11 /g/ovl/kde /g/ovl/digikam"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 avx berkdb bzip2 c++0x caps cli cracklib crypt cups curl cxx dbus dri egl exif ffmpeg flac fortran gdbm gles1 gles2 gpm iconv icu idn ipv6 jpeg kipi lcms lua lzma lzo modules mudflap multilib ncurses nls nptl opencl openexr opengl openmp pam pcre png pppd qt3support qt4 readline samba semantic-desktop session smartcard sse sse2 sse3 sse4_1 ssl ssse3 static-libs svg tcpd tiff unicode v4l vorbis xattr xcb xinerama xml 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status userdir usertrack vhost_alias reqtimeout" APACHE2_MPMS="worker" CALLIGRA_FEATURES="krita braindump flow stage words sheets" CAMERAS="ptp2 directory canon samsung" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="bootchart mdraid syslog uswsusp caps" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffeval ismindex pktdumper qt-faststart trasher" 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" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="keyboard mouse evdev wacom synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb 
ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="it" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="pypy1_9 python2_7" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="hp4200 net ricoh" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia radeon r300 intel modesetting" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

media-gfx/gmic-1.5.2.2 was built with the following:
USE="X fftw jpeg opencv openexr png tiff zlib -doc -ffmpeg -graphicsmagick"
Comment 1 Francesco Riosa 2012-12-08 13:54:54 UTC
Created attachment 331806 [details]
media-gfx:gmic-1.5.2.4:20121208-133313.log

build log without cimg installed
Comment 2 Francesco Riosa 2012-12-08 13:55:49 UTC
Created attachment 331808 [details]
media-gfx:gmic-1.5.2.4:20121208-133313.log

build log WITH cimg installed
Comment 3 Francesco Riosa 2012-12-08 14:50:42 UTC
Created attachment 331810 [details]
media-gfx:gmic-1.5.2.2:20121208-141045.log

succesful build of 1.5.2.2
Comment 4 Tim Harder gentoo-dev 2012-12-08 21:23:26 UTC
(In reply to comment #0)
> that "-Dcimg_display=0" need further review?

That's not related to the problem. The issue appears to be that the example code getting built links to gmic which has CImg support enabled while the required lines for adding CImg support are commented out by default in the example code.

Anyway, since we don't need the example code being built we'll just skip it so this should be fixed now in CVS.
Comment 5 Francesco Riosa 2012-12-09 13:02:37 UTC
thanks for explanation, indeed had no time to investigate it just some spare cpu cicle to try different configurations.

Confirmed emerging fine now.