ports/127369: imread command doesn't work
Jason Lenthe
lenthe at comcast.net
Sun Sep 14 03:10:03 UTC 2008
>Number: 127369
>Category: ports
>Synopsis: imread command doesn't work
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Sep 14 03:10:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Jason Lenthe
>Release: 7
>Organization:
>Environment:
FreeBSD vader 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #0: Tue Sep 2 18:48:24 UTC 2008 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
When trying to load an image in octave using the imread command (which is part of the port octave-forge-image) dynamic link errors messages occur:
octave-3.0.2:1> X = imread('test.jpg');
error: /usr/local/libexec/octave/packages/image-1.0.8/amd64-portbld-freebsd7.0-api-v32/__magick_read__.oct: Undefined symbol "_ZTIN6Magick9ExceptionE"
error: `__magick_read__' undefined near line 73 column 33
error: evaluating if command near line 72, column 5
error: called from `imread' in file `/usr/local/share/octave/packages/image-1.0.8/imread.m'
error: evaluating assignment expression near line 1, column 3
>How-To-Repeat:
1) Install port octave-forge-image
2) Try loading an image using the imread command.
>Fix:
The problem is that __magick_read__.oct isn't linked against libMagick++.so
Compiling as follows fixes the problem:
mkoctfile __magick_read__.cc `Magick++-config --cppflags` `Magick++-config --ldflags --libs`
In other words the --libs is necessary for successful dynamic linkage.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list