Date: Sun, 14 Sep 2008 03:01:32 GMT From: Jason Lenthe <lenthe@comcast.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/127369: imread command doesn't work Message-ID: <200809140301.m8E31WK0074502@www.freebsd.org> Resent-Message-ID: <200809140310.m8E3A3OS093982@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809140301.m8E31WK0074502>