From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 20 23:41:59 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F02581065672 for ; Sun, 20 Jun 2010 23:41:59 +0000 (UTC) (envelope-from andy@fud.org.nz) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 905598FC13 for ; Sun, 20 Jun 2010 23:41:59 +0000 (UTC) Received: by vws1 with SMTP id 1so172168vws.13 for ; Sun, 20 Jun 2010 16:41:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.123.158 with SMTP id p30mr1573607vcr.133.1277077318773; Sun, 20 Jun 2010 16:41:58 -0700 (PDT) Sender: andy@fud.org.nz Received: by 10.220.72.134 with HTTP; Sun, 20 Jun 2010 16:41:58 -0700 (PDT) In-Reply-To: References: Date: Mon, 21 Jun 2010 11:41:58 +1200 X-Google-Sender-Auth: Ol-RiH-74azUJXlA6gKVut4yLic Message-ID: From: Andrew Thompson To: Garrett Cooper Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Stathis Kamperis , standards@freebsd.org, FreeBSD-Hackers Subject: Re: Are POSIX mqueues supposed to be functional on FreeBSD? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2010 23:42:00 -0000 On 21 June 2010 10:11, Garrett Cooper wrote: > On Sun, Jun 20, 2010 at 3:06 PM, Stathis Kamperis wr= ote: >> 2010/6/21 Garrett Cooper : >>> =A0 =A0Err... I ran an mqueue test and it popped up with ENOSYS. Which >>> makes me wonder, are POSIX mqueues implemented 100% on FreeBSD? I >>> looked into sys/kern/uip_mqueue.c and it _appears_ functional, but I >> >> Hi, >> >> did you first load the respective kernel module (mqueuefs or something >> like that) ? > > Duh... should have checked that first I suppose: no, it isn't loaded. > However, it doesn't appear to compile with my copy of src: > > # make -C /sys/modules/mqueue/ all install > Warning: Object directory not changed from original /usr/src/sys/modules/= mqueue > cc -O2 -pipe -fno-strict-aliasing -pipe -O2 -march=3Dnocona -Werror > -D_KERNEL -DKLD_MODULE -nostdinc =A0 -I. -I@ -I@/contrib/altq > -finline-limit=3D8000 --param inline-unit-growth=3D100 --param > large-function-growth=3D1000 -fno-common =A0-fno-omit-frame-pointer > -mcmodel=3Dkernel -mno-red-zone =A0-mfpmath=3D387 -mno-sse -mno-sse2 > -mno-sse3 -mno-mmx -mno-3dnow =A0-msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector > -std=3Diso9899:1999 -fstack-protector -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes =A0-Wmissing-prototypes > -Wpointer-arith -Winline -Wcast-qual =A0-Wundef -Wno-pointer-sign > -fformat-extensions -c > /usr/src/sys/modules/mqueue/../../kern/uipc_mqueue.c > /usr/src/sys/modules/mqueue/../../kern/uipc_mqueue.c:48:24: error: > opt_compat.h: No such file or directory > *** Error code 1 > > Stop in /usr/src/sys/modules/mqueue. > # find /usr/src/ -name opt_compat.h > > So I'll need to hunt down what's going on with the missing header. opt_* headers are auto-generated by the kernel config. Just add opt_compat.h to sys/modules/mqueue/Makefile right after opt_posix.h Andrew