From: Hans-Bernhard B. <br...@ph...> - 2002-04-15 14:48:39
|
Hello, everybody, you've probably seen the couple of forwarded mails from the bug tracker about this problem, but here's the story again, in short form: IRIX 5.3 (and probably some other old Unix platforms, not even to mention non-Unix platforms that also might want to use cscope) is not POSIX conforming. In particular, it lacks the POSIX (and earlier X/Open) standard header regex.h and the function it supplies (regcomp(), regexec()). Cscope strictly requires these, without checking for their presence in the auto-configuration machinery. I think we'll have to do something about this. At the very least, the problem should be reported by 'configure', not by the compiler. I.e. ./configure should probably detect this problem and stop dead with an error message telling the user to fix this. One actual solution could be to integrate one of the free regex packages (Henry Spencer's, e.g.) into cscope sources, and use it if ./configure doesn't find a working <regex.h> elsewhere (or following an override '--with-included-regex' option, perhaps). Other packages have also gone that way, and it seems to work for them. A less easy solution would be to tell the user to build and install some regex library (GNU regex or rx, or whatever) and make it default-visible to the compiler. Or, failing to do the latter, pass -I and -L flags into the configuration process to tell it where to look for them: ./configure CPPFLAGS='-I/some/where/regex' \ LDFLAGS='-L/some/where/regex' Any opinions, alternative suggestions, whatever? -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |