After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 725690 - Unable to build with jhbuild
Unable to build with jhbuild
Status: RESOLVED OBSOLETE
Product: libsecret
Classification: Other
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libsecret maintainer(s)
libsecret maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-03-04 22:28 UTC by Saulo Toledo
Modified: 2018-09-21 16:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
New build after update libsecret (22.01 KB, text/plain)
2014-03-05 21:20 UTC, Saulo Toledo
  Details
Manual configure/make (make_install_at_dir.txt) (9.81 KB, text/plain)
2014-03-05 21:21 UTC, Saulo Toledo
  Details
New jhbuild buildone libsecret (jhbuild_buildone_after_manual_make.txt) (10.75 KB, text/plain)
2014-03-05 21:22 UTC, Saulo Toledo
  Details
Makefile.am: use autotools' built-in Vala support (2.93 KB, patch)
2014-03-05 23:07 UTC, Evan Nemerson
none Details | Review
Makefile.am: Don't build tests during normal builds (723 bytes, patch)
2014-03-06 11:50 UTC, Stef Walter
committed Details | Review
Working compilation (30.21 KB, text/plain)
2014-03-06 12:33 UTC, Saulo Toledo
  Details

Description Saulo Toledo 2014-03-04 22:28:36 UTC
I'm unable to build libsecret with jhbuild.
I'm running Ubuntu 13.10 64bits. With help from #gnome-love channel, I tried to add the line

module_makeargs ['libsecret'] = '-j1'

at file /home/saulo/.jhbuildrc, but do not worked.

Here is the output while trying to compile:

