Norman,
Please see the response below from the author of the lapack compatibility layer.
It appears there is no way to include support your link needs while keeping
everything in C. (Kyungjoo can correct me if my interpretation is mistaken.)
How/why does your application need lsamen_()?
Field
On 09/17/15 15:43, Kyungjoo Kim wrote:
> Hi Field,
>
> lsamen is a string comparing routine for 'n' characters. This routine is
> not inter-operatible with Fortran as fortran string structure is completely
> different from C-based string (lsame is working as it only compares a
> single character). If I remember correct, lsamen is only used in the lapack
> test routines (never used inside of lapack lib). So, if we want to test
> lapack test suite (fortran) with libflame, lsamen should be included as a
> fortran file (not C file).
>
> Those 'other' directories include files that are not inter-operatible with
> C and fortran (it is tricky).
>
> I would first ask the reason to use the function. If the reason is purely
> for testing lapack test suite, then there is no way but include the file as
> a fortran file.
>
> Best, Kyungjoo Kim
>
>
> Center for Computing Research,
> Sandia National Labs,
> P.O. Box 5800, MS 1320,
> Albuquerque, NM 87185-1320.
>
>
>
>
> On Sep 17, 2015, at 2:17 PM, Field G. Van Zee <
fi...@cs.utexas.edu
> <mailto:
fi...@cs.utexas.edu>> wrote:
>
>> Kyungjoo,
>>
>> Did you mean for the following files to reside in a directory that is
>> skipped over by the libflame build system?
>>
>> $ ls src/map/lapack2flamec/f2c/install/*/other/
>> src/map/lapack2flamec/f2c/install/static/other/: dlamchtst.c ilaver.c
>> lsametst.c secondtst.c xerbla_array.c dsecndtst.c lsamen.c s_kat.c
>> slamchtst.c
>>
>> src/map/lapack2flamec/f2c/install/util/other/: abort_.c erf_.c
>> getarg_.c i_ceiling.c lbitbits.c s_cat.c signbit.c derf_.c
>> erfc_.c getenv_.c i_indx.c lbitshft.c s_stop.c derfc_.c
>> etime_.c h_indx.c i_len.c qbitbits.c sig_die.c dtime_.c
>> f77_aloc.c h_len.c i_len_trim.c qbitshft.c signal_.c
>>
>> This user needs one of the routines that exist there. (Recall that files
>> in directories named 'other' are currently skipped, though I am in the
>> process of renaming those that truly need to be skipped to 'old'.)
>>
>> I tried to enable those directories, but I got some compiler errors that
>> make me think you did not prep those files for inclusion in libflame.
>>
>> Field
>>
>> -------- Forwarded Message -------- Subject: [libflame-discuss] Resulting
>> libflame.a misses symbol lsamen Date: Thu, 17 Sep 2015 00:33:41 -0700
>> (PDT) From:
norman....@gmail.com <mailto:
norman....@gmail.com>
>> To: libflame-discuss <
libflame...@googlegroups.com
>> <mailto:
libflame...@googlegroups.com>>
>> -- You received this message because you are subscribed to the Google
>> Groups "libflame-discuss" group. To unsubscribe from this group and stop
>> receiving emails from it, send an email to
>>
libflame-discu...@googlegroups.com
>> <mailto:
libflame-discu...@googlegroups.com>. To post to this
>> group, send email to
libflame...@googlegroups.com
>> <mailto:
libflame...@googlegroups.com>. Visit this group at
>>
http://groups.google.com/group/libflame-discuss. For more options, visit
>>
https://groups.google.com/d/optout.
>>
>>
>>
>