Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!think!snorkelwacker!spdcc!merk!alliant!linus!nixbur!nixpbe!mboen From: mboen@nixpbe.UUCP (Martin Boening) Newsgroups: comp.os.minix Subject: Re: st 1.5.0 make and patch Message-ID: <786@nixpbe.UUCP> Date: 5 Feb 90 08:19:01 GMT References: <15468@orstcs.CS.ORST.EDU> Organization: Nixdorf Computer AG, Paderborn, Germany Lines: 31 Hello folks, sindair@ucs.orst.edu (Geordi Sinclair - UCS) writes: >while trying to upgrade my st minix to 1.5.0, I ran into the following >problems: >1 ) I had to write a version strchr and strrchr to get make to complile, > but it does not work right. In BSD and V7 Unixes and consequently in MINIX too there are no strchr and strrchr functions, they're named index and rindex. So just define strchr as index and strrchr as rindex in some header file or with the -D flag for cc. This works for many programs distributed in the comp.sources.* groups. Why should it not work for MINIX. >2 ) When i tried to compile patch, i recieved the error that _fdopen and > __exit could not be found when linking the modules together. Those are errors in the standard MINIX ST libc.a. The popen systemcall uses _exit instead of exit, if I remember correctly. Just fix that and recompile popen.c. Also, fdopen is missing. There was a version taken from fopen posted to the net. Anybody still have it? Greetings from Martin Boening -- Email: in the USA -> ...!uunet!philabs!linus!nixbur!mboening.pad outside USA -> {...!mcvax}!unido!nixpbe!mboening.pad Paper Mail: Martin Boening, Nixdorf Computer AG, DS-CC22, Pontanusstr. 55, 4790 Paderborn, W.-Germany