saulo@SauloPC:~/gnome/source/libsecret$ git reset --hard origin/master; git clean -fdx in ~/gnome/source/libsecret
HEAD is now at 7d58d2d Makefile.am: Fix typo in last commit
Removing .deps/
Removing .libs/
Removing INSTALL
Removing Makefile
Removing Makefile.in
Removing MockService-0.gir
Removing Secret-1.gir
Removing aclocal.m4
Removing autom4te.cache/
Removing build/compile
Removing build/config.guess
Removing build/config.sub
Removing build/depcomp
Removing build/install-sh
Removing build/ltmain.sh
Removing build/m4/gtk-doc.m4
Removing build/m4/intltool.m4
Removing build/m4/libtool.m4
Removing build/m4/ltoptions.m4
Removing build/m4/ltsugar.m4
Removing build/m4/ltversion.m4
Removing build/m4/lt~obsolete.m4
Removing build/missing
Removing config.h
Removing config.h.in
Removing config.log
Removing config.status
Removing configure
Removing docs/reference/libsecret/Makefile
Removing docs/reference/libsecret/Makefile.in
Removing docs/reference/libsecret/version-major.xml
Removing docs/reference/libsecret/version.xml
Removing egg-dh.lo
Removing egg-hex.lo
Removing egg-hkdf.lo
Removing egg-libgcrypt.lo
Removing egg-secure-memory.lo
Removing egg-testing.lo
Removing gtk-doc.make
Removing libegg.la
Removing libmock_service.la
Removing libsecret-1.deps
Removing libsecret-1.la
Removing libsecret-1.vapi
Removing libsecret-testable.la
Removing libsecret/libsecret-unstable.pc
Removing libsecret/libsecret.pc
Removing libsecret/secret-enum-types.c
Removing libsecret/secret-enum-types.h
Removing libsecret_1_la-secret-attributes.lo
Removing libsecret_1_la-secret-collection.lo
Removing libsecret_1_la-secret-dbus-generated.lo
Removing libsecret_1_la-secret-enum-types.lo
Removing libsecret_1_la-secret-item.lo
Removing libsecret_1_la-secret-methods.lo
Removing libsecret_1_la-secret-password.lo
Removing libsecret_1_la-secret-paths.lo
Removing libsecret_1_la-secret-prompt.lo
Removing libsecret_1_la-secret-schema.lo
Removing libsecret_1_la-secret-schemas.lo
Removing libsecret_1_la-secret-service.lo
Removing libsecret_1_la-secret-session.lo
Removing libsecret_1_la-secret-util.lo
Removing libsecret_1_la-secret-value.lo
Removing libtool
Removing mock-service-0.vapi
Removing mock-service.lo
Removing po/Makefile
Removing po/Makefile.in
Removing po/Makefile.in.in
Removing po/POTFILES
Removing po/stamp-it
Removing secret-dbus-generated.c
Removing secret-dbus-generated.h
Removing secret-tool
Removing secret-tool.o
Removing stamp-h1
Removing temp-dbus-generated.c
Removing temp-dbus-generated.h
Removing test-attributes
Removing test-attributes.o
Removing test-collection
Removing test-collection.o
Removing test-dh
Removing test-dh.o
Removing test-hex
Removing test-hex.o
Removing test-hkdf
Removing test-hkdf.o
Removing test-item
Removing test-item.o
Removing test-methods
Removing test-methods.o
Removing test-password
Removing test-password.o
Removing test-paths
Removing test-paths.o
Removing test-prompt
Removing test-prompt.o
Removing test-secmem
Removing test-secmem.o
Removing test-service
Removing test-service.o
Removing test-session
Removing test-session.o
Removing test-vala-lang
Removing test-vala-lang.vala.o
Removing test-value
Removing test-value.o
saulo@SauloPC:~/gnome/source/libsecret$ jhbuild buildone libsecret
*** Obtendo libsecret *** [1/1]
git remote set-url origin git://git.gnome.org/libsecret
git remote update origin
Fetching origin
git pull --rebase
Current branch master is up to date.
*** Configurando libsecret *** [1/1]
./autogen.sh --prefix /home/saulo/gnome/install --libdir '/home/saulo/gnome/install/lib64'  --disable-static --disable-gtk-doc 
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build'.
libtoolize: linking file `build/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `build/m4'.
libtoolize: linking file `build/m4/libtool.m4'
libtoolize: linking file `build/m4/ltoptions.m4'
libtoolize: linking file `build/m4/ltsugar.m4'
libtoolize: linking file `build/m4/ltversion.m4'
libtoolize: linking file `build/m4/lt~obsolete.m4'
configure.ac:63: installing 'build/compile'
configure.ac:67: installing 'build/config.guess'
configure.ac:67: installing 'build/config.sub'
configure.ac:49: installing 'build/install-sh'
configure.ac:49: installing 'build/missing'
Makefile.am: installing 'build/depcomp'
checking for a BSD-compatible install... /usr/bin/install-check
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '29' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether build environment is sane... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for gcc... 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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
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... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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 whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.14.2
checking for XML::Parser... ok
checking for pkg-config... /usr/bin/pkg-config
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for mlock... yes
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for gtk-doc... yes
checking for gtkdoc-check... gtkdoc-check.test
checking for gtkdoc-check... /home/saulo/gnome/install/bin/gtkdoc-check
checking for gtkdoc-rebase... /home/saulo/gnome/install/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /home/saulo/gnome/install/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for GTKDOC_DEPS... yes
checking for gobject-introspection... yes
checking for glib-mkenums... /home/saulo/gnome/install/bin/glib-mkenums
checking for xsltproc... /usr/bin/xsltproc
checking pkg-config is at least version 0.9.0... yes
checking for vapigen... yes
checking for valac... /home/saulo/gnome/install/bin/valac
checking for libgcrypt-config... /usr/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.2.2... yes (1.5.0)
checking LIBGCRYPT API version... okay
configure: WARNING:
***
*** The config script /usr/bin/libgcrypt-config was
*** built for x86_64-pc-linux-gnu and thus may not match the
*** used host x86_64-unknown-linux-gnu.
*** You may want to use the configure option --with-libgcrypt-prefix
*** to specify a matching config script.
***
checking whether gcc understands -Wmissing-include-dirs... yes
checking whether gcc understands -Wundef... yes
checking build strict... no
checking for debug mode... default
checking whether to build with gcov testing... no
checking that generated files are newer than configure... done
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/reference/libsecret/Makefile
config.status: creating docs/reference/libsecret/version.xml
config.status: creating docs/reference/libsecret/version-major.xml
config.status: creating po/Makefile.in
config.status: creating po/Makefile
config.status: creating libsecret/libsecret.pc
config.status: creating libsecret/libsecret-unstable.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands

CFLAGS: -g -O2 -pthread -I/home/saulo/gnome/install/include/glib-2.0 -I/home/saulo/gnome/install/lib64/glib-2.0/include -I/home/saulo/gnome/install/include/gio-unix-2.0/   -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_38 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_38 		-Wall -Wmissing-declarations 		-Wmissing-prototypes -Wnested-externs -Wpointer-arith 		-Wdeclaration-after-statement -Wformat=2 -Winit-self 		-Waggregate-return -Wmissing-include-dirs -Wundef -Wno-error -g

OPTIONS:
  libgcrypt:     yes
  vala:          yes
  Debug:         default
  Coverage:      no
  Manual Page:   yes


Now type 'make' to compile libsecret.
*** Compilando libsecret *** [1/1]
make -j1
  GEN      temp-dbus-generated.c
  GEN      secret-dbus-generated.c
  GEN      secret-dbus-generated.h
  GEN      libsecret/secret-enum-types.c
  GEN      libsecret/secret-enum-types.h
make  all-recursive
make[1]: Entrando no diretório `/home/saulo/gnome/source/libsecret'
Making all in .
make[2]: Entrando no diretório `/home/saulo/gnome/source/libsecret'
  CC       libsecret_1_la-secret-attributes.lo
  CC       libsecret_1_la-secret-collection.lo
  CC       libsecret_1_la-secret-item.lo
  CC       libsecret_1_la-secret-methods.lo
  CC       libsecret_1_la-secret-password.lo
  CC       libsecret_1_la-secret-prompt.lo
  CC       libsecret_1_la-secret-schema.lo
  CC       libsecret_1_la-secret-schemas.lo
  CC       libsecret_1_la-secret-service.lo
  CC       libsecret_1_la-secret-value.lo
  CC       libsecret_1_la-secret-paths.lo
  CC       libsecret_1_la-secret-session.lo
  CC       libsecret_1_la-secret-util.lo
  CC       libsecret_1_la-secret-dbus-generated.lo
  CC       libsecret_1_la-secret-enum-types.lo
  CC       egg-hex.lo
  CC       egg-secure-memory.lo
  CC       egg-testing.lo
  CC       egg-dh.lo
  CC       egg-hkdf.lo
  CC       egg-libgcrypt.lo
  CCLD     libegg.la
  CCLD     libsecret-1.la
  CCLD     libsecret-testable.la
  CC       mock-service.lo
  CCLD     libmock_service.la
  CC       secret-tool.o
tool/secret-tool.c: In function ‘write_password_stdout’:
tool/secret-tool.c:191:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
   write (1, "\n", 1);
         ^
  CCLD     secret-tool
  CC       test-hex.o
  CCLD     test-hex
  CC       test-secmem.o
  CCLD     test-secmem
  CC       test-hkdf.o
  CCLD     test-hkdf
  CC       test-dh.o
  CCLD     test-dh
  CC       test-attributes.o
  CCLD     test-attributes
  CC       test-value.o
  CCLD     test-value
  CC       test-prompt.o
  CCLD     test-prompt
  CC       test-service.o
  CCLD     test-service
  CC       test-session.o
  CCLD     test-session
  CC       test-paths.o
  CCLD     test-paths
  CC       test-methods.o
  CCLD     test-methods
  CC       test-password.o
  CCLD     test-password
  CC       test-item.o
  CCLD     test-item
  CC       test-collection.o
  CCLD     test-collection
  GISCAN   Secret-1.gir
libsecret/secret-item.c:354: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Type" has been deprecated, please use annotations on the identifier instead:
	 * Type: GLib.HashTable(utf8,utf8)
    ^
libsecret/secret-item.c:355: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Transfer" has been deprecated, please use annotations on the identifier instead:
	 * Transfer: full
    ^
libsecret/secret-password.c:128: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_password_store
   ^
libsecret/secret-password.c:266: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_password_store_sync
   ^
libsecret/secret-password.c:369: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_password_lookup
   ^
libsecret/secret-password.c:616: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_password_lookup_sync
   ^
libsecret/secret-password.c:715: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_password_clear
   ^
libsecret/secret-password.c:823: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_password_clear_sync
   ^
libsecret/secret-schema.c:179: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_schema_new
   ^
  GEN      libsecret-1.deps
 VAPIGEN libsecret-1.vapi
  GISCAN   MockService-0.gir
 VAPIGEN mock-service-0.vapi
  VALAC    test-vala-lang.vala.o
  CCLD     test-vala-lang
  VALAC    test-vala-unstable.vala.o
/home/saulo/gnome/source/libsecret/libsecret/test-vala-unstable.vala.c: In function ‘test_read_alias’:
/home/saulo/gnome/source/libsecret/libsecret/test-vala-unstable.vala.c:37:3: error: unknown type name ‘SecretService’
   SecretService* service = NULL;
   ^
/home/saulo/gnome/source/libsecret/libsecret/test-vala-unstable.vala.c:38:3: error: unknown type name ‘SecretService’
   SecretService* _tmp0_ = NULL;
   ^
/home/saulo/gnome/source/libsecret/libsecret/test-vala-unstable.vala.c:40:3: error: unknown type name ‘SecretService’
   SecretService* _tmp1_ = NULL;
   ^
/home/saulo/gnome/source/libsecret/libsecret/test-vala-unstable.vala.c:43:37: error: ‘SECRET_SERVICE_NONE’ undeclared (first use in this function)
   _tmp0_ = secret_service_get_sync (SECRET_SERVICE_NONE, NULL, &_inner_error_);
                                     ^
/home/saulo/gnome/source/libsecret/libsecret/test-vala-unstable.vala.c:43:37: note: each undeclared identifier is reported only once for each function it appears in
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
make[2]: ** [test-vala-unstable.vala.o] Erro 1
make[2]: Saindo do diretório `/home/saulo/gnome/source/libsecret'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/saulo/gnome/source/libsecret'
make: ** [all] Erro 2
*** Erro durante a fase build de libsecret: ########## Erro ao executar make -j1 *** [1/1]

  [1] Re-executar fase build
  [2] Ignorar erro e continuar para install
  [3] Desistir do módulo
  [4] Iniciar shell
  [5] Recarregar configuração
  [6] Ir para fase "limpar diretório e iniciar novamente"
  [7] Ir para fase "configure"
  [8] Ir para fase "clean"
  [9] Ir para fase
