[SOLVED] Ошибка при сборке gentoolkit (Первый раз такую вижу..)

Sabayon, Calculate, Funtoo, Exherbo

Модератор: /dev/random

Аватара пользователя
gard
Сообщения: 215

[SOLVED] Ошибка при сборке gentoolkit

Сообщение gard »

Здравствуйте! Собирал xfce4 с среза XOR и вот что выдало:

Код: Выделить всё

Calculating dependencies   ... done!

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 64) sys-auth/consolekit-0.2.3
 * ConsoleKit-0.2.3.tar.gz RMD160 SHA1 SHA256 size;-) ...               [ ok ]
 * checking ebuild checksums;-) ...                                     [ ok ]
 * checking auxfile checksums;-) ...                                    [ ok ]
 * checking miscfile checksums;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking ConsoleKit-0.2.3.tar.gz to /var/tmp/portage/sys-auth/consolekit-0.2.3/work
>>> Source unpacked in /var/tmp/portage/sys-auth/consolekit-0.2.3/work
>>> Compiling source in /var/tmp/portage/sys-auth/consolekit-0.2.3/work/ConsoleKit-0.2.3 ...
 * econf: updating ConsoleKit-0.2.3/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating ConsoleKit-0.2.3/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-debug --enable-pam-module --with-pam-module-dir=//lib64/security --with-pid-file=/var/run/consolekit.pid --with-dbus-services=/usr/share/dbus-1/services/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3
checking for library containing strerror... none required
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) gcc3
checking how to run the C preprocessor... x86_64-pc-linux-gnu-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 build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-g++... gcc3
checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -E
checking for x86_64-pc-linux-gnu-g77... no
checking for x86_64-pc-linux-gnu-f77... no
checking for x86_64-pc-linux-gnu-xlf... no
checking for x86_64-pc-linux-gnu-frt... no
checking for x86_64-pc-linux-gnu-pgf77... no
checking for x86_64-pc-linux-gnu-cf77... no
checking for x86_64-pc-linux-gnu-fort77... no
checking for x86_64-pc-linux-gnu-fl32... no
checking for x86_64-pc-linux-gnu-af77... no
checking for x86_64-pc-linux-gnu-f90... no
checking for x86_64-pc-linux-gnu-xlf90... no
checking for x86_64-pc-linux-gnu-pgf90... no
checking for x86_64-pc-linux-gnu-pghpf... no
checking for x86_64-pc-linux-gnu-epcf90... no
checking for x86_64-pc-linux-gnu-gfortran... x86_64-pc-linux-gnu-gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether x86_64-pc-linux-gnu-gfortran accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking for objdir... .libs
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/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
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by x86_64-pc-linux-gnu-g++... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for x86_64-pc-linux-gnu-g++ option to produce PIC... -fPIC
checking if x86_64-pc-linux-gnu-g++ PIC flag -fPIC works... yes
checking if x86_64-pc-linux-gnu-g++ static flag -static works... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for x86_64-pc-linux-gnu-gfortran option to produce PIC... -fPIC
checking if x86_64-pc-linux-gnu-gfortran PIC flag -fPIC works... yes
checking if x86_64-pc-linux-gnu-gfortran static flag -static works... yes
checking if x86_64-pc-linux-gnu-gfortran supports -c -o file.o... yes
checking whether the x86_64-pc-linux-gnu-gfortran linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) yes
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... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
./configure: line 22832: ./po/POTFILES.in: No such file or directory
checking for unistd.h... (cached) yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking for getpeerucred... no
checking for getpeereid... no
checking for uid_t in sys/types.h... yes
checking for x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for CONSOLE_KIT... yes
checking for LIBDBUS... yes
checking for TOOLS... yes
checking for glib-genmarshal... /usr/bin/glib-genmarshal
checking what warning flags to pass to the C compiler... -Wall -Wmissing-prototypes
checking what language compliance flags to pass to the C compiler...
Your dbus version is 1,2,3.
checking for pam_getenv in -lpam... yes
checking security/pam_modutil.h usability... yes
checking security/pam_modutil.h presence... yes
checking for security/pam_modutil.h... yes
checking security/pam_ext.h usability... yes
checking security/pam_ext.h presence... yes
checking for security/pam_ext.h... yes
checking for pam_syslog in -lpam... yes
checking for xmlto... no
checking whether to build DocBook documentation... yes
checking for inotify_init... yes
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking for more warnings... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tools/Makefile
config.status: creating tools/linux/Makefile
config.status: creating data/Makefile
config.status: creating doc/Makefile
config.status: creating doc/ConsoleKit.xml
config.status: creating libck-connector/Makefile
config.status: creating libck-connector/ck-connector.pc
config.status: creating pam-ck-connector/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands

                    ConsoleKit 0.2.3
                    ========================

    prefix:                   /usr
    exec_prefix:              ${prefix}
        libdir:                   /usr/lib64
        bindir:                   ${exec_prefix}/bin
        sbindir:                  ${exec_prefix}/sbin
        sysconfdir:               /etc
        localstatedir:            /var/lib
        datadir:                  /usr/share
    source code location:      .
    compiler:          x86_64-pc-linux-gnu-gcc
    cflags:                  -march=k8-sse3 -O2 -pipe
        Base libs:                -pthread -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0
        Tools libs:               -lX11 -lglib-2.0
        Maintainer mode:          no

        dbus-1 system.d dir:      /etc/dbus-1/system.d
        Build backend:            linux
        PAM module dir:           //lib64/security
        Build PAM module:         yes
        Build docs:               no

