Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile GPaste on Ubuntu 20.04.2 LTS. #370

Open
hongyi-zhao opened this issue Oct 12, 2021 · 4 comments
Open

Failed to compile GPaste on Ubuntu 20.04.2 LTS. #370

hongyi-zhao opened this issue Oct 12, 2021 · 4 comments

Comments

@hongyi-zhao
Copy link

$ git log -1
commit 11fbb217b66dbf5d7d1396c41574bfd8b3fe76c0 (HEAD -> master, origin/master, origin/HEAD)
Author: Rafael Fontenelle <rafaelff@gnome.org>
Date:   Sun Oct 3 01:17:23 2021 +0000

    Translated using Weblate (Portuguese (Brazil))
    
    Currently translated at 77.9% (159 of 204 strings)
    
    Translation: GPaste/GPaste
    Translate-URL: https://hosted.weblate.org/projects/gpaste/gpaste/pt_BR/

$ ./autogen.sh 
src/vapi.mk:35: error: ENABLE_VAPIGEN does not appear in AM_CONDITIONAL
Makefile.am:67:   'src/vapi.mk' included from here
autoreconf: automake failed with exit status: 1

$ autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
Copying file ABOUT-NLS
Creating directory build-aux
Copying file build-aux/config.rpath
Copying file m4/codeset.m4
Copying file m4/extern-inline.m4
Copying file m4/fcntl-o.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.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/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/threadlib.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
autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS}
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, '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'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:89: installing 'build-aux/ar-lib'
configure.ac:87: installing 'build-aux/compile'
configure.ac:91: installing 'build-aux/config.guess'
configure.ac:91: installing 'build-aux/config.sub'
configure.ac:93: installing 'build-aux/install-sh'
configure.ac:93: installing 'build-aux/missing'
src/vapi.mk:35: error: ENABLE_VAPIGEN does not appear in AM_CONDITIONAL
Makefile.am:67:   'src/vapi.mk' included from here
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
autoreconf: automake failed with exit status: 1

Regards
HZ

@jokerekv2
Copy link

@hongyi-zhao I have the same issue...

@AlonsoMCarlos
Copy link

you need install the packages "valac" and "gobject-introspection"

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Oct 30, 2021

This problem has been fixed by the following packages:

$ sudo apt install valac gobject-introspection

But now I meet the following problem:

$ ./configure
[...]

checking for GLIB... no
configure: error: Package requirements (glib-2.0 >= 2.70.0 gobject-2.0 >= 2.70.0 gio-2.0 >= 2.70.0) were not met:

Requested 'glib-2.0 >= 2.70.0' but version of GLib is 2.64.6
Requested 'gobject-2.0 >= 2.70.0' but version of GObject is 2.64.6
Requested 'gio-2.0 >= 2.70.0' but version of GIO is 2.64.6

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I also tried the following, but still failed:

$ sudo apt build-dep gpaste 
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 builddeps:gpaste : Depends: libclutter-1.0-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

@Rivierg
Copy link

Rivierg commented Nov 26, 2021

This problem has been fixed by the following packages:

$ sudo apt install valac gobject-introspection

But now I meet the following problem:

$ ./configure
[...]

checking for GLIB... no
configure: error: Package requirements (glib-2.0 >= 2.70.0 gobject-2.0 >= 2.70.0 gio-2.0 >= 2.70.0) were not met:

Requested 'glib-2.0 >= 2.70.0' but version of GLib is 2.64.6
Requested 'gobject-2.0 >= 2.70.0' but version of GObject is 2.64.6
Requested 'gio-2.0 >= 2.70.0' but version of GIO is 2.64.6

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I also tried the following, but still failed:

$ sudo apt build-dep gpaste 
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 builddeps:gpaste : Depends: libclutter-1.0-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I confirm that I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants