Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jun 2000 14:20:32 -0700 (PDT)
From:      john@bartok.lanl.gov
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/19447: ALIGN macro undefined in /usr/include/sys/socket.h
Message-ID:  <20000622212032.4737637BE81@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000622212032.4737637BE81>