Comment 1 Volker Sobek (weld) 2014-03-04 22:39:51 UTC
I suggested to try with -j1 because of https://bugzilla.gnome.org/show_bug.cgi?id=712766, but it seems to be a different issue.
Comment 2 Saulo Toledo 2014-03-04 22:43:45 UTC
Sorry, I made a mistake since I pasted a wrong command at terminal. So I've done all again and here is the correct paste:


saulo@SauloPC:~/gnome/source/libsecret$ git reset --hard origin/master
HEAD is now at 7d58d2d Makefile.am: Fix typo in last commit
saulo@SauloPC:~/gnome/source/libsecret$ git clean -fdx
Removing .deps/
Removing .libs/
Removing INSTALL
Removing Makefile
Removing Makefile.in
Removing MockService-0.gir
Removing Secret-1.gir
Removing aclocal.m4
Removing autom4te.cache/
Removing build/compile
Removing build/config.guess
Removing build/config.sub
Removing build/depcomp
Removing build/install-sh
Removing build/ltmain.sh
Removing build/m4/gtk-doc.m4
Removing build/m4/intltool.m4
Removing build/m4/libtool.m4
Removing build/m4/ltoptions.m4
Removing build/m4/ltsugar.m4
Removing build/m4/ltversion.m4
Removing build/m4/lt~obsolete.m4
Removing build/missing
Removing config.h
Removing config.h.in
Removing config.log
Removing config.status
Removing configure
Removing docs/reference/libsecret/Makefile
Removing docs/reference/libsecret/Makefile.in
Removing docs/reference/libsecret/version-major.xml
Removing docs/reference/libsecret/version.xml
Removing egg-dh.lo
Removing egg-hex.lo
Removing egg-hkdf.lo
Removing egg-libgcrypt.lo
Removing egg-secure-memory.lo
Removing egg-testing.lo
Removing gtk-doc.make
Removing libegg.la
Removing libmock_service.la
Removing libsecret-1.deps
Removing libsecret-1.la
Removing libsecret-1.vapi
Removing libsecret-testable.la
Removing libsecret/libsecret-unstable.pc
Removing libsecret/libsecret.pc
Removing libsecret/secret-enum-types.c
Removing libsecret/secret-enum-types.h
Removing libsecret_1_la-secret-attributes.lo
Removing libsecret_1_la-secret-collection.lo
Removing libsecret_1_la-secret-dbus-generated.lo
Removing libsecret_1_la-secret-enum-types.lo
Removing libsecret_1_la-secret-item.lo
Removing libsecret_1_la-secret-methods.lo
Removing libsecret_1_la-secret-password.lo
Removing libsecret_1_la-secret-paths.lo
Removing libsecret_1_la-secret-prompt.lo
Removing libsecret_1_la-secret-schema.lo
Removing libsecret_1_la-secret-schemas.lo
Removing libsecret_1_la-secret-service.lo
Removing libsecret_1_la-secret-session.lo
Removing libsecret_1_la-secret-util.lo
Removing libsecret_1_la-secret-value.lo
Removing libtool
Removing mock-service-0.vapi
Removing mock-service.lo
Removing po/Makefile
Removing po/Makefile.in
Removing po/Makefile.in.in
Removing po/POTFILES
Removing po/stamp-it
Removing secret-dbus-generated.c
Removing secret-dbus-generated.h
Removing secret-tool
Removing secret-tool.o
Removing stamp-h1
Removing temp-dbus-generated.c
Removing temp-dbus-generated.h
Removing test-attributes
Removing test-attributes.o
Removing test-collection
Removing test-collection.o
Removing test-dh
Removing test-dh.o
Removing test-hex
Removing test-hex.o
Removing test-hkdf
Removing test-hkdf.o
Removing test-item
Removing test-item.o
Removing test-methods
Removing test-methods.o
Removing test-password
Removing test-password.o
Removing test-paths
Removing test-paths.o
Removing test-prompt
Removing test-prompt.o
Removing test-secmem
Removing test-secmem.o
Removing test-service
Removing test-service.o
Removing test-session
Removing test-session.o
Removing test-vala-lang
Removing test-vala-lang.vala.o
Removing test-value
Removing test-value.o
saulo@SauloPC:~/gnome/source/libsecret$ jhbuild buildone libsecret
*** Obtendo libsecret *** [1/1]
git remote set-url origin git://git.gnome.org/libsecret
git remote update origin
Fetching origin
git pull --rebase
Current branch master is up to date.
*** Configurando libsecret *** [1/1]
./autogen.sh --prefix /home/saulo/gnome/install --libdir '/home/saulo/gnome/install/lib64'  --disable-static --disable-gtk-doc 
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build'.
libtoolize: linking file `build/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `build/m4'.
libtoolize: linking file `build/m4/libtool.m4'
libtoolize: linking file `build/m4/ltoptions.m4'
libtoolize: linking file `build/m4/ltsugar.m4'
libtoolize: linking file `build/m4/ltversion.m4'
libtoolize: linking file `build/m4/lt~obsolete.m4'
configure.ac:63: installing 'build/compile'
configure.ac:67: installing 'build/config.guess'
configure.ac:67: installing 'build/config.sub'
configure.ac:49: installing 'build/install-sh'
configure.ac:49: installing 'build/missing'
Makefile.am: installing 'build/depcomp'
checking for a BSD-compatible install... /usr/bin/install-check
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '29' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether build environment is sane... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for gcc... 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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
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... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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 whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.14.2
checking for XML::Parser... ok
checking for pkg-config... /usr/bin/pkg-config
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for mlock... yes
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for gtk-doc... yes
checking for gtkdoc-check... gtkdoc-check.test
checking for gtkdoc-check... /home/saulo/gnome/install/bin/gtkdoc-check
checking for gtkdoc-rebase... /home/saulo/gnome/install/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /home/saulo/gnome/install/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for GTKDOC_DEPS... yes
checking for gobject-introspection... yes
checking for glib-mkenums... /home/saulo/gnome/install/bin/glib-mkenums
checking for xsltproc... /usr/bin/xsltproc
checking pkg-config is at least version 0.9.0... yes
checking for vapigen... yes
checking for valac... /home/saulo/gnome/install/bin/valac
checking for libgcrypt-config... /usr/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.2.2... yes (1.5.0)
checking LIBGCRYPT API version... okay
configure: WARNING:
***
*** The config script /usr/bin/libgcrypt-config was
*** built for x86_64-pc-linux-gnu and thus may not match the
*** used host x86_64-unknown-linux-gnu.
*** You may want to use the configure option --with-libgcrypt-prefix
*** to specify a matching config script.
***
checking whether gcc understands -Wmissing-include-dirs... yes
checking whether gcc understands -Wundef... yes
checking build strict... no
checking for debug mode... default
checking whether to build with gcov testing... no
checking that generated files are newer than configure... done
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/reference/libsecret/Makefile
config.status: creating docs/reference/libsecret/version.xml
config.status: creating docs/reference/libsecret/version-major.xml
config.status: creating po/Makefile.in
config.status: creating po/Makefile
config.status: creating libsecret/libsecret.pc
config.status: creating libsecret/libsecret-unstable.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands

CFLAGS: -g -O2 -pthread -I/home/saulo/gnome/install/include/glib-2.0 -I/home/saulo/gnome/install/lib64/glib-2.0/include -I/home/saulo/gnome/install/include/gio-unix-2.0/   -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_38 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_38 		-Wall -Wmissing-declarations 		-Wmissing-prototypes -Wnested-externs -Wpointer-arith 		-Wdeclaration-after-statement -Wformat=2 -Winit-self 		-Waggregate-return -Wmissing-include-dirs -Wundef -Wno-error -g

OPTIONS:
  libgcrypt:     yes
  vala:          yes
  Debug:         default
  Coverage:      no
  Manual Page:   yes


Now type 'make' to compile libsecret.
*** Compilando libsecret *** [1/1]
make -j1
  GEN      temp-dbus-generated.c
  GEN      secret-dbus-generated.c
  GEN      secret-dbus-generated.h
  GEN      libsecret/secret-enum-types.c
  GEN      libsecret/secret-enum-types.h
make  all-recursive
make[1]: Entrando no diretório `/home/saulo/gnome/source/libsecret'
Making all in .
make[2]: Entrando no diretório `/home/saulo/gnome/source/libsecret'
  CC       libsecret_1_la-secret-attributes.lo
  CC       libsecret_1_la-secret-collection.lo
  CC       libsecret_1_la-secret-item.lo
  CC       libsecret_1_la-secret-methods.lo
  CC       libsecret_1_la-secret-password.lo
  CC       libsecret_1_la-secret-prompt.lo
  CC       libsecret_1_la-secret-schema.lo
  CC       libsecret_1_la-secret-schemas.lo
  CC       libsecret_1_la-secret-service.lo
  CC       libsecret_1_la-secret-value.lo
  CC       libsecret_1_la-secret-paths.lo
  CC       libsecret_1_la-secret-session.lo
  CC       libsecret_1_la-secret-util.lo
  CC       libsecret_1_la-secret-dbus-generated.lo
  CC       libsecret_1_la-secret-enum-types.lo
  CC       egg-hex.lo
  CC       egg-secure-memory.lo
  CC       egg-testing.lo
  CC       egg-dh.lo
  CC       egg-hkdf.lo
  CC       egg-libgcrypt.lo
  CCLD     libegg.la
  CCLD     libsecret-1.la
  CCLD     libsecret-testable.la
  CC       mock-service.lo
  CCLD     libmock_service.la
  CC       secret-tool.o
tool/secret-tool.c: In function ‘write_password_stdout’:
tool/secret-tool.c:191:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
   write (1, "\n", 1);
         ^
  CCLD     secret-tool
  CC       test-hex.o
  CCLD     test-hex
  CC       test-secmem.o
  CCLD     test-secmem
  CC       test-hkdf.o
  CCLD     test-hkdf
  CC       test-dh.o
  CCLD     test-dh
  CC       test-attributes.o
  CCLD     test-attributes
  CC       test-value.o
  CCLD     test-value
  CC       test-prompt.o
  CCLD     test-prompt
  CC       test-service.o
  CCLD     test-service
  CC       test-session.o
  CCLD     test-session
  CC       test-paths.o
  CCLD     test-paths
  CC       test-methods.o
  CCLD     test-methods
  CC       test-password.o
  CCLD     test-password
  CC       test-item.o
  CCLD     test-item
  CC       test-collection.o
  CCLD     test-collection
  GISCAN   Secret-1.gir
libsecret/secret-item.c:354: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Type" has been deprecated, please use annotations on the identifier instead:
	 * Type: GLib.HashTable(utf8,utf8)
    ^
libsecret/secret-item.c:355: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Transfer" has been deprecated, please use annotations on the identifier instead:
	 * Transfer: full
    ^
libsecret/secret-password.c:128: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_password_store
   ^
libsecret/secret-password.c:266: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_password_store_sync
   ^
libsecret/secret-password.c:369: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_password_lookup
   ^
libsecret/secret-password.c:616: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_password_lookup_sync
   ^
libsecret/secret-password.c:715: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_password_clear
   ^
libsecret/secret-password.c:823: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_password_clear_sync
   ^
libsecret/secret-schema.c:179: Warning: Secret: GObject-Introspection specific GTK-Doc tag "Rename to" has been deprecated, please use annotations on the identifier instead:
 * Rename to: secret_schema_new
   ^
  GEN      libsecret-1.deps
 VAPIGEN libsecret-1.vapi
  GISCAN   MockService-0.gir
 VAPIGEN mock-service-0.vapi
  VALAC    test-vala-lang.vala.o
  CCLD     test-vala-lang
  VALAC    test-vala-unstable.vala.o
/home/saulo/gnome/source/libsecret/libsecret/test-vala-unstable.vala.c: In function ‘test_read_alias’:
/home/saulo/gnome/source/libsecret/libsecret/test-vala-unstable.vala.c:37:3: error: unknown type name ‘SecretService’
   SecretService* service = NULL;
   ^
/home/saulo/gnome/source/libsecret/libsecret/test-vala-unstable.vala.c:38:3: error: unknown type name ‘SecretService’
   SecretService* _tmp0_ = NULL;
   ^
/home/saulo/gnome/source/libsecret/libsecret/test-vala-unstable.vala.c:40:3: error: unknown type name ‘SecretService’
   SecretService* _tmp1_ = NULL;
   ^
/home/saulo/gnome/source/libsecret/libsecret/test-vala-unstable.vala.c:43:37: error: ‘SECRET_SERVICE_NONE’ undeclared (first use in this function)
   _tmp0_ = secret_service_get_sync (SECRET_SERVICE_NONE, NULL, &_inner_error_);
                                     ^
/home/saulo/gnome/source/libsecret/libsecret/test-vala-unstable.vala.c:43:37: note: each undeclared identifier is reported only once for each function it appears in
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
make[2]: ** [test-vala-unstable.vala.o] Erro 1
make[2]: Saindo do diretório `/home/saulo/gnome/source/libsecret'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/saulo/gnome/source/libsecret'
make: ** [all] Erro 2
*** Erro durante a fase build de libsecret: ########## Erro ao executar make -j1 *** [1/1]

  [1] Re-executar fase build
  [2] Ignorar erro e continuar para install
  [3] Desistir do módulo
  [4] Iniciar shell
  [5] Recarregar configuração
  [6] Ir para fase "limpar diretório e iniciar novamente"
  [7] Ir para fase "configure"
  [8] Ir para fase "clean"
  [9] Ir para fase "distclean"
