pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/48274: devel/m4 1.4.17 DragonFly 3.5-DEVELOPMENT x86_64 and i386 conflicting types for '__fpending'



>Number:         48274
>Category:       pkg
>Synopsis:       devel/m4 1.4.17 DragonFly 3.5-DEVELOPMENT x86_64 and i386 
>conflicting types for '__fpending'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 05 01:40:00 +0000 2013
>Originator:     David Shao
>Release:        DragonFly 3.5-DEVELOPMENT x86_64 and i386
>Organization:
>Environment:
DragonFly 3.5-DEVELOPMENT x86_64 and i386
>Description:
Using current cvs pkgsrc through

Module Name:    pkgsrc
Date:           Fri Oct  4 21:26:31 UTC 2013

Modified Files:
        pkgsrc/devel/rcs: Makefile distinfo

on DragonFly 3.5-DEVELOPMENT x86_64 and i386 through

commit 4bbca3a905b195fcafccbf8e264fbb27b05a6f6b
Date:   Thu Oct 3 20:20:20 2013 +0200

    gdb: revert local modification to handle wchar_t

devel/m4 1.4.17 fails to build:

checking for fpurge... yes
checking for __fpurge... no
checking for __freadahead... no
checking for __freading... no
...
checking for __fpending... yes
checking whether fpurge is declared... yes
checking whether fpurge works... no
...
checking for ssize_t... yes
...
/usr/pkg/bin/bmake  all-am
depbase=`echo gl_avltree_oset.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc 
-std=gnu99  -I.      -g -MT gl_avltree_oset.o -MD -MP -MF $depbase.Tpo -c -o 
gl_avltree_oset.o gl_avltree_oset.c && mv -f $depbase.Tpo $depbase.Po
depbase=`echo binary-io.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc -std=gnu99  
-I.      -g -MT binary-io.o -MD -MP -MF $depbase.Tpo -c -o binary-io.o 
binary-io.c && mv -f $depbase.Tpo $depbase.Po
depbase=`echo c-ctype.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc -std=gnu99  -I. 
     -g -MT c-ctype.o -MD -MP -MF $depbase.Tpo -c -o c-ctype.o c-ctype.c && mv 
-f $depbase.Tpo $depbase.Po
depbase=`echo c-stack.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc -std=gnu99  -I. 
     -g -MT c-stack.o -MD -MP -MF $depbase.Tpo -c -o c-stack.o c-stack.c && mv 
-f $depbase.Tpo $depbase.Po
depbase=`echo c-strcasecmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc -std=gnu99 
 -I.      -g -MT c-strcasecmp.o -MD -MP -MF $depbase.Tpo -c -o c-strcasecmp.o 
c-strcasecmp.c && mv -f $depbase.Tpo $depbase.Po
depbase=`echo c-strncasecmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc 
-std=gnu99  -I.      -g -MT c-strncasecmp.o -MD -MP -MF $depbase.Tpo -c -o 
c-strncasecmp.o c-strncasecmp.c && mv -f $depbase.Tpo $depbase.Po
depbase=`echo clean-temp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc -std=gnu99  
-I.      -g -MT clean-temp.o -MD -MP -MF $depbase.Tpo -c -o clean-temp.o 
clean-temp.c && mv -f $depbase.Tpo $depbase.Po
depbase=`echo cloexec.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc -std=gnu99  -I. 
     -g -MT cloexec.o -MD -MP -MF $depbase.Tpo -c -o cloexec.o cloexec.c && mv 
-f $depbase.Tpo $depbase.Po
depbase=`echo close-stream.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc -std=gnu99 
 -I.      -g -MT close-stream.o -MD -MP -MF $depbase.Tpo -c -o close-stream.o 
close-stream.c && mv -f $depbase.Tpo $depbase.Po
In file included from close-stream.c:25:0:
fpending.h:28:8: error: conflicting types for '__fpending'
In file included from ./stdio.h:43:0,
                 from close-stream.h:1,
                 from close-stream.c:20:
/usr/include/stdio.h:354:11: note: previous declaration of '__fpending' was here

The definition of __fpending from DragonFly's /usr/include/stdio.h is:

#if __BSD_VISIBLE
int      asprintf(char **, const char *, ...) __printflike(2, 3);
char    *ctermid_r(char *);
void     fcloseall(void);
void    *fcookie(FILE *);
char    *fgetln(FILE *, size_t *);
const char *fmtcheck(const char *, const char *) __format_arg(2);
__ssize_t __fpending(const FILE *);
int      fpurge(FILE *);

The change to const before FILE * was added in:

Make __fpending() take a const argument.
commit  55b9a8235cf3099371b792b1acc2a2ea965b2a48
Tue, 16 Dec 2008 17:31:42 +0000 (09:31 -0800)
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index