Discussion:
Bug#759249: freebsd-libs: FTBFS - conflicting types for 'funopen'
Michael Tautschnig
2014-08-25 14:50:43 UTC
Permalink
Package: freebsd-libs
Version: 10.0-6
Severity: serious
Usertags: goto-cc

During a rebuild of all Debian packages in a clean sid chroot (using cowbuilder
and pbuilder) the build failed with the following error.

[...]
/usr/include/freebsd/stdio.h:16:7: error: conflicting types for 'funopen'
FILE *funopen (const void *cookie, int (*readfn)(void *, char *, int),
^
In file included from /usr/include/freebsd/stdio.h:6:0,
from /srv/jenkins-slave/workspace/sid-goto-cc-freebsd-libs/freebsd-libs-10.0/lib/libsbuf/../../sys/kern/subr_sbuf.c:46:
/usr/include/bsd/stdio.h:57:7: note: previous declaration of 'funopen' was here
FILE *funopen(const void *cookie,
^
In file included from /usr/include/_G_config.h:15:0,
from /usr/include/libio.h:31,
from /usr/include/stdio.h:74,
from /usr/include/freebsd/stdio.h:1,
from /srv/jenkins-slave/workspace/sid-goto-cc-freebsd-libs/freebsd-libs-10.0/lib/libsbuf/../../sys/kern/subr_sbuf.c:46:
/usr/include/freebsd/stdio.h:19:7: error: expected declaration specifiers or '...' before '(' token
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
^
/usr/include/freebsd/stdio.h:19:7: error: expected declaration specifiers or '...' before '(' token
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
^
/usr/include/freebsd/stdio.h:19:7: error: expected declaration specifiers or '...' before '(' token
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
^
/usr/include/freebsd/stdio.h:20:7: error: expected declaration specifiers or '...' before '(' token
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
^
/usr/include/freebsd/stdio.h:20:7: error: expected declaration specifiers or '...' before '(' token
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
^
/usr/include/freebsd/stdio.h:20:7: error: expected declaration specifiers or '...' before '(' token
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
^
*** Error code 1

Stop.
bmake[1]: stopped in /srv/jenkins-slave/workspace/sid-goto-cc-freebsd-libs/freebsd-libs-10.0/lib/libsbuf
debian/rules:176: recipe for target 'build-sbuf-stamp' failed
make: *** [build-sbuf-stamp] Error 1


The full build log is attached; please do let me know if the problem is
unreproducible, in which case I shall try to investigate further.

Best,
Michael
Steven Chamberlain
2014-08-25 15:18:14 UTC
Permalink
reassign 759249 libbsd-dev, src:freebsd-glue
found 759249 libbsd/0.7.0
affects 759249 src:freebsd-glue
affects 759249 src:freebsd-libs
affects 759249 src:kfreebsd-10
thanks

Hi Guillem,

libbsd/0.7.0 caused this regression building freebsd-libs and possibly
kfreebsd-10 as well. Could you give some advice please?

Should we drop funopen etc. from freebsd-glue's stdio.h now that libbsd
provides them? Or would that create other issues? Thanks.
Post by Michael Tautschnig
[...]
/usr/include/freebsd/stdio.h:16:7: error: conflicting types for 'funopen'
FILE *funopen (const void *cookie, int (*readfn)(void *, char *, int),
^
In file included from /usr/include/freebsd/stdio.h:6:0,
/usr/include/bsd/stdio.h:57:7: note: previous declaration of 'funopen' was here
FILE *funopen(const void *cookie,
^
Regards,
--
Steven Chamberlain
***@pyro.eu.org
Loading...