From eaquer@ceti.pl  Wed Jul 23 14:25:14 2003
Return-Path: <eaquer@ceti.pl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4741937B405
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Jul 2003 14:25:14 -0700 (PDT)
Received: from example.com (pq149.warszawa.cvx.ppp.tpnet.pl [217.99.0.149])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D223643FA3
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Jul 2003 14:25:12 -0700 (PDT)
	(envelope-from eaquer@ceti.pl)
Received: by example.com (Postfix, from userid 1001)
	id 6601950532; Wed, 23 Jul 2003 23:22:42 +0200 (CEST)
Message-Id: <20030723212242.6601950532@example.com>
Date: Wed, 23 Jul 2003 23:22:42 +0200 (CEST)
From: Maciej Korzen <eaquer@ceti.pl>
Reply-To: Maciej Korzen <eaquer@ceti.pl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Problem compiling sbin/dmesg on FreeBSD 5.1-CURRENT from 23/07/2003
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54787
>Category:       bin
>Synopsis:       Problem compiling sbin/dmesg on FreeBSD 5.1-CURRENT from 23/07/2003
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 23 14:30:07 PDT 2003
>Closed-Date:    Fri Jul 25 00:58:51 PDT 2003
>Last-Modified:  Fri Jul 25 00:58:51 PDT 2003
>Originator:     Maciej Korzen
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
none
>Environment:
System: FreeBSD example 5.1-CURRENT FreeBSD 5.1-CURRENT #1: Mon Jun 16 21:31:10 CEST 2003 root@example:/usr/obj/usr/src/sys/EXAMPLE i386

CVSup-ed at 23/07/2003

>Description:
/usr/src/sbin/dmesg won't build

>How-To-Repeat:
root@example:~# cd /usr/src/sbin/dmesg
root@example:sbin/dmesg# make clean
rm -f dmesg dmesg.o dmesg.8.gz dmesg.8.cat.gz
root@example:sbin/dmesg# make
Warning: Object directory not changed from original /usr/src/sbin/dmesg
cc -O -pipe -DIPFIREWALL_VERBOSE -DIPFIREWALL_VERBOSE_LIMIT=100 -DIPFIREWALL_DEF
AULT_TO_ACCEPT -march=pentiumpro   -Wsystem-headers -Werror -Wall -Wno-format-y2
k -Wno-uninitialized  -c dmesg.c
cc1: warnings being treated as errors
dmesg.c: In function `main':
dmesg.c:140: warning: implicit declaration of function `MSGBUF_SEQ_TO_POS'
dmesg.c:140: structure has no member named `msg_wseq'
*** Error code 1

Stop in /usr/src/sbin/dmesg.
root@example:sbin/dmesg#
>Fix:
I wish to know how to fix it ;-).
>Release-Note:
>Audit-Trail:

From: Ian Dowse <iedowse@maths.tcd.ie>
To: Maciej Korzen <eaquer@ceti.pl>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: bin/54787: Problem compiling sbin/dmesg on FreeBSD 5.1-CURRENT from 23/07/2003 
Date: Thu, 24 Jul 2003 01:44:21 +0100

 In message <20030723212242.6601950532@example.com>, Maciej Korzen writes:
 >root@example:~# cd /usr/src/sbin/dmesg
 >root@example:sbin/dmesg# make clean
 >rm -f dmesg dmesg.o dmesg.8.gz dmesg.8.cat.gz
 >root@example:sbin/dmesg# make
 >Warning: Object directory not changed from original /usr/src/sbin/dmesg
 >cc -O -pipe -DIPFIREWALL_VERBOSE -DIPFIREWALL_VERBOSE_LIMIT=100 -DIPFIREWALL_D
 >EF
 >AULT_TO_ACCEPT -march=pentiumpro   -Wsystem-headers -Werror -Wall -Wno-format-
 >y2
 >k -Wno-uninitialized  -c dmesg.c
 >cc1: warnings being treated as errors
 >dmesg.c: In function `main':
 >dmesg.c:140: warning: implicit declaration of function `MSGBUF_SEQ_TO_POS'
 >dmesg.c:140: structure has no member named `msg_wseq'
 
 Did you do a buildworld/installworld after upgranding your sources?
 The MSGBUF_SEQ_TO_POS macro is defined in src/sys/sys/msgbuf.h, and
 has been there ever since the use of it was added to dmesg.c.
 Compiling new source code against old headers won't always work,
 so that is why you need to use the buildworld target.
 
 Ian
State-Changed-From-To: open->closed 
State-Changed-By: iedowse 
State-Changed-When: Fri Jul 25 00:55:59 PDT 2003 
State-Changed-Why:  

Submitter says that the problem went away after another cvsup. 

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