Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!fu-berlin.de!julia.physik.fu-berlin.DE!not-for-mail From: graichen@julia.physik.fu-berlin.de (Thomas Graichen) Newsgroups: comp.parallel.pvm,comp.unix.bsd.freebsd.misc Subject: Re: PVM and FreeBSD Followup-To: comp.parallel.pvm,comp.unix.bsd.freebsd.misc Date: 11 Nov 1995 09:43:26 GMT Organization: Freie Universitaet Berlin Lines: 51 Message-ID: <481r7u$1a9@fu-berlin.de> References: <47vvt0$ups@columba.udac.uu.se> NNTP-Posting-Host: julia.physik.fu-berlin.de (130.133.3.235) X-Access: 16 17 18 X-Newsreader: TIN [version 1.2 PL2] Xref: euryale.cc.adfa.oz.au comp.parallel.pvm:4128 comp.unix.bsd.freebsd.misc:8943 Peter Hägglund (peterh@tdb.uu.se) wrote: : Hi, : I'm trying to install PVM 3.3.9 on a FreeBSD 2.0.5 system. : My problem is that when I compile it with gcc 2.6.3 I : get the message : ../pvmlog.c:103: conflicting types for 'sys_errlist' : /usr/include/stdio.h:244: previous declaration of 'sys_errlist' : Error code 1 : and then, not surprisingly, stops. : Is there an easy way around this problem? it's the typical FreeBSD (i think 4.4 lite) error if you port something to FreeBSD - simply comment the line - here's a patch to get 3.3.9 completely working under FreeBSD (without commenting it :-) --- conf/FREEBSD.def~ Wed Sep 13 20:39:50 1995 +++ conf/FREEBSD.def Wed Sep 13 20:25:19 1995 @@ -1,6 +1,6 @@ -ARCHCFLAGS = -DSOCKADHASLEN -DNOREXEC -DRSHCOMMAND=\"/usr/bin/rsh\" -DHASSTDLIB -DNEEDMENDIAN +ARCHCFLAGS = -DSOCKADHASLEN -DNOREXEC -DRSHCOMMAND=\"/usr/bin/rsh\" -DHASSTDLIB -DNEEDMENDIAN -DHASERRORVARS -DFAKEXDRFLOAT ARCHDLIB = ARCHDOBJ = -ARCHLIB = -lrpcsvc +ARCHLIB = -lrpcsvc -L/usr/X11R6/lib HASRANLIB = t PVM_ARCH = FREEBSD --- src/lpvm.c~ Wed Sep 13 20:40:06 1995 +++ src/lpvm.c Wed Sep 13 19:47:21 1995 @@ -396,7 +396,11 @@ pvmlogperror(s) char *s; { +#ifndef IMA_FREEBSD char *em; +#else + const char *em; +#endif em = ((errno >= 0 && errno < sys_nerr) ? sys_errlist[errno] : "Unknown Error"); _______________________________________________________||_____________________ __|| Perfection is reached, not when there is no __|| thomas graichen longer anything to add, but when there __|| freie universitaet berlin is no longer anything to take away __|| fachbereich physik __|| - Antoine de Saint-Exupery - __|| ___________________________||____email: graichen@omega.physik.fu-berlin.de____