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"?