Bug 127369 - math/octave-forge-image: imread command doesn't work
Summary: math/octave-forge-image: imread command doesn't work
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-14 04:10 UTC by Jason Lenthe
Modified: 2008-09-26 00:20 UTC (History)
0 users

See Also:


Attachments
sss (910 bytes, text/plain)
2008-09-14 07:45 UTC, Stephen Montgomery-Smith
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Lenthe 2008-09-14 04:10:02 UTC
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

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.
How-To-Repeat: 1) Install port octave-forge-image

2) Try loading an image using the imread command.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-09-14 06:17:14 UTC
Maintainer of math/octave-forge-image,

Please note that PR ports/127369 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/127369

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2008-09-14 06:17:16 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Stephen Montgomery-Smith 2008-09-14 07:45:01 UTC
Edwin Groothuis wrote:
> Maintainer of math/octave-forge-image,
> 
> Please note that PR ports/127369 has just been submitted.
> 
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
> 
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/127369
> 

The OP didn't include a patch, but he did suggest a fix.  The attached 
patch seems to accomplish what he intended, and I approve of it.

Comment 4 Dmitry Marakasov freebsd_committer freebsd_triage 2008-09-14 14:40:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

I'll take it.
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2008-09-14 14:40:46 UTC
State Changed
From-To: feedback->open

Feedback with a patch received from maintainer.
Comment 6 Stephen Montgomery-Smith 2008-09-14 18:04:34 UTC
Edwin Groothuis wrote:
> Maintainer of math/octave-forge-image,
> 
> Please note that PR ports/127369 has just been submitted.
> 
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
> 
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/127369
> 

Just as a point of information - I forwarded the suggestion to the 
octave-forge mailing list, and one reply I received is saying that they 
might just drop imread and imwrite from this package.  This is because 
it seems that imread and imwrite are part of octave-3.2.x.  But in the 
FreeBSD ports, not even octave-devel goes that high in development number!

Really, this message is just a point of information, just so you expect 
it if or when it happens.
Comment 7 Dmitry Marakasov freebsd_committer freebsd_triage 2008-09-26 00:19:44 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 8 dfilter service freebsd_committer freebsd_triage 2008-09-26 00:19:51 UTC
amdmi3      2008-09-25 23:19:38 UTC

  FreeBSD ports repository

  Modified files:
    math/octave-forge-image Makefile 
  Added files:
    math/octave-forge-image/files patch-src:Makefile 
  Log:
  - Fix dynamic linker errors by explicitely linking with Magick++ libs
  - While here, convert some spaces to tabs
  
  PR:             127369
  Submitted by:   Jason Lenthe <lenthe at comcast dot net>
  Fix by:         Stephen Montgomery-Smith <stephen at math dot missouri dot edu> (maintainer)
  
  Revision  Changes    Path
  1.3       +3 -2      ports/math/octave-forge-image/Makefile
  1.1       +10 -0     ports/math/octave-forge-image/files/patch-src:Makefile (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"