Bug 40308

Summary: Can't build fileutils port on -STABLE
Product: Ports & Packages Reporter: Norbert Koch <nk>
Component: Individual Port(s)Assignee: freebsd-ports (Nobody) <ports>
Status: Closed FIXED    
Severity: Affects Only Me CC: cyrille.lefevre
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Norbert Koch 2002-07-07 19:30:02 UTC
I'm Unable to build filutils port (/usr/ports/sysutils/fileutils).  
The compiler chokes on some redefined variables.  Make log looks like (afer
having performed a make -k beforehand).

===>  Building for fileutils-4.1_1
gmake  all-recursive
gmake[1]: Entering directory `/usr/local/ports/sysutils/fileutils/work/fileutils-4.1'
Making all in lib
gmake[2]: Entering directory `/usr/local/ports/sysutils/fileutils/work/fileutils-4.1/lib'
gmake  all-am
gmake[3]: Entering directory `/usr/local/ports/sysutils/fileutils/work/fileutils-4.1/lib'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/usr/local/ports/sysutils/fileutils/work/fileutils-4.1/lib'
gmake[2]: Leaving directory `/usr/local/ports/sysutils/fileutils/work/fileutils-4.1/lib'
Making all in intl
gmake[2]: Entering directory `/usr/local/ports/sysutils/fileutils/work/fileutils-4.1/intl'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/local/ports/sysutils/fileutils/work/fileutils-4.1/intl'
Making all in src
gmake[2]: Entering directory `/usr/local/ports/sysutils/fileutils/work/fileutils-4.1/src'
gmake  all-am
gmake[3]: Entering directory `/usr/local/ports/sysutils/fileutils/work/fileutils-4.1/src'
source='chgrp.c' object='chgrp.o' libtool=no \
depfile='.deps/chgrp.Po' tmpdepfile='.deps/chgrp.TPo' \
depmode=gcc /bin/sh ../depcomp \
cc -DLOCALEDIR=\"/usr/local/share/locale\" -DSHAREDIR=\"/usr/local/share\" -DHAVE_CONFIG_H -I.. -I. -I../lib -I../intl  -I/usr/local/include  -O -pipe  -c -o chgrp.o `test -f chgrp.c || echo './'`chgrp.c
In file included from sys2.h:171,
                 from system.h:278,
                 from chgrp.c:26:
/usr/include/stdint.h:37: redefinition of `int8_t'
/usr/include/sys/inttypes.h:11: `int8_t' previously declared here
/usr/include/stdint.h:38: redefinition of `int16_t'
/usr/include/sys/inttypes.h:12: `int16_t' previously declared here
/usr/include/stdint.h:39: redefinition of `int32_t'
/usr/include/sys/inttypes.h:13: `int32_t' previously declared here
/usr/include/stdint.h:40: redefinition of `int64_t'
/usr/include/sys/inttypes.h:14: `int64_t' previously declared here
/usr/include/stdint.h:42: redefinition of `uint8_t'
/usr/include/sys/inttypes.h:16: `uint8_t' previously declared here
/usr/include/stdint.h:43: redefinition of `uint16_t'
/usr/include/sys/inttypes.h:17: `uint16_t' previously declared here
/usr/include/stdint.h:44: redefinition of `uint32_t'
/usr/include/sys/inttypes.h:18: `uint32_t' previously declared here
/usr/include/stdint.h:45: redefinition of `uint64_t'
/usr/include/sys/inttypes.h:19: `uint64_t' previously declared here
/usr/include/stdint.h:47: syntax error before `int_least8_t'
/usr/include/stdint.h:47: warning: data definition has no type or storage class
/usr/include/stdint.h:48: syntax error before `int_least16_t'
/usr/include/stdint.h:48: warning: data definition has no type or storage class
/usr/include/stdint.h:49: syntax error before `int_least32_t'
/usr/include/stdint.h:49: warning: data definition has no type or storage class
/usr/include/stdint.h:50: syntax error before `int_least64_t'
/usr/include/stdint.h:50: warning: data definition has no type or storage class
/usr/include/stdint.h:52: syntax error before `uint_least8_t'
/usr/include/stdint.h:52: warning: data definition has no type or storage class
/usr/include/stdint.h:53: syntax error before `uint_least16_t'
/usr/include/stdint.h:53: warning: data definition has no type or storage class
/usr/include/stdint.h:54: syntax error before `uint_least32_t'
/usr/include/stdint.h:54: warning: data definition has no type or storage class
/usr/include/stdint.h:55: syntax error before `uint_least64_t'
/usr/include/stdint.h:55: warning: data definition has no type or storage class
/usr/include/stdint.h:57: syntax error before `int_fast8_t'
/usr/include/stdint.h:57: warning: data definition has no type or storage class
/usr/include/stdint.h:58: syntax error before `int_fast16_t'
/usr/include/stdint.h:58: warning: data definition has no type or storage class
/usr/include/stdint.h:59: syntax error before `int_fast32_t'
/usr/include/stdint.h:59: warning: data definition has no type or storage class
/usr/include/stdint.h:60: syntax error before `int_fast64_t'
/usr/include/stdint.h:60: warning: data definition has no type or storage class
/usr/include/stdint.h:62: syntax error before `uint_fast8_t'
/usr/include/stdint.h:62: warning: data definition has no type or storage class
/usr/include/stdint.h:63: syntax error before `uint_fast16_t'
/usr/include/stdint.h:63: warning: data definition has no type or storage class
/usr/include/stdint.h:64: syntax error before `uint_fast32_t'
/usr/include/stdint.h:64: warning: data definition has no type or storage class
/usr/include/stdint.h:65: syntax error before `uint_fast64_t'
/usr/include/stdint.h:65: warning: data definition has no type or storage class
/usr/include/stdint.h:67: syntax error before `intmax_t'
/usr/include/stdint.h:67: warning: data definition has no type or storage class
/usr/include/stdint.h:68: syntax error before `unsigned'
/usr/include/stdint.h:68: warning: useless keyword or type name in empty declaration
/usr/include/stdint.h:68: warning: empty declaration
/usr/include/stdint.h:70: redefinition of `intptr_t'
/usr/include/sys/inttypes.h:21: `intptr_t' previously declared here
/usr/include/stdint.h:71: redefinition of `uintptr_t'
/usr/include/sys/inttypes.h:22: `uintptr_t' previously declared here
gmake[3]: *** [chgrp.o] Error 1
gmake[3]: Leaving directory `/usr/local/ports/sysutils/fileutils/work/fileutils-4.1/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/local/ports/sysutils/fileutils/work/fileutils-4.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/ports/sysutils/fileutils/work/fileutils-4.1'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/local/ports/sysutils/fileutils.

