From owner-freebsd-bugs Thu Jun 22 14:30: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BDD3537C014 for ; Thu, 22 Jun 2000 14:30:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA75267; Thu, 22 Jun 2000 14:30:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 4737637BE81; Thu, 22 Jun 2000 14:20:32 -0700 (PDT) Message-Id: <20000622212032.4737637BE81@hub.freebsd.org> Date: Thu, 22 Jun 2000 14:20:32 -0700 (PDT) From: john@bartok.lanl.gov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/19447: ALIGN macro undefined in /usr/include/sys/socket.h Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19447 >Category: misc >Synopsis: ALIGN macro undefined in /usr/include/sys/socket.h >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 22 14:30:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: John Galbraith >Release: 4.0-RELEASE (i386) >Organization: Los Alamos National Laboratory >Environment: FreeBSD bartok.lanl.gov 4.0-RELEASE FreeBSD 4.0-RELEASE #1: Wed May 31 14:33:37 MDT 2000 john@bartok.lanl.gov:/usr/src/sys/compile/BARTOK i386 >Description: Programs using the CMSG_DATA (and others) in /usr/include/sys/socket.h will not link/load because the ALIGN macro is not defined, and the compiler thinks it should be a function that should be resolved. I think that the definition of the ALIGN macro is in /usr/include/machine/param.h. At least, my program works when I include it before sys/socket.h. I think that any include file that uses the ALIGN macro should define it itself, or include machine/param.h. >How-To-Repeat: Compile srfd.c from the lam-6.3.2 (an MPI implementation) and look at the symbols in srfd.o, or the assembler output. They both include a call to ALIGN, which should have been a macro. >Fix: Include machine/param.h in sys/socket.h >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message