escolha:
Comment 3 Saulo Toledo 2014-03-04 23:24:02 UTC
I don't know if this can help, but:

saulo@SauloPC:~/gnome/source/libsecret/libsecret$ valac test-vala-unstable.vala 
test-vala-unstable.vala:14.17-14.22: error: The name `Secret' does not exist in the context of `test_read_alias'
		var service = Secret.Service.get_sync(Secret.ServiceFlags.NONE);
		              ^^^^^^
test-vala-unstable.vala:14.7-14.65: error: var declaration not allowed with non-typed initializer
		var service = Secret.Service.get_sync(Secret.ServiceFlags.NONE);
		    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test-vala-unstable.vala:15.14-15.20: error: The name `service' does not exist in the context of `test_read_alias'
		var path = service.read_alias_dbus_path_sync("default", null);
		           ^^^^^^^
test-vala-unstable.vala:15.7-15.63: error: var declaration not allowed with non-typed initializer
		var path = service.read_alias_dbus_path_sync("default", null);
		    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test-vala-unstable.vala:16.16-16.19: error: The name `path' does not exist in the context of `test_read_alias'
		GLib.assert (path != null);
		             ^^^^
test-vala-unstable.vala:26.3-26.13: error: The name `MockService' does not exist in the context of `main'
		MockService.start ("mock-service-normal.py");
		^^^^^^^^^^^
