On 5/23/12 5:10 AM, Carnë Draug wrote:

<snip>

> Is this is a bug on the miscellaneous package? 

Yes.

Will this be fixed by using
> 
> ifndef MKOCTFILE
> MKOCTFILE := mkoctfile -Wall
> endif
> 
> Carnë
> 

I don't think so.

> On 22 May 2012 21:00, Alexander Hansen <alexanderk.han...@gmail.com> wrote:
>> I'll redirect this thread, as this is a problem specific to the released
>> version of the optim package when using Octave 3.6.0+ .  The symbols
>> which aren't being found are from LAPACK.
> 
> have you tested with te development version? There has been some
> patches about this on optim's Makefile, see
> http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/optim/src/Makefile?view=log
> 

<snip>

The patch I apply to get the current optim release version to build
against Octave-3.6.0 and later is

diff -Nurd optim-1.0.17/src/Makefile optim-1.0.17.patched/src/Makefile
--- optim-1.0.17/src/Makefile   2011-07-04 09:02:03.000000000 -0400
+++ optim-1.0.17.patched/src/Makefile   2012-01-19 15:18:29.000000000 -0500
@@ -1,11 +1,12 @@
 ifndef MKOCTFILE
 MKOCTFILE := mkoctfile
 endif
+LAPACK_LIBS := $(shell mkoctfile -p LAPACK_LIBS)

 all: __bfgsmin.oct numgradient.oct numhessian.oct samin.oct
__disna_optim__.oct

 %.oct: %.cc
-       $(MKOCTFILE) -s $<
+       $(MKOCTFILE) -s $< ${LAPACK_LIBS}

 clean:
        -rm *.o core octave-core *.oct *~

I believe this has already been changed in the current svn version.
This is just a reminder that "pkg install optim" isn't going to work for
people using the current Octave.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/2012/02/21/got-job/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to