You're compiling a gtksourceview version that is too old for the gtk+
version that you have installed. Those warnings are related to deprecated
and renamed API in gtk+. With that version of gtk+, you'll probably need
gtksourceview 3.10.x to compile properly without warnings.


2014/1/25 Volker Braun <vbraun.n...@gmail.com>

> I built a working python2 + gtk3 install on OSX 10.9, so that part
> works great. But I can't compile gtksourceview, and the error looks
> like its a bug in the source and not just a build issue.
>
> I noticed a related macports ticket
> http://trac.macports.org/ticket/41984. However, for the record, I
> don't have macports or any other third-party software distribution
> installed.
>
>
> $ ./.local/bin/jhbuild build gtksourceview3
> *** Checking out gtksourceview3 *** [1/1]
> curl --continue-at - -L
>
> http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/3.6/gtksourceview-3.6.0.tar.xz
> -o /Users/vbraun/gtk/source/pkgs/gtksourceview-3.6.0.tar.xz
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
>  Current
>                                  Dload  Upload   Total   Spent    Left
>  Speed
> 100 1187k  100 1187k    0     0  1294k      0 --:--:-- --:--:-- --:--:--
> 1293k
> xzcat -d "/Users/vbraun/gtk/source/pkgs/gtksourceview-3.6.0.tar.xz" | tar
> xf -
> *** Configuring gtksourceview3 *** [1/1]
> gnome-autogen.sh --prefix /Users/vbraun/gtk/inst --libdir
> '/Users/vbraun/gtk/inst/lib'
> aclocal.m4:17: warning: this file was generated for autoconf 2.68.
> You have another version of autoconf.  It may work, but is not guaranteed
> to.
> If you have problems, you may need to regenerate the build system entirely.
> To do so, use the procedure documented by the package, typically
> `autoreconf'.
>  checking for autoconf >= 2.53...
>    testing autoconf2.50...  not found.
>   testing autoconf...  found 2.69
>  checking for automake >= 1.9...
>    testing automake-1.12...  found 1.12.6
>  using /Users/vbraun/gtk/inst/bin/libtoolize for libtool
>   checking for gettext >= 0.10.40...
>    testing gettextize...  found 0.18.1
>  checking for intltool >= 0.25...
>    testing intltoolize...  found 0.50.2
>  checking for pkg-config >= 0.14.0...
>    testing pkg-config...  found 0.25
>  checking for gtk-doc >= 1.0...
>    testing gtkdocize...  found 1.18
>  Checking for required M4 macros...
>   Checking for forbidden M4 macros...
>   Processing ./configure.ac
>   Running /Users/vbraun/gtk/inst/bin/libtoolize...
>  libtoolize: putting auxiliary files in `.'.
> libtoolize: copying file `./ltmain.sh'
> libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
> libtoolize: copying file `m4/libtool.m4'
> libtoolize: copying file `m4/ltoptions.m4'
> libtoolize: copying file `m4/ltsugar.m4'
> libtoolize: copying file `m4/ltversion.m4'
> libtoolize: copying file `m4/lt~obsolete.m4'
>  Running autopoint...
>  Copying file m4/codeset.m4
> Copying file m4/glibc2.m4
> Copying file m4/glibc21.m4
> Copying file m4/intdiv0.m4
> Copying file m4/intl.m4
> Copying file m4/intldir.m4
> Copying file m4/intmax.m4
> Copying file m4/inttypes-pri.m4
> Copying file m4/inttypes_h.m4
> Copying file m4/lcmessage.m4
> Copying file m4/lock.m4
> Copying file m4/longlong.m4
> Copying file m4/printf-posix.m4
> Copying file m4/size_max.m4
> Copying file m4/stdint_h.m4
> Copying file m4/uintmax_t.m4
> Copying file m4/visibility.m4
> Copying file m4/wchar_t.m4
> Copying file m4/wint_t.m4
> Copying file m4/xsize.m4
> Copying file po/Makefile.in.in
> Copying file po/Makevars.template
> Copying file po/Rules-quot
> Copying file po/boldquot.sed
> Copying file po/en@boldquot.header
> Copying file po/en@quot.header
> Copying file po/insert-header.sin
> Copying file po/quot.sed
> Copying file po/remove-potcdate.sin
>  Running intltoolize...
>   Running gtkdocize...
>   Running aclocal-1.12...
>   Running autoconf...
>   Running autoheader...
>   Running automake-1.12...
>  configure.ac:118: warning: The 'AM_PROG_MKDIR_P' macro is deprecated,
> and will soon be removed.
> configure.ac:118: You should use the Autoconf-provided
> 'AC_PROG_MKDIR_P' macro instead,
> configure.ac:118: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your
> Makefile.am files.
> gtksourceview/Makefile.am:5: warning: 'INCLUDES' is the old name for
> 'AM_CPPFLAGS' (or '*_CPPFLAGS')
> gtksourceview/completion-providers/words/Makefile.am:1: warning:
> 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
> tests/Makefile.am:1: warning: 'INCLUDES' is the old name for
> 'AM_CPPFLAGS' (or '*_CPPFLAGS')
>  Running ./configure --enable-maintainer-mode --prefix
> /Users/vbraun/gtk/inst --libdir /Users/vbraun/gtk/inst/lib ...
>  checking for a BSD-compatible install...
> /Users/vbraun/.local/bin/install-check
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... ./install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking how to create a ustar tar archive... gnutar
> checking whether to enable maintainer-specific portions of Makefiles... yes
> checking whether make supports nested variables... yes
> checking for gcc... /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether
> /Applications/Xcode.app/Contents/Developer/usr/bin/gcc accepts -g...
> yes
> checking for /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
> option to accept ISO C89... none needed
> checking for style of include used by make... GNU
> checking dependency style of
> /Applications/Xcode.app/Contents/Developer/usr/bin/gcc... gcc3
> checking build system type... x86_64-apple-darwin13.0.0
> checking host system type... x86_64-apple-darwin13.0.0
> checking how to print strings... printf
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for fgrep... /usr/bin/grep -F
> checking for ld used by
> /Applications/Xcode.app/Contents/Developer/usr/bin/gcc...
>
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
> checking if the linker
>
> (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld)
> is GNU ld... no
> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
> checking the name lister (/usr/bin/nm) interface... BSD nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 196608
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... yes
> checking how to convert x86_64-apple-darwin13.0.0 file names to
> x86_64-apple-darwin13.0.0 format... func_convert_file_noop
> checking how to convert x86_64-apple-darwin13.0.0 file names to
> toolchain format... func_convert_file_noop
> checking for
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
> option to reload object files... -r
> checking for objdump... no
> checking how to recognize dependent libraries... pass_all
> checking for dlltool... no
> checking how to associate runtime and link libraries... printf %s\n
> checking for ar... ar
> checking for archiver @FILE support... no
> checking for strip... strip
> checking for ranlib... ranlib
> checking command to parse /usr/bin/nm output from
> /Applications/Xcode.app/Contents/Developer/usr/bin/gcc object... ok
> checking for sysroot... no
> checking for mt... no
> checking if : is a manifest tool... no
> checking for dsymutil... dsymutil
> checking for nmedit... nmedit
> checking for lipo... lipo
> checking for otool... otool
> checking for otool64... no
> checking for -single_module linker flag... yes
> checking for -exported_symbols_list linker flag... yes
> checking for -force_load linker flag... yes
> checking how to run the C preprocessor...
> /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for dlfcn.h... yes
> checking for objdir... .libs
> checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
> supports -fno-rtti -fno-exceptions... yes
> checking for /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
> option to produce PIC... -fno-common -DPIC
> checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc PIC
> flag -fno-common -DPIC works... yes
> checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
> static flag -static works... no
> checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
> supports -c -o file.o... yes
> checking if /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
> supports -c -o file.o... (cached) yes
> checking whether the
> /Applications/Xcode.app/Contents/Developer/usr/bin/gcc linker
>
> (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld)
> supports shared libraries... yes
> checking dynamic linker characteristics... darwin13.0.0 dyld
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... no
> checking for unistd.h... (cached) yes
> checking for glib-genmarshal... /Users/vbraun/gtk/inst/bin/glib-genmarshal
> checking for glib-mkenums... /Users/vbraun/gtk/inst/bin/glib-mkenums
> checking for glib-compile-resources...
> /Users/vbraun/gtk/inst/bin/glib-compile-resources
> checking whether gcc understands -Wno-sign-compare... yes
> checking what warning flags to pass to the C compiler... -Wall
> -Wmissing-prototypes -Wnested-externs -Wpointer-arith
> -Wno-sign-compare
> checking what language compliance flags to pass to the C compiler...
> checking for pkg-config... /Users/vbraun/gtk/inst/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for DEP... yes
> checking for native Mac OS X... checking for pkg-config...
> /Users/vbraun/gtk/inst/bin/pkg-config
> yes
> checking for GTK_MAC... yes
> checking whether NLS is requested... yes
> checking for intltool >= 0.40... 0.50.2 found
> checking for intltool-update... /Users/vbraun/gtk/inst/bin/intltool-update
> checking for intltool-merge... /Users/vbraun/gtk/inst/bin/intltool-merge
> checking for intltool-extract...
> /Users/vbraun/gtk/inst/bin/intltool-extract
> checking for xgettext... /Users/vbraun/gtk/inst/bin/xgettext
> checking for msgmerge... /Users/vbraun/gtk/inst/bin/msgmerge
> checking for msgfmt... /Users/vbraun/gtk/inst/bin/msgfmt
> checking for gmsgfmt... /Users/vbraun/gtk/inst/bin/msgfmt
> checking for perl... /usr/bin/perl
> checking for perl >= 5.8.1... 5.16.2
> checking for XML::Parser... ok
> checking for msgfmt... (cached) /Users/vbraun/gtk/inst/bin/msgfmt
> checking for gmsgfmt... (cached) /Users/vbraun/gtk/inst/bin/msgfmt
> checking for xgettext... (cached) /Users/vbraun/gtk/inst/bin/xgettext
> checking for msgmerge... (cached) /Users/vbraun/gtk/inst/bin/msgmerge
> checking for ld used by GCC...
>
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
> checking if the linker
>
> (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld)
> is GNU ld... no
> checking for shared library run path origin... done
> checking for CFPreferencesCopyAppValue... yes
> checking for CFLocaleCopyCurrent... yes
> checking for GNU gettext in libc... no
> checking for iconv... yes
> checking for working iconv... yes
> checking how to link with libiconv... -liconv
> checking for GNU gettext in libintl... yes
> checking whether to use NLS... yes
> checking where the gettext function comes from... external libintl
> checking how to link with libintl... -lintl -Wl,-framework
> -Wl,CoreFoundation
> checking for gtkdoc-check... /Users/vbraun/gtk/inst/bin/gtkdoc-check
> checking for gtkdoc-rebase... /Users/vbraun/gtk/inst/bin/gtkdoc-rebase
> checking for gtkdoc-mkpdf... /Users/vbraun/gtk/inst/bin/gtkdoc-mkpdf
> checking whether to build gtk-doc documentation... no
> checking for gobject-introspection... yes
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> config.status: creating gtksourceview-3.0.pc
> config.status: creating gtksourceview-zip
> config.status: creating Makefile
> config.status: creating data/Makefile
> config.status: creating data/glade/Makefile
> config.status: creating data/language-specs/Makefile
> config.status: creating data/styles/Makefile
> config.status: creating docs/Makefile
> config.status: creating docs/reference/Makefile
> config.status: creating docs/reference/version.xml
> config.status: creating gtksourceview/Makefile
> config.status: creating gtksourceview/completion-providers/Makefile
> config.status: creating gtksourceview/completion-providers/words/Makefile
> config.status: creating po/Makefile.in
> config.status: creating tests/Makefile
> config.status: creating config.h
> config.status: executing depfiles commands
> config.status: executing libtool commands
> config.status: executing po-directories commands
> config.status: creating po/POTFILES
> config.status: creating po/Makefile
> config.status: executing po/stamp-it commands
>
>
> Configuration:
>
> Source code location: .
> Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
> Completion Providers: yes
> Glade Catalog: no
> GObject introspection: yes
>
> Now type `make' to compile Package
> *** Building gtksourceview3 *** [1/1]
> make -j 9
> /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
> Making all in gtksourceview
>   GEN      gtksourceview-marshal.c
>   GEN      gtksourceview-marshal.h
>   GEN      gtksourceview-resources.c
>   GEN      stamp-gtksourceview-typebuiltins.c
>   GEN      stamp-gtksourceview-typebuiltins.h
> /Users/vbraun/gtk/inst/bin/glib-mkenums: gtksourceview.h:133: Failed
> to parse `
> GTK_SOURCE_DRAW_SPACES_TAB     | \ '
> /Users/vbraun/gtk/inst/bin/glib-mkenums: gtksourceview.h:134: Failed
> to parse `
> GTK_SOURCE_DRAW_SPACES_NEWLINE | \ '
> /Users/vbraun/gtk/inst/bin/glib-mkenums: gtksourceview.h:135: Failed
> to parse `
> GTK_SOURCE_DRAW_SPACES_NBSP | \ '
> /Users/vbraun/gtk/inst/bin/glib-mkenums: gtksourceview.h:136: Failed
> to parse `
> GTK_SOURCE_DRAW_SPACES_LEADING | \ '
> /Users/vbraun/gtk/inst/bin/glib-mkenums: gtksourceview.h:137: Failed
> to parse `
> GTK_SOURCE_DRAW_SPACES_TEXT | \ '
> /Users/vbraun/gtk/inst/bin/glib-mkenums: gtksourceview.h:138: Failed
> to parse `
> GTK_SOURCE_DRAW_SPACES_TRAILING) '
> /Users/vbraun/gtk/inst/bin/glib-mkenums: gtksourceview.h:133: Failed
> to parse `
> GTK_SOURCE_DRAW_SPACES_TAB     | \ '
> /Users/vbraun/gtk/inst/bin/glib-mkenums: gtksourceview.h:134: Failed
> to parse `
> GTK_SOURCE_DRAW_SPACES_NEWLINE | \ '
> /Users/vbraun/gtk/inst/bin/glib-mkenums: gtksourceview.h:135: Failed
> to parse `
> GTK_SOURCE_DRAW_SPACES_NBSP | \ '
> /Users/vbraun/gtk/inst/bin/glib-mkenums: gtksourceview.h:136: Failed
> to parse `
> GTK_SOURCE_DRAW_SPACES_LEADING | \ '
> /Users/vbraun/gtk/inst/bin/glib-mkenums: gtksourceview.h:137: Failed
> to parse `
> GTK_SOURCE_DRAW_SPACES_TEXT | \ '
> /Users/vbraun/gtk/inst/bin/glib-mkenums: gtksourceview.h:138: Failed
> to parse `
> GTK_SOURCE_DRAW_SPACES_TRAILING) '
> /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
> Making all in completion-providers
> Making all in words
>   CC       gtksourcecompletionwordsbuffer.lo
>   CC       gtksourcecompletionwordslibrary.lo
>   CC       gtksourcecompletionwords.lo
>   CC       gtksourcecompletionwordsproposal.lo
>   CC       gtksourcecompletionwordsutils.lo
>   CCLD     libgtksourcecompletionwords.la
> make[5]: Nothing to be done for `all-am'.
>   CC       gtksourcecompletion.lo
>   CC       gtksourcebuffer.lo
>   CC       gtksourcecompletioncontext.lo
>   CC       gtksourcecompletioninfo.lo
>   CC       gtksourcecompletionitem.lo
>   CC       gtksourcecompletionmodel.lo
>   CC       gtksourcecompletionproposal.lo
>   CC       gtksourcecompletionprovider.lo
>   CC       gtksourcecompletionutils.lo
>   CC       gtksourcecontextengine.lo
> gtksourcecompletioninfo.c:218:4: warning:
> 'gtk_scrolled_window_add_with_viewport' is deprecated
> [-Wdeprecated-declarations]
>                         gtk_scrolled_window_add_with_viewport
> (GTK_SCROLLED_WINDOW (info->priv->scroll), widget);
>                         ^
> /Users/vbraun/gtk/inst/include/gtk-3.0/gtk/gtkscrolledwindow.h:125:13:
> note: 'gtk_scrolled_window_add_with_viewport' declared here
> void           gtk_scrolled_window_add_with_viewport
> (GtkScrolledWindow *scrolled_window,
>                ^
> 1 warning generated.
>   CC       gtksourceengine.lo
>   CC       gtksourcegutter.lo
> gtksourcecompletionitem.c:372:2: error: unknown type name
> 'GtkStockItem'; did you mean 'GtkToolItem'?
>         GtkStockItem stock_item;
>         ^~~~~~~~~~~~
>         GtkToolItem
> /Users/vbraun/gtk/inst/include/gtk-3.0/gtk/gtktoolitem.h:41:36: note:
> 'GtkToolItem' declared here
> typedef struct _GtkToolItem        GtkToolItem;
>                                    ^
>   CC       gtksourcegutterrenderer.lo
> gtksourcecompletionitem.c:386:24: warning: implicit declaration of
> function 'gtk_stock_lookup' is invalid in C99
> [-Wimplicit-function-declaration]
>                 if (label == NULL && gtk_stock_lookup (stock, &stock_item))
>                                      ^
> gtksourcecompletionitem.c:388:23: error: no member named 'label' in
> 'struct _GtkToolItem'
>                         label = stock_item.label;
>                                 ~~~~~~~~~~ ^
> 1 warning and 2 errors generated.
> make[4]: *** [gtksourcecompletionitem.lo] Error 1
> make[4]: *** Waiting for unfinished jobs....
>   CC       gtksourcegutterrenderertext.lo
> gtksourcegutter.c:1030:31: warning: 'gtk_widget_get_state' is
> deprecated [-Wdeprecated-declarations]
>                                      gtk_widget_get_state (GTK_WIDGET
> (view)),
>                                      ^
> /Users/vbraun/gtk/inst/include/gtk-3.0/gtk/gtkwidget.h:678:23: note:
> 'gtk_widget_get_state' declared here
> GtkStateType          gtk_widget_get_state              (GtkWidget
>  *widget);
>                       ^
> gtksourcegutter.c:1030:31: warning: implicit conversion from
> enumeration type 'GtkStateType' to different enumeration type
> 'GtkStateFlags'
>       [-Wenum-conversion]
>                                      gtk_widget_get_state (GTK_WIDGET
> (view)),
>
>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 2 warnings generated.
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> *** Error during phase build of gtksourceview3: ########## Error
> running make -j 9 *** [1/1]
>
>   [1] Rerun phase build
>   [2] Ignore error and continue to install
>   [3] Give up on module
>   [4] Start shell
>   [5] Reload configuration
>   [6] Go to phase "wipe directory and start over"
>   [7] Go to phase "configure"
>   [8] Go to phase "clean"
>   [9] Go to phase "distclean"
> _______________________________________________
> Gtk-osx-users-list mailing list
> Gtk-osx-users-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list
>
_______________________________________________
Gtk-osx-users-list mailing list
Gtk-osx-users-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list

Reply via email to