Christian Leutloff
|
error: conflicting types for `fseeko' both from stdio.h
|
Christian Leutloff
12/13/2007 5:35 AM
post3730
|
error: conflicting types for `fseeko' both from stdio.h
compiling the package x11/gtk2 I got this error
cc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/usr/pkg/lib\" -DGTK_DATADIR=\"/usr/pkg/share\" -
DGTK_DATA_PREFIX=\"/usr/pkg\" -DGTK_SYSCONFDIR=\"/usr/pkg/libdata\" -DGTK_VERSION=\"2.12.0\" -DGTK_BINARY_VERSION=\"2.10
.0\" -DGTK_HOST=\"i386-pc-nto-qnx6.3.0\" -DGTK_COMPILATION -DGTK_PRINT_BACKENDS=\"file,lpr\" "-
DGTK_PRINT_PREVIEW_COMMAND=\"evince --unlink-tempfile --preview --print-settings %s %f\"" -I../gtk -I../gdk -I../gdk-
pixbuf -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -
DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/usr/src/HEAD/pkgsrc/x11/gtk2/work/.
buildlink/include/glib/glib-2.0 -I/usr/src/HEAD/pkgsrc/x11/gtk2/work/.buildlink/lib/glib-2.0/include -I/usr/src/HEAD/
pkgsrc/x11/gtk2/work/.buildlink/include/pango-1.0 -I/usr/src/HEAD/pkgsrc/x11/gtk2/work/.buildlink/include/cairo -I/usr/
src/HEAD/pkgsrc/x11/gtk2/work/.buildlink/include -I/usr/src/HEAD/pkgsrc/x11/gtk2/work/.buildlink/include/freetype2 -I/
usr/src/HEAD/pkgsrc/x11/gtk2/work/.buildlink/include/libpng12 -I/usr/src/HEAD/pkgsrc/x11/gtk2/work/.buildlink/include/
atk-1.0 -DPREFIX=\"/usr/pkg\" -O2 -Wall -MT gtkdialog.lo -MD -MP -MF .deps/gtkdialog.Tpo -c gtkdialog.c -fPIC -DPIC -o
.libs/gtkdialog.o
In file included from /usr/src/HEAD/pkgsrc/x11/gtk2/work/.buildlink/include/pango-1.0/pango/pango-utils.h:25,
from /usr/src/HEAD/pkgsrc/x11/gtk2/work/.buildlink/include/pango-1.0/pango/pango.h:45,
from ../gdk/gdktypes.h:33,
from ../gdk/gdkcolor.h:31,
from ../gdk/gdkcairo.h:23,
from ../gdk/gdk.h:30,
from gtkbutton.h:31,
from gtkdialog.c:30:
/usr/qnx632/target/qnx6/usr/include/stdio.h:260: error: conflicting types for `fseeko'
/usr/qnx632/target/qnx6/usr/include/stdio.h:188: error: previous declaration of `fseeko'
The workaround is to put an additional #include <stdio.h> at the beginning of the gtkdialog.c. So I was able to build
gtk2. I do not have investigate the problem further, but there seem to be situations where the guards arround both of
the fseeko are evaluated to true. IMHO this should not happen.
The system is a Momentics 6.3.2 with the pkgsrc utilities and
cc (GCC) 3.3.5 (qnx-nto).
|
|
|