make -j3 -j1
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/sys-auth/consolekit-0.2.3/work/ConsoleKit-0.2.3'
Making all in src
make[2]: Entering directory `/var/tmp/portage/sys-auth/consolekit-0.2.3/work/ConsoleKit-0.2.3/src'
make  all-recursive
make[3]: Entering directory `/var/tmp/portage/sys-auth/consolekit-0.2.3/work/ConsoleKit-0.2.3/src'
make[4]: Entering directory `/var/tmp/portage/sys-auth/consolekit-0.2.3/work/ConsoleKit-0.2.3/src'
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -pthread -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -DPREFIX=\""/usr"\" -DBINDIR=\""/usr/bin"\" -DLIBDIR=\""/usr/lib64"\" -DLIBEXECDIR=\""/usr/libexec"\" -DDATADIR=\""/usr/share"\" -DSYSCONFDIR=\""/etc"\" -DCONSOLE_KIT_PID_FILE=\""/var/run/consolekit.pid"\" -Wall -Wmissing-prototypes  -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DDBUS_VERSION_MAJOR=1 -DDBUS_VERSION_MINOR=2 -DDBUS_VERSION_MICRO=3     -march=k8-sse3 -O2 -pipe -MT ck-sysdeps-unix.lo -MD -MP -MF ".deps/ck-sysdeps-unix.Tpo" -c -o ck-sysdeps-unix.lo ck-sysdeps-unix.c; \
    then mv -f ".deps/ck-sysdeps-unix.Tpo" ".deps/ck-sysdeps-unix.Plo"; else rm -f ".deps/ck-sysdeps-unix.Tpo"; exit 1; fi
mkdir .libs
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -pthread -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPREFIX=\"/usr\" -DBINDIR=\"/usr/bin\" -DLIBDIR=\"/usr/lib64\" -DLIBEXECDIR=\"/usr/libexec\" -DDATADIR=\"/usr/share\" -DSYSCONFDIR=\"/etc\" -DCONSOLE_KIT_PID_FILE=\"/var/run/consolekit.pid\" -Wall -Wmissing-prototypes -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DDBUS_VERSION_MAJOR=1 -DDBUS_VERSION_MINOR=2 -DDBUS_VERSION_MICRO=3 -march=k8-sse3 -O2 -pipe -MT ck-sysdeps-unix.lo -MD -MP -MF .deps/ck-sysdeps-unix.Tpo -c ck-sysdeps-unix.c  -fPIC -DPIC -o .libs/ck-sysdeps-unix.o
ck-sysdeps-unix.c: In function 'ck_get_socket_peer_credentials':
ck-sysdeps-unix.c:69: error: storage size of 'cr' isn't known
ck-sysdeps-unix.c:69: warning: unused variable 'cr'
make[4]: *** [ck-sysdeps-unix.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-auth/consolekit-0.2.3/work/ConsoleKit-0.2.3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-auth/consolekit-0.2.3/work/ConsoleKit-0.2.3/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-auth/consolekit-0.2.3/work/ConsoleKit-0.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-auth/consolekit-0.2.3/work/ConsoleKit-0.2.3'
make: *** [all] Error 2

 ERROR: sys-auth/consolekit-0.2.3 failed.
  Call stack:
                ebuild.sh, line   49:  Called src_compile
              environment, line 2737:  Called die
  The specific snippet of code:
        emake || die "emake failed"
   The die message:
    emake failed

  If you need support, post the topmost build error, and the call stack if relevant.
  A complete build log is located at '/var/tmp/portage/sys-auth/consolekit-0.2.3/temp/build.log'.
  The ebuild environment file is located at '/var/tmp/portage/sys-auth/consolekit-0.2.3/temp/environment'.


>>> Failed to emerge sys-auth/consolekit-0.2.3, Log file:

>>>  '/var/tmp/portage/sys-auth/consolekit-0.2.3/temp/build.log'

 * Messages for package sys-auth/consolekit-0.2.3:


Что за такая ошибка стека? оО Собираю под x86_64..
Изображение Contacts: gard.area51@jabber.ru/org .. more: http://gardarea51.wordpress.com
Спасибо сказали:
Аватара пользователя
gard
Сообщения: 215

Re: [SOLVED] Ошибка при сборке gentoolkit

Сообщение gard »

Кажется нашел ответ.. будем пробовать..
Изображение Contacts: gard.area51@jabber.ru/org .. more: http://gardarea51.wordpress.com
Спасибо сказали:
Аватара пользователя
gard
Сообщения: 215

Re: [SOLVED] Ошибка при сборке gentoolkit

Сообщение gard »

Итак решение из bugzilla:
Находим ебилд, у меня был /usr/portage/sys-aux/consolekit/consolekit-0.2.3.ebuild, могу ошибиться в sys-aux, в любом случае emerge --search спасет.
Правим его.. в начале добавляем после inherit фразу flag-o-matic, потом в секции src_compile() добавляем строку append-flags -D_GNU_SOURCE. Этим мы изменим размер ебилда, поэтому чтобы он начал нормально.. делаем:
ebuild /usr/portage/sys-aux/consolekit/consolekit-0.2.3.ebuild manifest

За сим все.. нефиксенный ебилд собирается на ура.
Изображение Contacts: gard.area51@jabber.ru/org .. more: http://gardarea51.wordpress.com
Спасибо сказали: