Skip to content

R-beta: Problem with functions using sub and gsub, Solaris2.4

1 message · gordon.harrington@uni.edu

#
Earlier Peter Dalgaard provided some helpful hints regarding sub and gsub. By
extracting regex.o from the system library and putting it in the load list and
by referencing the system regex.h it was possible unequivocally to load main
with the system regex. The resulting program still contained the bug. Since the
problem does not appear with Solaris2.5 the problem clearly lies specifically
in the Solaris2.4 system library. Another library must be used.

Compiling the GNU regex and archiving it enables a build with:
CPPFLAGS=-I/usr/local/include LIBS=/usr/local/lib/libregex.a ./configure \
	--prefix=/apps/R/Rcurrent

Gordon
Gordon M. Harrington		Mail:	3720 Village Place, #6308
Professor Emeritus			Waterloo, IA 50702-5848
University of Northern Iowa 	Phone:	319-291-8535
gordon.harrington at uni.edu	Fax:	319-291-8324

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._