gordon.harrington@uni.edu
1998-Jun-26 22:58 UTC
R-beta: Problem with functions using sub and gsub
Previously I had problems with data(foo) and Gass and I had problems with help(). His diagnostic was "POSIX regular expressions not available" and mine was "invalid regular expression". Martin Maechler has no problems with Solaris 2.5 and suggested a regular expression library was needed, e.g., regex-x.xx. Solaris 2.4 has regex.o in /usr/ccs/libgen.a and regex.h in /usr/include. configure finds regcomp and make does not show any errors compiling and loading. Hence their is no indication that R cannot find the appropriate library. As an attempted solution, I tried downloading GNU regex-0.12 and putting regex.o in src/main so that it would be available first when ld searched for links. (character.c in main seems to be the only function calling regcomp.) It does not alter the problem. (I am using gcc since the sun native C compiler does not do well by R.) Any suggestions? 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
1998-Jun-27 11:15 UTC
R-beta: Problem with functions using sub and gsub
gordon.harrington at uni.edu writes:> > Previously I had problems with data(foo) and Gass and I had problems with > help(). His diagnostic was "POSIX regular expressions not available" and mine > was "invalid regular expression". Martin Maechler has no problems with Solaris > 2.5 and suggested a regular expression library was needed, e.g., regex-x.xx.Gass's problem is pretty clearly that the library is absent, yours is - different. The whole thing works for me in Solaris 2.5.1 too.> > Solaris 2.4 has regex.o in /usr/ccs/libgen.a and regex.h in /usr/include. > configure finds regcomp and make does not show any errors compiling and > loading. Hence their is no indication that R cannot find the appropriate > library. As an attempted solution, I tried downloading GNU regex-0.12 and > putting regex.o in src/main so that it would be available first when ld > searched for links. (character.c in main seems to be the only function calling > regcomp.) It does not alter the problem. (I am using gcc since the sun native C > compiler does not do well by R.) > > Any suggestions?This may be a completely silly suggestion, but did you add the new regex.o to the list of of OBJS in src/main/Makefile? You don't actually say that you did, and just placing the file in the directory is not enough. Another thing: Are you sure that the libgen routine is getting linked in? Wading through DejaNews gives me some hints that there are stub routines in libc.a that might get linked in instead. I.e. does the final gcc command actually contain "-lgen"? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
1998-Aug-31 14:20 UTC
R-beta: Problem with functions using sub and gsub
Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> writes:> gordon.harrington at uni.edu writes: > > > > > Previously I had problems with data(foo) and Gass and I had problems with > > help(). His diagnostic was "POSIX regular expressions not available" and mine > > was "invalid regular expression". Martin Maechler has no problems with Solaris > > 2.5 and suggested a regular expression library was needed, e.g., regex-x.xx.????!!! I ugraded my system and apparently my mailqueue had the above note in it, which sendmail decided to deliver about 2 months after it was written... -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._