[Rcpp-devel] r-forge error: undefined symbol: zgetri_

baptiste auguie baptiste.auguie at googlemail.com
Fri Aug 20 07:36:55 CEST 2010


Hi,

My Makevars contains the following line,

## Use the R_HOME indirection to support installations of multiple R version
PKG_LIBS = $(shell $(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()" )
$(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)


which I obviously took from somewhere, perhaps automatically generated
from package.skeleton, I don't remember. It's worked for me on two
different machines (both Macs, though).

Best regards,

baptiste


On 19 August 2010 23:50, Douglas Bates <bates at stat.wisc.edu> wrote:
> On Thu, Aug 19, 2010 at 3:06 PM, baptiste auguie
> <baptiste.auguie at googlemail.com> wrote:
>> Dear all,
>>
>> I'm stumped by this error for my cda package on r-forge:
>>
>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>>  unable to load shared library '/tmp/Rinst2710053821/cda/libs/cda.so':
>>  /tmp/Rinst2710053821/cda/libs/cda.so: undefined symbol: zgetri_
>>
>> https://r-forge.r-project.org/R/?group_id=160&log=build_src&pkg=cda&flavor=patched
>>
>>
>> I don't have a clue what this means --- is this an incorrect
>> dependency, an error in my C++ code, a known problem with r-forge,
>> something I should have read in a vignette / manual ... ? It compiles
>> fine on my machine (Mac OS 10.6). The package uses RcppArmadillo.
>
> The error means that there is a reference to one of the Lapack
> functions, zgetri, which forms the inverse of a complex matrix using
> its triangular factorization, and the symbol could not be found.  What
> does your cda/src/Makevars file contain?
>


More information about the Rcpp-devel mailing list