Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458690 - sci-visualization/opendx-4.4.4-r4: _im_image.c:(.text+0x325): undefined reference to `ConstituteComponentTerminus'
Summary: sci-visualization/opendx-4.4.4-r4: _im_image.c:(.text+0x325): undefined refer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 05:41 UTC by Juergen Rose
Modified: 2015-01-10 21:32 UTC (History)
1 user (show)

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


Attachments
/var/tmp/portage/sci-visualization/opendx-4.4.4-r4/temp/build.log (build.log,321.36 KB, text/plain)
2013-02-22 05:42 UTC, Juergen Rose
Details
opendx-4.4.4-r4.patch (opendx-4.4.4-r4.patch,2.53 KB, patch)
2013-03-31 18:59 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2013-02-22 05:41:58 UTC
'emerge opendx' fails with:
...
libtool: link: x86_64-pc-linux-gnu-gcc -march=amdfam10 -O2 -pipe -fno-strength-reduce -D_GNU_SOURCE -I/usr/include/GraphicsMagick -Wl,-export-dynamic -Wl,-O1 -o dxexec main.o ../dxmods/user.o ../libdx/mem.o ../libdx/memory.o  -Wl,--as-needed ../dpexec/.libs/libDPEXEC.a -L/var/tmp/portage/sci-libs/hdf-4.2.9/work/hdf-4.2.9/mfhdf/libsrc/.libs -L/var/tmp/portage/sci-libs/hdf-4.2.9/work/hdf-4.2.9/hdf/src/.libs ../dxmods/.libs/libDXMODS.a ../dxmods/.libs/libDXMODSN.a ../libdx/.libs/libLIBDX.a ../hwrender/.libs/libHW.a ../hwrender/opengl/.libs/libOPENGL.a -lnsl -lXinerama -lnetcdf -lcdf /usr/lib64/libdf.so -lsz -ljpeg -lz -lXpm -ltiff -ldl -lXm -lXp -lGLU -lGL -lm -lXmu -lXext -lXt -lX11 -lSM -lICE -lpthread /usr/lib64/libGraphicsMagick.so -pthread -fopenmp
../dxmods/.libs/libDXMODS.a(_im_image.o): In function `_dxf_write_im':
_im_image.c:(.text+0x339): undefined reference to `ConstituteComponentTerminus'
_im_image.c:(.text+0x663): undefined reference to `TemporaryFilename'
_im_image.c:(.text+0x998): undefined reference to `ConstituteComponentTerminus'
_im_image.c:(.text+0xa10): undefined reference to `ConstituteComponentTerminus'
_im_image.c:(.text+0xaf0): undefined reference to `ConstituteComponentTerminus'
collect2: ld returned 1 exit status
make[3]: *** [dxexec] Error 1


Reproducible: Always




root@impala:/root(28)# emerge --info '=sci-visualization/opendx-4.4.4-r4'
Portage 2.1.11.52 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.16.0, 3.8.0-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.0-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     8165732 total,   3055956 free
KiB Swap:   50347696 total,  50342040 free
Timestamp of tree: Thu, 21 Feb 2013 23:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo x11 science sage-on-gentoo sunrise lisp lordvan sabayon x-portage x-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-10.3 AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /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="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/science /var/lib/layman/sage-on-gentoo /var/lib/layman/sunrise /var/lib/layman/lisp /var/lib/layman/lordvan /var/lib/layman/sabayon /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit R X Xaw3d a52 aac accessibility acl acpi admin afs alsa amd64 ao apache2 apng applet archive arpack asf aspell assistant atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boo boost bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli consolekit corba cracklib crypt css cuda cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fts3 fuse g3dvl gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile harness hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3 id3tag ide imagemagick imap inotify introspection ipod ipv6 ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kate kde kdepim kdrive kerberos keymap kpathsea kqemu kvm ladspa lame lapack latex lcms ldap lensfun libffi libkms libnotify libsamplerate live lm_sensors lua lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking networkmanager nfs nls nntp nptl nsplugin ntfs ntp numpy nvidia obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp overview pam pcre pda pdf perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime raw readline reiserfs reports rhythmbox rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 sse4a ssl stlport subtitles subversion sudo suexec svg svm swig szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thesaurus threads thunderbird tidy tiff tk tools truetype udev udisks unicode usb userlocales utempter v4l vaapi vala vdpau video virt-network virtualbox visio vorbis vpx wav webdav webdav-serf webkit wmf wxwidgets x264 xa xattr xcb xemacs xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" 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" 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_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="caps lvm mdraid 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

sci-visualization/opendx-4.4.4-r4 was built with the following:
USE="cdf hdf imagemagick (multilib) netcdf smp szip tiff"
CFLAGS="-march=amdfam10 -O2 -pipe -fno-strength-reduce"
CXXFLAGS="-march=amdfam10 -O2 -pipe -fno-strength-reduce"


root@impala:/root(29)# emerge -pqv '=sci-visualization/opendx-4.4.4-r4'
[ebuild   R   ] sci-visualization/opendx-4.4.4-r4  USE="cdf hdf imagemagick netcdf smp szip tiff"
Comment 1 Juergen Rose 2013-02-22 05:42:56 UTC
Created attachment 339672 [details]
/var/tmp/portage/sci-visualization/opendx-4.4.4-r4/temp/build.log
Comment 2 François Bissey 2013-02-24 02:20:06 UTC
imagemagick related it looks like someone has a fix in an overlay on github.
Comment 3 François Bissey 2013-02-24 04:43:37 UTC
ok, I looked a little bit better and it looks like the patch I saw must be in the main tree and causing you the trouble. I'll have to check the latest ebuild logic but which version of imagemagick or possibly graphicsmagick do you have installed?
Comment 4 Juergen Rose 2013-02-24 08:59:33 UTC
I have imagemagick-6.7.9.9.
Comment 5 François Bissey 2013-02-24 09:27:31 UTC
That's quite a reasonable version. But I realise you are actually using graphicsmagick not imagemagick in this build. I have 1.3.16-r1 and in libGraphicsMagick.so I have DestroyConstitute and not ConstituteComponentTerminus.
opendx-4.4.4-magick.patch replace the first with the later. I am not sure why. I am guessing you have have 1.3.17. Can you confirm that
nm -D --defined-only /usr/lib64/libGraphicsMagick.so.3.9.0 | grep Cons

shows only DestroyConstitute? I have the same result if I look at libMagickCore.so
from imagemagick. So the purpose of that patch is quite unclear right now, unless the new symbol is enabled by some useflags.
Comment 6 François Bissey 2013-02-24 09:31:22 UTC
Further it appears that the other missing symbol (TemporaryFilename) is in imagemagick but not in graphicsmagick (at leat not in mine).
Comment 7 Juergen Rose 2013-02-24 12:18:46 UTC
graphicsmagick-1.3.17 is installed as dependency of pdf2djvu and octave:

root@impala:/root(3)# emerge -pv --depclean  graphicsmagick

Calculating dependencies... done!
  media-gfx/graphicsmagick-1.3.17 pulled in by:
    app-text/pdf2djvu-0.7.16 requires media-gfx/graphicsmagick
    sci-mathematics/octave-3.6.3 requires media-gfx/graphicsmagick[cxx]
...

I don't have /usr/lib64/libGraphicsMagick.so.3.9.0 I have only /usr/lib64/libGraphicsMagick.so.3.10.0:

root@impala:/root(5)# ll /usr/lib64/libGraphicsMagick.so.*
lrwxrwxrwx 1 root root      27 Feb 21 16:53 /usr/lib64/libGraphicsMagick.so.3 -> libGraphicsMagick.so.3.10.0*
-rwxr-xr-x 1 root root 1789752 Feb 21 16:53 /usr/lib64/libGraphicsMagick.so.3.10.0*


root@impala:/root(6)# nm -D --defined-only /usr/lib64/libGraphicsMagick.so.3.10.0 | grep Cons
0000000000083e80 T ConstituteImage
00000000000fed20 T ConstituteTextureImage
0000000000084800 T DestroyConstitute
0000000000085720 T InitializeConstitute
000000000004f1c0 T MagickConstrainColormapIndex
000000000013dbe0 T MagickXConstrainWindowPosition
Comment 8 François Bissey 2013-02-24 22:41:19 UTC
It was rather silly of me to include the version number. As far as I see it there are two problems:

1) Whatever issue was solved by opendx-4.4.4-magick.patch has gone and the patch is now a problem - unless a specific use flags is needed for imagemagick/graphicsmagick.
2) graphicsmagick misses a symbol compared to imagemagick but is preferred by the build process. I think that's done with the same patch actually.

It may turn out that we need a specific useflag depend. I can reproduce the problem with the following useflags:
graphicsmagick[X bzip2 cxx fpx jpeg jpeg2k lcms lzma modules openmp png svg truetype zlib -debug -imagemagick -jbig -perl -postscript -q16 -q32 -static-libs -threads -tiff -wmf]

imagemagick[X bzip2 cxx fftw fontconfig fpx graphviz jbig jpeg jpeg2k lcms lzma openexr openmp png svg tiff truetype wmf xml zlib -autotrace -corefonts -djvu -hdri -lqr -opencl -pango -perl -postscript -q32 -q64 -q8 -raw -static-libs -test -webp]
Comment 9 François Bissey 2013-02-25 01:44:21 UTC
I note that both ConstituteComponentTerminus and TemporaryFilename are deprecated in imagemagick. It is unclear why you should replace them with. DestroyConstitute that was replaced by the patch is also deprecated. 

We may start to see the effects of great age in opendx.

Removing all the section about ConstituteComponentTerminus from the patch I still end up missing TemporaryFilename in libGraphicsMagick.
Comment 10 Andrew Savchenko gentoo-dev 2013-03-31 18:59:38 UTC
Created attachment 343856 [details, diff]
opendx-4.4.4-r4.patch

This patch removes graphicsmagick support. This allows opendx to build well with the latest media-gfx/imagemagick-6.8.3.10.
Comment 11 Bob Johnson 2013-08-18 18:19:55 UTC
Just ran into this on my stable amd64 system when imagemagick-6.8.6.8 stabilized. As a work-around until the issue is fixed, disabling the imagemagick use flag allows opendx-4.4.4-r4 to compile.
Comment 12 François Bissey 2013-08-18 21:18:11 UTC
Building without imagemagick support is rather limiting. It will severely reduce your option for saving graphics produced by opendx. You may be able to do .ps or .eps and I am not even sure of that.
Comment 13 cmuelle8 2015-01-10 08:02:28 UTC
(In reply to Andrew Savchenko from comment #10)
> Created attachment 343856 [details, diff] [details, diff]
> opendx-4.4.4-r4.patch
> 
> This patch removes graphicsmagick support. This allows opendx to build well
> with the latest media-gfx/imagemagick-6.8.3.10.

+1 I've also just hit this exact same problem, the bug still stands.  Would some dev just be so kind to add this patch to portage, thanks..
Comment 14 Andrew Savchenko gentoo-dev 2015-01-10 09:56:34 UTC
Currently this is imagemagick vs graphicsmagick[imagemagick] situation: with patch former is broken, without — later.

The problem is that if both packages are installed graphicsmagick is preferred. But in such case it can only be built with USE="-imagemagick" and can't serve as imagemagick replacement.
Comment 15 Andrew Savchenko gentoo-dev 2015-01-10 21:32:38 UTC
I tested opendx-4.4.4-r4::gentoo with graphicsmagick[imagemagick], it fails also so magick.patch is of no help here. Therefore I removed graphicsmagick support and related patch in 4.4.4-r5 (in tree now). Works fine with imagemagick for me.