On 28.12.2011, at 14:41, Lukas Reichlin wrote:

> On 28.12.2011, at 14:29, marco atzeri wrote:
> 
>> On 12/28/2011 2:11 PM, Lukas Reichlin wrote:
>> 
>>> 
>>> Hi Marco
>>> 
>>> Thank you very much for your help. I applied the patch:
>>> http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/control/src/Makefile?revision=9472&view=markup
>>> 
>>> Unfortunately, the problem still exists on Mac OS X 10.6:
>>> 
>> 
>>> 
>>> octave:1>  pkg install control.ta*
>>> Undefined symbols for architecture x86_64:
>>>  "_lsame_", referenced from:
>>>      _ab08nd_ in AB08ND.o
>>>      _tb01id_ in TB01ID.o
>>>  "_ilaenv_", referenced from:
>>>      _ab08nd_ in AB08ND.o
>>>      _ab08nx_ in AB08NX.o
>>>  "_dlacpy_", referenced from:
>>>      _ab08nd_ in AB08ND.o
>>>  "_dlamch_", referenced from:
>>>      _ab08nd_ in AB08ND.o
>>>      _tb01id_ in TB01ID.o
>>>  "_dlange_", referenced from:
>>>      _ab08nd_ in AB08ND.o
>>>  "_dcopy_", referenced from:
>>>      _ab08nd_ in AB08ND.o
>>>      _mb03py_ in MB03PY.o
>>>  "_dlaset_", referenced from:
>>>      _ab08nd_ in AB08ND.o
>>>      _ab08nx_ in AB08NX.o
>>>  "_dtzrzf_", referenced from:
>>>      _ab08nd_ in AB08ND.o
>>>  "_dormrz_", referenced from:
>>>      _ab08nd_ in AB08ND.o
>>>  "_dlarfg_", referenced from:
>>>      _ab08nx_ in AB08NX.o
>>>      _mb03oy_ in MB03OY.o
>>>      _mb03py_ in MB03PY.o
>>>  "_dlatzm_", referenced from:
>>>      _ab08nx_ in AB08NX.o
>>>  "_dormrq_", referenced from:
>>>      _ab08nx_ in AB08NX.o
>>>  "_dlapmt_", referenced from:
>>>      _ab08nx_ in AB08NX.o
>>>  "_dormqr_", referenced from:
>>>      _ab08nx_ in AB08NX.o
>>>  "_dasum_", referenced from:
>>>      _tb01id_ in TB01ID.o
>>>  "_idamax_", referenced from:
>>>      _tb01id_ in TB01ID.o
>>>      _mb03oy_ in MB03OY.o
>>>      _mb03py_ in MB03PY.o
>>>  "_dscal_", referenced from:
>>>      _tb01id_ in TB01ID.o
>>>      _mb03oy_ in MB03OY.o
>>>      _mb03py_ in MB03PY.o
>>>  "_dnrm2_", referenced from:
>>>      _mb03oy_ in MB03OY.o
>>>      _mb03py_ in MB03PY.o
>>>  "_dswap_", referenced from:
>>>      _mb03oy_ in MB03OY.o
>>>      _mb03py_ in MB03PY.o
>>>  "_dlaic1_", referenced from:
>>>      _mb03oy_ in MB03OY.o
>>>      _mb03py_ in MB03PY.o
>>>  "_dlarf_", referenced from:
>>>      _mb03oy_ in MB03OY.o
>>>      _mb03py_ in MB03PY.o
>>>  "_dggev_", referenced from:
>>>      Fslab08nd(octave_value_list const&, int) in slab08nd.o
>>> ld: symbol(s) not found for architecture x86_64
>>> collect2: ld returned 1 exit status
>>> make: *** [slab08nd.oct] Error 1
>>> 'make' returned the following error: mkoctfile slab08nd.cc \
>>>              AB08ND.f AB08NX.f TB01ID.f MB03OY.f MB03PY.f \
>>>                     
>> 
>> strange. All the missing symbols belong to lapack or blas.
>> how/where are they defined on Mac OS X ?
>> 
>> 
>> 
>>> error: called from `pkg>configure_make' in file 
>>> /opt/local/share/octave/3.5.91/m/pkg/pkg.m near line 1385, column 9
>>> error: called from:
>>> error:   /opt/local/share/octave/3.5.91/m/pkg/pkg.m at line 827, column 5
>>> error:   /opt/local/share/octave/3.5.91/m/pkg/pkg.m at line 383, column 9
>>> octave:1>
>>> 
>>> Best regards,
>>> Lukas
>>> 
>> 
>> Marco
>> 
> 
> 
> I use to link my Octave to Apple's flavour of BLAS, the Accelerate framework. 
> Could there be a problem with whitespace in "-framework Accelerate"?
> 
> ra:~ lukas$ mkoctfile -p LAPACK_LIBS
> -framework Accelerate
> ra:~ lukas$ mkoctfile -p BLAS_LIBS
> -ldotwrp -framework Accelerate
> ra:~ lukas$ mkoctfile -p FLIBS
> -L/opt/local/lib -L/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3 
> -L/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3/../../.. -lm -lgfortran
> ra:~ lukas$ 
> 
> Lukas

Hi Marco,

I recompiled Octave 3.5.91 to use ATLAS from MacPorts instead of Apple's 
Accelerate, but it didn't help:

octave:1> pkg install control*
Undefined symbols for architecture x86_64:
  "_lsame_", referenced from:
      _ab08nd_ in AB08ND.o
      _tb01id_ in TB01ID.o
  "_ilaenv_", referenced from:
      _ab08nd_ in AB08ND.o
      _ab08nx_ in AB08NX.o
  "_dlacpy_", referenced from:
      _ab08nd_ in AB08ND.o
  "_dlamch_", referenced from:
      _ab08nd_ in AB08ND.o
      _tb01id_ in TB01ID.o
  "_dlange_", referenced from:
      _ab08nd_ in AB08ND.o
  "_dcopy_", referenced from:
      _ab08nd_ in AB08ND.o
      _mb03py_ in MB03PY.o
  "_dlaset_", referenced from:
      _ab08nd_ in AB08ND.o
      _ab08nx_ in AB08NX.o
  "_dtzrzf_", referenced from:
      _ab08nd_ in AB08ND.o
  "_dormrz_", referenced from:
      _ab08nd_ in AB08ND.o
  "_dlarfg_", referenced from:
      _ab08nx_ in AB08NX.o
      _mb03oy_ in MB03OY.o
      _mb03py_ in MB03PY.o
  "_dlatzm_", referenced from:
      _ab08nx_ in AB08NX.o
  "_dormrq_", referenced from:
      _ab08nx_ in AB08NX.o
  "_dlapmt_", referenced from:
      _ab08nx_ in AB08NX.o
  "_dormqr_", referenced from:
      _ab08nx_ in AB08NX.o
  "_dasum_", referenced from:
      _tb01id_ in TB01ID.o
  "_idamax_", referenced from:
      _tb01id_ in TB01ID.o
      _mb03oy_ in MB03OY.o
      _mb03py_ in MB03PY.o
  "_dscal_", referenced from:
      _tb01id_ in TB01ID.o
      _mb03oy_ in MB03OY.o
      _mb03py_ in MB03PY.o
  "_dnrm2_", referenced from:
      _mb03oy_ in MB03OY.o
      _mb03py_ in MB03PY.o
  "_dswap_", referenced from:
      _mb03oy_ in MB03OY.o
      _mb03py_ in MB03PY.o
  "_dlaic1_", referenced from:
      _mb03oy_ in MB03OY.o
      _mb03py_ in MB03PY.o
  "_dlarf_", referenced from:
      _mb03oy_ in MB03OY.o
      _mb03py_ in MB03PY.o
  "_dggev_", referenced from:
      Fslab08nd(octave_value_list const&, int) in slab08nd.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [slab08nd.oct] Error 1
'make' returned the following error: mkoctfile slab08nd.cc \
              AB08ND.f AB08NX.f TB01ID.f MB03OY.f MB03PY.f \
                
error: called from `pkg>configure_make' in file 
/opt/local/share/octave/3.5.91/m/pkg/pkg.m near line 1385, column 9
error: called from:
error:   /opt/local/share/octave/3.5.91/m/pkg/pkg.m at line 827, column 5
error:   /opt/local/share/octave/3.5.91/m/pkg/pkg.m at line 383, column 9
octave:1> exit

ra:desktop lukas$ mkoctfile -p LAPACK_LIBS
-llapack
ra:desktop lukas$ mkoctfile -p BLAS_LIBS
-lcblas -lf77blas -latlas
ra:desktop lukas$ mkoctfile -p FLIBS
-L/opt/local/lib -L/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3 
-L/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3/../../.. -lm -lgfortran
ra:desktop lukas$ 



------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to