From owner-freebsd-sparc Sun Mar 10 14:53:18 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from horsey.gshapiro.net (horsey.gshapiro.net [209.220.147.178]) by hub.freebsd.org (Postfix) with ESMTP id 5243B37B405 for ; Sun, 10 Mar 2002 14:53:09 -0800 (PST) Received: from horsey.gshapiro.net (gshapiro@localhost [IPv6:::1]) by horsey.gshapiro.net (8.12.3.Beta0/8.12.3.Beta0) with ESMTP id g2AMr8Iq008366 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 10 Mar 2002 14:53:08 -0800 (PST) Received: (from gshapiro@localhost) by horsey.gshapiro.net (8.12.3.Beta0/8.12.3.Beta0/Submit) id g2AMr8GG008363; Sun, 10 Mar 2002 14:53:08 -0800 (PST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15499.58324.267110.225254@horsey.gshapiro.net> Date: Sun, 10 Mar 2002 14:53:08 -0800 From: Gregory Neil Shapiro To: freebsd-sparc@freebsd.org Subject: userland porting for sendmail X-Mailer: VM 7.00 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thanks to Mike Barcroft, I have access to a machine running the sparc64 port to test the sendmail build. It turned up one compile time warning (fixed for sendmail 8.12.3) and one problem. The shared memory libsm test core dumps (signal 12). I believe I recall seeing shared memory hadn't been implemented yet to this is of no big surprise. Does this patch look reasonable for 8.12.3? If not, is there a better cpp symbol to use? Index: include/sm/os/sm_os_freebsd.h diff -u include/sm/os/sm_os_freebsd.h:1.9 include/sm/os/sm_os_freebsd.h:1.10 --- include/sm/os/sm_os_freebsd.h:1.9 Wed Jun 27 14:46:48 2001 +++ include/sm/os/sm_os_freebsd.h Sun Mar 10 14:41:03 2002 @@ -31,7 +31,11 @@ #endif #ifndef SM_CONF_SHM -# define SM_CONF_SHM 1 +# ifdef __sparc64__ +# define SM_CONF_SHM 0 +# else /* __sparc64__ */ +# define SM_CONF_SHM 1 +# endif /* __sparc64__ */ #endif /* SM_CONF_SHM */ #ifndef SM_CONF_SEM # define SM_CONF_SEM 1 Finally, what is the proper Makefile magic? Should ${MACHINE_ARCH} be used, i.e.: --- Makefile 17 Feb 2002 22:01:40 -0000 1.1 +++ Makefile 10 Mar 2002 22:50:50 -0000 @@ -8,6 +8,11 @@ CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. CFLAGS+=-DNETINET6 -DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL +# Temporary fix for sparc64 port until 8.12.3 imported +.if ${MACHINE_ARCH} == sparc64 +CFLAGS+=-DSM_CONF_SHM=0 +.endif + # User customizations to the sendmail build environment CFLAGS+=${SENDMAIL_CFLAGS} To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message