test-vala-unstable.vala:34.2-34.7: error: The name `Secret' does not exist in the context of `main'
	Secret.Service.disconnect ();
	^^^^^^
test-vala-unstable.vala:35.2-35.12: error: The name `MockService' does not exist in the context of `main'
	MockService.stop ();
	^^^^^^^^^^^
Compilation failed: 8 error(s), 0 warning(s)
Comment 4 Stef Walter 2014-03-05 12:16:32 UTC
Pushed a bunch more fixes to libsecret. Does that fix it?

If not, could you try building with valac git master, and see if that does the trick?
Comment 5 Saulo Toledo 2014-03-05 21:19:44 UTC
Thank you for your attention Stef.
I tried and the problem persists, I'll attach the output in the file "jhbuild_new_compile.txt"

./configure and make at ~/gnome/source/libsecret dir works and allow me to compile the other files at jhbuild. The output is at attach "make_install_at_dir.txt"

But the manual make give me another error, attached at file "jhbuild_buildone_after_manual_make.txt". I just use the option 2 ("Ignore the error and continue to the next module") and Webkit and others compile correctly.


I installed valac with "jhbuild build valac" and used it, and I got the following output:

saulo@SauloPC:~/gnome/source/libsecret/libsecret$ /home/saulo/gnome/source/vala/compiler/valac test-vala-unstable.vala 
test-vala-unstable.vala:14.17-14.22: error: The name `Secret' does not exist in the context of `test_read_alias'
		var service = Secret.Service.get_sync(Secret.ServiceFlags.NONE);
		              ^^^^^^
