eric@magic4.UUCP (Eric Kozowski) (10/23/87)
I am getting an error in the linking stage when 'make'ing pathalias. It comes back with a symbol undefined 'index' in addlink.o. Is 'index' a BSD system call. If so, what is the SysV equivalent? I'm running SysV2.0.4 on an AT&T 3B2/400. As you could have guessed I'm not much of a C programmer. Any help would be appreciated. Thanks in advance (as usual). -- Eric Kozowski AT&T GBS Portland, Or |||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||| teksce!bucket!magic4!eric |||||||||||| UUCP:{ihnp4|decvax|uw-beaver}!tektronix! reed!percival!bucket!magic4!eric ||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
guy%gorodish@Sun.COM (Guy Harris) (10/24/87)
> I am getting an error in the linking stage when 'make'ing pathalias. It > comes back with a symbol undefined 'index' in addlink.o. Is 'index' a > BSD system call. If so, what is the SysV equivalent? It's not a "system call" in the sense that it calls the kernel, but it is a routine in the C library. It actually predates BSD; AT&T changed the name of this routine from "index" to "strchr" at one point, so "strchr" is the (exact) equivalent. (Similarly, "rindex" was renamed to "strrchr".) I'm somewhat surprised that this occurred; programs as widely distributed and used "pathalias" often have #ifdefs or some trick such as that to ensure that "index" and "rindex" get aliased to "strchr" and "strrchr", or vice versa, when building on systems with the name not used in the code. You might want to make sure you're building it correctly.... Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com