Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!gatech!prism!gs26 From: gs26@prism.gatech.EDU (Glenn R. Stone) Newsgroups: comp.mail.elm Subject: Re: Anyone get ELM to compile on RS/6000 ?? Summary: ANSI C strikes again.... Message-ID: <16712@hydra.gatech.EDU> Date: 8 Nov 90 21:16:21 GMT References: <883@ki.UUCP> Reply-To: glenns@eas.gatech.edu Organization: Dead Poets Society Lines: 36 In <883@ki.UUCP> dwatts@ki.UUCP (Dan Watts) writes: >Has anyone been successful in getting ELM to compile on the IBM RS/6000? Yup, with some work... >The problem appears to be that CC doesn't like the redeclaration of >'char *strok()' and all the rest. If you put in lines of code like: > char * someroutine(); > char * someroutine(); This is part of ANSI.... and... >it will error on the second declaration just like it does above. >Is there some compiler switch that will make the compiler accept this? Yes, there is. Or several, actually. Look in /usr/lpp/bos/bsdport for the appropriate switches (ignoring -D_BSD and -lbsd). (You don't want to compile this bsd-ish; there are more headaches concerning the Berkeley line discipline as opposed to POSIX you don't want to deal with....) What I ended up doing is simply commenting out the redundant string declarations instead..... now that I've done it once, it's no big deal, and patch is smart enough to apply things one or two lines down without complaining much. the '6000 is a great machine.... once you get used to porting to it. Hmm. P'raps I should dress up the code and supply diffs? am I going to get innundated with demand for that? :) -- Glenn R. Stone gs26@prism.gatech.edu, glenns@eas.gatech.edu (the '6000)