bugGNU Octave - Bugs: bug #61481, GraphicsMagick link error

 
 

bug #61481: GraphicsMagick link error

Submitter:  A.R. Burgers <arb>
Submitted:  Sun 14 Nov 2021 01:51:56 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 14 Nov 2021 03:59:54 PM UTC, comment #5: 

I pushed an additional change that checks early if necessary symbols are exported by the configured magick++ library:
http://hg.savannah.gnu.org/hgweb/octave/rev/47c078c0f22d

Markus Mützel <mmuetzel>
Group administrator
Sun 14 Nov 2021 03:05:08 PM UTC, comment #4: 

I added a note about this change to the NEWS file here:
http://hg.savannah.gnu.org/hgweb/octave/rev/260684e7e65c

Closing as fixed.

Markus Mützel <mmuetzel>
Group administrator
Sun 14 Nov 2021 02:37:38 PM UTC, comment #3: 

Yeah, Octave was (somewhat arbitrarily imho) appending "++" to the magick option. That has been removed recently on the default branch to allow configuring with magick++ packages whose name does not end with "++".

That means that it will be necessary to configure with the real name of the magick++ library from now on.

Maybe we should add a comment about that change to the NEWS file.

Markus Mützel <mmuetzel>
Group administrator
Sun 14 Nov 2021 02:31:57 PM UTC, comment #2: 

I usually do a config.status --recheck

one of the recheck options was:


'--with-magick=GraphicsMagick'


Changing this to GraphicsMagick++ fixes the issue for dev, for stable GraphicsMagick still seems to work.

Thanks for the hint!

A.R. Burgers <arb>
Sun 14 Nov 2021 02:17:50 PM UTC, comment #1: 

Afaict, `MAGICK_LIBS` should also be including `-lGraphicsMagick++`.

How do you configure Octave?

Markus Mützel <mmuetzel>
Group administrator
Sun 14 Nov 2021 01:51:56 PM UTC, original submission:  

since quite recently linking to GraphicsMagick fails for me. The first failure is.


  CXXLD    src/octave-cli
/opt/apps/x86_64/lib/gcc/x86_64-pc-linux-gnu/9.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: libinterp/.libs/liboctinterp.so: undefined reference to `Magick::Image::compressType(MagickLib::CompressionType)'


has to do with http://hg.savannah.gnu.org/hgweb/octave/rev/b7bce52e4500 ? Stable still builds.

The configure script does detect GraphicsMagick, these lines are in config.status


S["MAGICK_LIBS"]="-lGraphicsMagick  "
S["MAGICK_CPPFLAGS"]="-I/usr/include/GraphicsMagick  "


make V=1 mentions -lGraphicsMagick as well:


/bin/sh ./libtool  --tag=CXX   --mode=link x86_64-pc-linux-gnu-c++ -fPIC -pthread -fopenmp -Wall -W -Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -fvisibility=hidden -O3 -Wno-expansion-to-defined -Wno-deprecated-copy     -L/opt/apps/x86_64/lib64 -L/opt/apps/x86_64/lib -o src/octave-cli src/src_octave_cli-main-cli.o src/src_octave_cli-octave-build-info.o libinterp/liboctinterp.la liboctave/liboctave.la libgnu/libgnu.la  -lutil -lpthread -lm
libtool: link: x86_64-pc-linux-gnu-c++ -fPIC -pthread -fopenmp -Wall -W -Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -fvisibility=hidden -O3 -Wno-expansion-to-defined -Wno-deprecated-copy -o src/.libs/octave-cli src/src_octave_cli-main-cli.o src/src_octave_cli-octave-build-info.o  -L/opt/apps/x86_64/lib64 -L/opt/apps/x86_64/lib libinterp/.libs/liboctinterp.so /scratch/aburgers/octave/x86_64/liboctave/.libs/liboctave.so /opt/apps/x86_64/lib/libfreetype.so -lbz2 /opt/apps/x86_64/lib/libhdf5.so -lGraphicsMagick -lGL -lGLU -lfontconfig -lX11 -lgl2ps liboctave/.libs/liboctave.so /opt/apps/x86_64/lib/libcurl.so -L/usr/lib64 -lidn -lssl -lcrypto -lldap -lz -lcholmod -lumfpack -lamd -lcamd -lcolamd -lccolamd -lcxsparse -lsuitesparseconfig -lspqr /opt/apps/x86_64/lib/libarpack.so -lqrupdate -lfftw3_threads /opt/apps/x86_64/lib/libfftw3.so -lfftw3f_threads /opt/apps/x86_64/lib/libfftw3f.so -lopenblas -lreadline -ltermcap /opt/apps/x86_64/lib/libpcre.so /opt/apps/x86_64/lib64/libgfortran.so /opt/apps/x86_64/lib64/libquadmath.so /opt/apps/x86_64/lib64/libstdc++.so /opt/apps/x86_64/lib64/libgomp.so -ldl libgnu/.libs/libgnu.a -lrt -lutil -lpthread -lm -fopenmp -pthread -Wl,-rpath -Wl,/opt/apps/x86_64/lib/octave/7.0.0 -Wl,-rpath -Wl,/opt/apps/x86_64/lib -Wl,-rpath -Wl,/opt/apps/x86_64/lib64
/opt/apps/x86_64/lib/gcc/x86_64-pc-linux-gnu/9.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: libinterp/.libs/liboctinterp.so: undefined reference to `Magick::Image::compressType(MagickLib::CompressionType)'


A.R. Burgers <arb>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by arb (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-14 mmuetzel StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2021-11-14 mmuetzel CategoryInterpreter Configuration and Build System
        StatusNeed Info Confirmed
        Operating SystemGNU/Linux Any
    2021-11-14 mmuetzel StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code