Fix: 

none, sorry.
How-To-Repeat: cd /usr/ports/sysutils/fileutils
make
Comment 1 Cyrille Lefevre 2002-07-21 10:58:05 UTC
----- Forwarded message from Cyrille Lefevre <cyrille.lefevre@laposte.net> -----

From: Cyrille Lefevre <cyrille.lefevre@laposte.net>
Subject: Re: Can't build fileutils port on -STABLE
To: Norbert Koch <nk@viteno.net>
Cc: FreeBSD-gnats-submit@freebsd.org
Mail-Followup-To: Cyrille Lefevre <cyrille.lefevre@laposte.net>,
	Norbert Koch <nk@viteno.net>, FreeBSD-gnats-submit@freebsd.org
Date: Wed, 17 Jul 2002 23:18:53 +0200

On Sun, Jul 07, 2002 at 08:22:50PM +0200, Norbert Koch wrote:
System: FreeBSD viteno.dyns.net 4.6-STABLE FreeBSD 4.6-STABLE #5: Sun Jul 7     +12:02:17 CEST 2002 nk@viteno.dyns.net:/usr/local/obj/usr/local/src/sys/VITENO  +i386                                                                           
> >How-To-Repeat:
> cd /usr/ports/sysutils/fileutils
> make

do you still have the problem because I can't reproduce it ?
well, I'm running -stable build on `Sat Jul  6 19:06:54 CEST 2002'.
I'll make world and look a this problem again.

