Newsgroups: comp.parallel.pvm,comp.unix.bsd.freebsd.misc
From: graichen@julia.physik.fu-berlin.de (Thomas Graichen)
Subject: Re: PVM and FreeBSD
Organization: Freie Universitaet Berlin
Date: 11 Nov 1995 09:43:26 GMT
Message-ID: <481r7u$1a9@fu-berlin.de>

Peter Hgglund (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____