test-vala-unstable.vala:14.7-14.65: error: var declaration not allowed with non-typed initializer
		var service = Secret.Service.get_sync(Secret.ServiceFlags.NONE);
		    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test-vala-unstable.vala:15.14-15.20: error: The name `service' does not exist in the context of `test_read_alias'
		var path = service.read_alias_dbus_path_sync("default", null);
		           ^^^^^^^
test-vala-unstable.vala:15.7-15.63: error: var declaration not allowed with non-typed initializer
		var path = service.read_alias_dbus_path_sync("default", null);
		    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test-vala-unstable.vala:16.16-16.19: error: The name `path' does not exist in the context of `test_read_alias'
		GLib.assert (path != null);
		             ^^^^
test-vala-unstable.vala:26.3-26.13: error: The name `MockService' does not exist in the context of `main'
		MockService.start ("mock-service-normal.py");
		^^^^^^^^^^^
test-vala-unstable.vala:34.2-34.7: error: The name `Secret' does not exist in the context of `main'
	Secret.Service.disconnect ();
	^^^^^^
test-vala-unstable.vala:35.2-35.12: error: The name `MockService' does not exist in the context of `main'
	MockService.stop ();
	^^^^^^^^^^^
Compilation failed: 8 error(s), 0 warning(s)
Comment 6 Saulo Toledo 2014-03-05 21:20:36 UTC
Created attachment 271038 [details]
New build after update libsecret
Comment 7 Saulo Toledo 2014-03-05 21:21:26 UTC
Created attachment 271039 [details]
Manual configure/make (make_install_at_dir.txt)
Comment 8 Saulo Toledo 2014-03-05 21:22:15 UTC
Created attachment 271040 [details]
New jhbuild buildone libsecret (jhbuild_buildone_after_manual_make.txt)
Comment 9 Evan Nemerson 2014-03-05 23:07:27 UTC
Created attachment 271048 [details] [review]
Makefile.am: use autotools' built-in Vala support

