Date: Sun, 10 Mar 2002 14:53:08 -0800 From: Gregory Neil Shapiro <gshapiro@freebsd.org> To: freebsd-sparc@freebsd.org Subject: userland porting for sendmail Message-ID: <15499.58324.267110.225254@horsey.gshapiro.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15499.58324.267110.225254>