Cyrille.
-- 
Cyrille Lefevre                 mailto:cyrille.lefevre@laposte.net

----- End forwarded message -----
Comment 2 Cyrille Lefevre 2002-07-24 16:45:09 UTC
Hi,

fileutils perfectly build on 
FreeBSD gits 4.6-STABLE FreeBSD 4.6-STABLE #17: Tue Jul 23 08:29:49 CEST 2002

cvsup and buildworld again should be the right answer.

so, IMHO, this PR may be close.

Cyrille.
-- 
Cyrille Lefevre                 mailto:cyrille.lefevre@laposte.net
Comment 3 Norbert Koch 2002-07-24 17:14:59 UTC
Cyrille Lefevre <cyrille.lefevre@laposte.net> writes:

Hi Cyrille.

> fileutils perfectly build on 
> FreeBSD gits 4.6-STABLE FreeBSD 4.6-STABLE #17: Tue Jul 23 08:29:49 CEST 2002
>
> cvsup and buildworld again should be the right answer.

Hmm, I have

FreeBSD viteno.dyns.net 4.6-STABLE FreeBSD 4.6-STABLE #8: Tue Jul 23
20:03:26 CEST 2002

and still see the same behaviour.  Bummer.

> so, IMHO, this PR may be close.

Well, do so.  I guess, it's some local fuckup, too, though I don't
know what's caused this.  Could you please send me a copy of the two
header files in case?  That would be

/usr/include/stdint.h
/usr/include/sys/inttypes.h

I'd like to diff them against my versions.  I guess, at least one of
them is gaga.

Thanks,
norbert.
-- 
Is it FUN to be a MIDGET?
Comment 4 Cyrille Lefevre 2002-07-25 04:28:52 UTC
On Wed, Jul 24, 2002 at 06:14:59PM +0200, Norbert Koch wrote:
> Cyrille Lefevre <cyrille.lefevre@laposte.net> writes:
[snip]
> Well, do so.  I guess, it's some local fuckup, too, though I don't
> know what's caused this.  Could you please send me a copy of the two
> header files in case?  That would be
> 
> /usr/include/stdint.h

# ident /usr/include/stdint.h
ident error: /usr/include/stdint.h: No such file or directory

> /usr/include/sys/inttypes.h

# ident /usr/include/sys/inttypes.h
/usr/include/sys/inttypes.h:
     $FreeBSD: src/sys/sys/inttypes.h,v 1.2 1999/08/28 00:51:47 peter Exp $

> I'd like to diff them against my versions.  I guess, at least one of
> them is gaga.

I suggest you to do the following thing :

mv /usr/include /usr/include.old
mkdir /usr/include
cd /usr/src
make includes

Cyrille.
-- 
Cyrille Lefevre                 mailto:cyrille.lefevre@laposte.net
Comment 5 Norbert Koch 2002-07-25 05:58:47 UTC
Cyrille Lefevre <cyrille.lefevre@laposte.net> writes:

[...]
> I suggest you to do the following thing :
>
> mv /usr/include /usr/include.old
> mkdir /usr/include
> cd /usr/src
> make includes

Thanks, I'm sure, this helps.  Last time, I did a make include, I
haven't cleaned the directory :-/

norbert.
Comment 6 Tilman Keskinoz freebsd_committer freebsd_triage 2002-10-27 15:08:43 UTC
State Changed
From-To: open->closed

Problem not reproducable. 
Orginator suspects stale headerfiles.