Can anyone reproduce this?  I've been unable to on several different systems, with different versions of Vala, inside and outside of jhbuild.

What version of valac is running inside of jhbuild (`jhbuild run valac --version`)?

Attachment #271039 [details] would be much more interesting with make V=1, could you please run make V=1 from inside jhbuild (`jhbuild run make V=1`)?

Finally, libsecret's build system is a bit weird since it circumvents the Vala support built into autotools.  This patch will switch it to something a bit more standard.  Unfortunately I haven't been able to make sure it passes make distcheck because make check always stalls here (at either /service/get-async or /service/get-more-async).  Also, I don't see why the existing stuff wouldn't work (in fact, it does work here) so I'm not sure if this makes things better or worse.
Comment 10 Stef Walter 2014-03-06 05:21:58 UTC
(In reply to comment #9)
> Finally, libsecret's build system is a bit weird since it circumvents the Vala
> support built into autotools.  This patch will switch it to something a bit
> more standard.  Unfortunately I haven't been able to make sure it passes make
> distcheck because make check always stalls here (at either /service/get-async
> or /service/get-more-async).  Also, I don't see why the existing stuff wouldn't
> work (in fact, it does work here) so I'm not sure if this makes things better
> or worse.

The Vala support in autotools is really really hacky. Among other things, it explicitly writes to $(srcdir). It doesn't respect 'make clean'...

But most importantly it doesn't actually constitute a test of the VAPI. The C files are generated and/or distributed, and the .vapi and .vala files are never used again. Exactly what you don't want from a unit test.
Comment 11 Evan Nemerson 2014-03-06 07:12:43 UTC
(In reply to comment #10)
> The Vala support in autotools is really really hacky. Among other things, it
> explicitly writes to $(srcdir). It doesn't respect 'make clean'...

I agree with the sentiment, though my description of would be less generous (and more colorful) than "really really hacky".

> But most importantly it doesn't actually constitute a test of the VAPI. The C
> files are generated and/or distributed, and the .vapi and .vala files are never
> used again. Exactly what you don't want from a unit test.

Ah, interesting point.  Distributing the generated C is by far my biggest complaint about the vala support in autotools, but I hadn't really thought about how it messes with unit testing :(
Comment 12 Stef Walter 2014-03-06 11:50:22 UTC
Created attachment 271085 [details] [review]
Makefile.am: Don't build tests during normal builds

This makes things build faster, and also fixes issues
I can't reproduce with vala and gir.
Comment 13 Stef Walter 2014-03-06 11:51:44 UTC
Comment on attachment 271085 [details] [review]
Makefile.am: Don't build tests during normal builds

Attachment 271085 [details] pushed as c282339 - Makefile.am: Don't build tests during normal builds
Comment 14 Saulo Toledo 2014-03-06 12:30:50 UTC
I reseted the repository, applied the last path here and tried again, and worked!

Should I try run `jhbuild run make V=1` yet? If yes, how can I do this time, since I've changed the repository and I don't have the "configure" anymore?

Some more information:

saulo@SauloPC:~$ jhbuild run valac --version
Vala 0.23.3.6-62e8
saulo@SauloPC:~$ valac --version
Vala 0.22.1

I'm really glad it's working now!
Comment 15 Saulo Toledo 2014-03-06 12:33:06 UTC
Created attachment 271092 [details]
Working compilation

I forgot to attach last time. This is the proccess I tried again.
Comment 16 Saulo Toledo 2014-03-06 12:36:31 UTC
Ops, I mean "patch", not "path".
Comment 17 Dominic 2014-04-03 13:51:05 UTC
For what it's worth, I could reproduce this. The cause is that valac (tried with 0.22) calls cc as 

cc -c 'libsecret/test-vala-unstable.c' -pthread -I/usr/include/libsecret-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include '-w' '-I.' '-I.' '-I./libsecret'

causing the already installed (old, libsecret<0.18) libsecret/secret.h to be pulled in, first.
Comment 18 GNOME Infrastructure Team 2018-09-21 16:24:31 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libsecret/issues/4.