From nobody@FreeBSD.ORG  Thu Jun 22 14:20:32 2000
Return-Path: <nobody@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
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: ALIGN macro undefined in /usr/include/sys/socket.h
X-Send-Pr-Version: www-1.0

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 22 14:30:00 PDT 2000
>Closed-Date:    Wed Aug 2 07:03:56 PDT 2000
>Last-Modified:  Wed Aug 02 07:05:05 PDT 2000
>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:

From: Johan Karlsson <Johan.Karlsson@sm.luth.se>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: misc/19447: ALIGN macro undefined in /usr/include/sys/socket.h
Date: Wed, 02 Aug 2000 15:56:19 +0200

 This PR is superseeded by PR 19971
 which contains a long discussion of the topic.
 
 see
 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19971
 
 /Johan K
 -- 
 Johan Karlsson              Phone : +46 (0)920 720 16 
 Systemteknik, Datalogi      Fax   : +46 (0)920 721 91 
 Lule Tekniska Universitet  E-mail: Johan.Karlsson@SM.LuTH.SE
 S-971 87 LULE, SWEDEN
 
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Wed Aug 2 07:03:56 PDT 2000 
State-Changed-Why:  
As pointed out by Johan Karlsson <Johan.Karlsson@sm.luth.se>,  
this PR is superseded by PR 19971. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19447 
>Unformatted:
