[comp.sources.bugs] Rolodex bugs

paz@mimir.dmt.oz (Paul Zemancheff) (03/18/88)

	
		Has anyone out there managed to successfully compile `rolo' ?
I have not managed to do so. Compiling the program using Makefile.bsd produces
an error when combining all the modules near the end. I have one undefined
variable called " strchr " which occurs in a number of the source programs
including rolo.c, update.c & operatns.c. We are using BSD 4.3. Any suggestions
for a possible cure would be most welcome.

				....paul


Paul Zemancheff		      PHONE: +61 3 487 9263
CSIRO Division of	      ACSNET or CSNET: paz@mimir.dmt.oz
Manufacturing Technology,     ARPA: paz%mimir.dmt.oz@uunet.uu.net
Melbourne, Australia.	      UUCP: {uunet,ukc,mcvax}!munnari!mimir.dmt.oz!paz

paz@mimir.dmt.oz (Paul Zemancheff) (03/18/88)

	Re: My previous news item.  " strchr() " is a function, not a variable.
The code for this function does not appear ( at least I can't find it.) in any
of the sources for Rolodex. The question is, whether it should be in one of
the source files, or if it is expected be in one of the function libraries.
Anybody got any clues ?.

					paul.....

Paul Zemancheff		      PHONE: +61 3 487 9263
CSIRO Division of	      ACSNET or CSNET: paz@mimir.dmt.oz
Manufacturing Technology,     ARPA: paz%mimir.dmt.oz@uunet.uu.net
Melbourne, Australia.	      UUCP: {uunet,ukc,mcvax}!munnari!mimir.dmt.oz!paz

kjk@pbhyf.UUCP (Ken Keirnan) (03/19/88)

In article <1094@mimir.dmt.oz> paz@mimir.dmt.oz (Paul Zemancheff) writes:
>
>	Re: My previous news item.  " strchr() " is a function, not a variable.
>The code for this function does not appear ( at least I can't find it.) in any
[ text deleted ]
>					paul.....

Paul, the rolodex package was shipped with makefiles for several different
systems.  On your system, you should have moved (or copied) "Makefile.bsd"
to "Makefile" before calling make.  It sounds like you are using the system V
makefile.  I hope this helps.

					Ken Keirnan

    +----------------------------------------------------------------+
    |  Ken Keirnan        Pacific Bell - Minicomputer Support Staff  |
    +----------------------------------------------------------------+
    | old    {ames,ihnp4,lll-crg,dual,pyramid}!ptsfa!pbhyf!kjk       |
    | new   {ames,ihnp4,lll-crg,dual,pyramid}!pacbell!pbhyf!kjk      |
    +----------------------------------------------------------------+

jsc@cblpn.ATT.COM (Jonathan Cassell) (03/19/88)

In article <1094@mimir.dmt.oz> paz@mimir.dmt.oz (Paul Zemancheff) writes:
>
>	Re: My previous news item.  " strchr() " is a function, not a variable.
>The code for this function does not appear ( at least I can't find it.) in any
>of the sources  ...
>
>Paul Zemancheff		      PHONE: +61 3 487 9263

If you add "-Dstrchr=index" to your compile line, you will probably 
eliminate the problem.  strchr() is functionally equivalent to index(),
as is strrchr() to rindex(). Your libraries probably contain index() and
rindex().  An irritating, but minor, BSD/ATT-BL inconsistency.


	jonathon cassell
	cblpn!jsc

stark@sbcs.sunysb.edu (Eugene Stark) (03/19/88)

In article <1093@mimir.dmt.oz> paz@mimir.dmt.oz (Paul Zemancheff) writes:

	   Has anyone out there managed to successfully compile `rolo' ?

Yes, I compiled it on BSD 4.3, but I had to make a slight hack to
the Makefile.  In particular, I replaced the line

CFLAGS = -DBSD -DUNIX -DROLOLIB=$(ROLOLIB) $(TERMSTUFF) -I$(TOOLDIR) -g

by the line

CFLAGS = -DBSD -DUNIX -DROLOLIB=\"$(ROLOLIB)\" $(TERMSTUFF) -I$(TOOLDIR) -O -s

otherwise errors from the C compiler are reported during compilation.

Hope this helps.

							Gene Stark
							SUNY at Stony Brook

gwyn@brl-smoke.ARPA (Doug Gwyn ) (03/20/88)

In article <1094@mimir.dmt.oz> paz@mimir.dmt.oz (Paul Zemancheff) writes:
>	Re: My previous news item.  " strchr() " is a function, not a variable.
>The code for this function does not appear ( at least I can't find it.) in any
>of the sources for Rolodex. The question is, whether it should be in one of
>the source files, or if it is expected be in one of the function libraries.

strchr() is a standard C library function.  If your implementation
doesn't have it, perhaps it has index(), which is the same except for
the function name.  Also note that strrchr()'s obsolete equivalent is
rindex().

gautier@ai.cs.wisc.edu (Jorge Gautier) (03/25/88)

In article <557@cblpn.ATT.COM> jsc@cblpn.ATT.COM (Jonathan Cassell) writes:
>If you add "-Dstrchr=index" to your compile line, you will probably 
>eliminate the problem...

Nope: watch out for an "index()" function defined in the sources!
---
Jorge Gautier @ Wisconsin, gautier@cs.wisc.edu

"The fact that my internal arrangement differs from yours, doctor,
 pleases me without end."