Dear R-devel,
It seems the quantreg package on AIX5.3 is not working. I used "R CMD
INSTALL quantreg_4.36.tar.gz" to install it with R 2.8.1.

Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared library
'/home/R281/AIX53/lib/R/./library/quantreg/libs/quantreg.so':
  rtld: 0712-001 Symbol etime was referenced
from module /home/R281/AIX53/lib/R/./library/quantreg/libs/quantreg.so(),
but a runtime definition   of the symbol was not found.
  rtld: 0712-002 fatal error: exiting.
Error: The R quantreg package is required but could not be loaded.


The symbol "etime" is not implemented. I Google the issue and get a useful
suggestion to add a etime.c to the package source code. And it fix the above
fail.

/*
/* etime.c
/*
#include <sys/time.h>
#include <sys/resource.h>
float etime(tt)
float tt[2];
{
 int who;
 struct rusage used;
 who = 0;
 getrusage(who,&used);
/* tt[0] = used.ru_exutime.tv_sec+((used.ru_exutime.tv_usec)/1000000.); */
 tt[0] = used.ru_utime.tv_sec+((used.ru_utime.tv_usec)/1000000.);
 tt[1] = used.ru_stime.tv_sec+((used.ru_stime.tv_usec)/1000000.);
 return(tt[0]+tt[1]);
}

Is this a bug?


Thanks,
Fan Long

        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to