LINUX.ORG.RU

Сообщения Kadi

 

[!ждем_ебилдов] mplayer-vaapi-git

Поскольку mplayer-vaapi из оверлея у меня почему-то перестал собираться (после правки ебилда из stuff, там ссылка сменилась)

# emerge -av mplayer-vaapi
[ebuild   R    ] media-video/mplayer-vaapi-20110127  0 kB [1]
 [1] /usr/local/portage

/usr/include/bits/stdio2.h:65:3: warning: call to __builtin___snprintf_chk will always overflow destination buffer [enabled by default]
cc -MD -MP -O2 -pipe -march=btver1 -Wundef  -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -O2 -pipe -march=btver1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I. -Iffmpeg  -D_REENTRANT   -D_REENTRANT     -I/usr/include/freetype2   -DFF_API_MAX_STREAMS=0 -I/usr/include/dirac   -I/usr/include/schroedinger-1.0 -I/usr/include/orc-0.4   -c -o libmpcodecs/vd_realvid.o libmpcodecs/vd_realvid.c
cc -MD -MP -O2 -pipe -march=btver1 -Wundef  -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -O2 -pipe -march=btver1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I. -Iffmpeg  -D_REENTRANT   -D_REENTRANT     -I/usr/include/freetype2   -DFF_API_MAX_STREAMS=0 -I/usr/include/dirac   -I/usr/include/schroedinger-1.0 -I/usr/include/orc-0.4   -c -o libmpcodecs/ad_speex.o libmpcodecs/ad_speex.c
libmpcodecs/vd_mpng.c: In function 'pngReadFN':
libmpcodecs/vd_mpng.c:77:19: error: dereferencing pointer to incomplete type
libmpcodecs/vd_mpng.c: In function 'decode':
libmpcodecs/vd_mpng.c:114:14: error: dereferencing pointer to incomplete type
libmpcodecs/vd_mpng.c:131:68: error: dereferencing pointer to incomplete type
make: *** [libmpcodecs/vd_mpng.o] Ошибка 1
make: *** Ожидание завершения заданий...
>>> Source compiled.
>>> Test phase [not enabled]: media-video/mplayer-vaapi-20110127

>>> Install mplayer-vaapi-20110127 into /var/tmp/portage/media-video/mplayer-vaapi-20110127/image/ category media-video
mv: не удалось выполнить stat для «mplayer-vaapi/mplayer»: Нет такого файла или каталога
!!! dobin: mplayer-vaapi/mplayer-vaapi does not exist
dobin failed
>>> Completed installing mplayer-vaapi-20110127 into /var/tmp/portage/media-video/mplayer-vaapi-20110127/image/

 * QA Notice: file does not exist:
 * 
 *      dobin: mplayer-vaapi/mplayer-vaapi does not exist

 * QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
 * /usr/include/bits/stdio2.h:65:3: warning: call to __builtin___snprintf_chk will always overflow destination buffer [enabled by default]

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/

>>> Installing (1 of 1) media-video/mplayer-vaapi-20110127

хотя при этом пакет чудом устанавливается, решил запилить плеер из гита. Собрал отдельно плеер вручную - собрался без ошибок.

Пытаюсь написать ебилд:

# cat /usr/local/portage/media-video/mplayer-vaapi/mplayer-vaapi-9999.ebuild

inherit git-2
 
DESCRIPTION="mplayer with patches add VA API support from git"
HOMEPAGE="http://gitorious.org/vaapi/mplayer"
EGIT_REPO_URI="git://gitorious.org/vaapi/mplayer.git"
EGIT_STORAGE_DIR="${DISTDIR}/egit-src/${P}"
  
LICENSE=""
SLOT="0"
KEYWORDS=""
IUSE=""
   
DEPEND="x11-libs/libva
|| ( x11-libs/xvba-video x11-libs/vdpau-video )
"
RDEPEND="${DEPEND}"

src_unpack() {
        git-2_src_unpack
}

src_install() {
        mv ${PN}/mplayer ${PN}/mplayer-vaapi
        into /usr/local/
        dobin ${PN}/mplayer-vaapi
}

но сборка фейлится

# ebuild /usr/local/portage/media-video/mplayer-vaapi/mplayer-vaapi-9999.ebuild compile
 * checking ebuild checksums ;-) ...                                                                                                                                                     [ ok ]
>>> Unpacking source...
Cloning into bare repository /usr/portage/distfiles/egit-src/mplayer.git...
remote: Counting objects: 36619, done.
remote: Compressing objects: 100% (9603/9603), done.
remote: Total 36619 (delta 27253), reused 36015 (delta 26651)
Receiving objects: 100% (36619/36619), 23.04 MiB | 882 KiB/s, done.
Resolving deltas: 100% (27253/27253), done.
GIT NEW clone -->
   repository:               git://gitorious.org/vaapi/mplayer.git
   at the commit:            d924b0781e57ebfda774941c734a57a75c81aa4b
   branch:                   master
   storage directory:        "/usr/portage/distfiles/egit-src/mplayer.git"
   checkout type:            bare repository
Cloning into /var/tmp/portage/media-video/mplayer-vaapi-9999/work/mplayer-vaapi-9999...
done.
Branch branch-master set up to track remote branch master from origin.
Switched to a new branch 'branch-master'
>>> Unpacked to /var/tmp/portage/media-video/mplayer-vaapi-9999/work/mplayer-vaapi-9999
>>> Source unpacked in /var/tmp/portage/media-video/mplayer-vaapi-9999/work
>>> Compiling source in /var/tmp/portage/media-video/mplayer-vaapi-9999/work/mplayer-vaapi-9999 ...
./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
No FFmpeg checkout, press enter to download one with git or CTRL+C to abort
Cloning into ffmpeg...
remote: Counting objects: 199187, done.
remote: Compressing objects: 100% (46300/46300), done.
remote: Total 199187 (delta 156131), reused 194534 (delta 152583)
Receiving objects: 100% (199187/199187), 50.83 MiB | 916 KiB/s, done.
Resolving deltas: 100% (156131/156131), done.
Note: checking out 'd93b6340d70f47ab77b2640ee2bbc7524d68b20f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at d93b634... Add dpx encoding regression test.
Unknown parameter: --build=x86_64-pc-linux-gnu
 * ERROR: media-video/mplayer-vaapi-9999 failed (compile phase):
 *   econf failed
 * 
 * Call stack:
 *          ebuild.sh, line  75:  Called src_compile
 *        environment, line 487:  Called _eapi0_src_compile
 *   phase-helpers.sh, line 535:  Called econf
 *   phase-helpers.sh, line 467:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 * 
 * If you need support, post the output of 'emerge --info =media-video/mplayer-vaapi-9999',
 * the complete build log and the output of 'emerge -pqv =media-video/mplayer-vaapi-9999'.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/media-video/mplayer-vaapi-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/mplayer-vaapi-9999/temp/environment'.
 * S: '/var/tmp/portage/media-video/mplayer-vaapi-9999/work/mplayer-vaapi-9999'

Причина ошибки скорее всего том, что configure тащит из гита определенную версию ffmpeg'а

# кусок из configure
if ! test -e ffmpeg ; then
    echo "No FFmpeg checkout, press enter to download one with git or CTRL+C to abort"
    read tmp
    if ! git clone git://git.videolan.org/ffmpeg.git ffmpeg ; then
        rm -rf ffmpeg
        echo "Failed to get a FFmpeg checkout"
        exit 1
    fi
    ffrevision=d93b6340d70f47ab77b2640ee2bbc7524d68b20f
    cd ffmpeg && git checkout $ffrevision && cd ..
fi
и .git ffmpeg'а записывается в /usr/portage/distfiles/egit-src/mplayer.git поверх гит файлов mplayer'а.

Вопрос: как можно заставить портаж писать гитовские файлы в другую папку во время ./configure? Читал это, пробовал менять переменные до src_configure(), но не помогло.

Kadi
()

[autotools][fortran] зависимости

Есть небольшая программа на фортране. Пытаюсь заставить ее собираться с использованием autotools, но компиляция идет так (сразу начинается с main'а), как будто зависимостей в файлах нет.

configure.ac

AC_INIT([test], [0.1])
AC_CONFIG_SRCDIR([src/main.f90])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_FC
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT

Makefile.am

SUBDIRS=src

src/Makefile.am

src/Makefile.am 
bin_PROGRAMS = test
test_SOURCES = main.f90 mod1.f90 ...
Естественно main зависит от модулей, а модули от других модулей.

Нашел примеры только для C, там видимо нет такой проблемы. Что я делаю не так? Есть ли другие варианты систем автосборки (писать самому makefile не вариант)?

 ,

Kadi
()

[lvm] initramfs

При попытке грузиться с lvm'а получаю странную ошибку:

Enter passphrase for /dev/sda4:
5 logical volume(s) in volume group "vg" now active
UDF-fs: No partition found (1)
И загрузка останавливается. Не понятно к чему тут UDF, если root находится на jfs. (jfs собрано в ядре, вместе с device mapper и crypt target). lvm2, cryptsetup USE=«static» и static-libs у зависимостей

init к самосборному initramfs'у

#!/bin/sh
CMDLINE=`cat /proc/cmdline`
mount -t proc proc /proc
mount -t sysfs sysfs /sys
sleep 3
/bin/cryptsetup luksOpen /dev/sda4 vault
/bin/vgchange -ay
mount -r /dev/mapper/vg-root /newroot
umount /sys
umount /proc
exec /bin/busybox switch_root /newroot /sbin/init ${CMDLINE}
пробовал также initramfs от genkernel'а - тоже не грузится - даже не отрабатывается cryptsetup, хотя запускался с ключами --luks и --lvm.

GRUB2 config (сгенерирован grub2-mkconfig)

menuentry 'GNU/Linux, with Linux x86_64-3.0.6-gentoo' --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos3)'
        search --no-floppy --fs-uuid --set=root 5623f0c2-9962-4b10-9c5b-0f3dd1f3e63e
        echo    'Loading Linux x86_64-3.0.6-gentoo ...'
        linux   /kernel-genkernel-x86_64-3.0.6-gentoo root=/dev/mapper/vg-root ro
        echo    'Loading initial ramdisk ...'
#       initrd  /initramfs-genkernel-x86_64-3.0.6-gentoo
        initrd  /initramfs
}
Все делал по вики.

что я сделал не так?

 

Kadi
()

иксы крашатся

После сборки только иксов-никаких проблем не было, кроме ошибки в логе:

[    43.890] (EE) Query no Synaptics: 6003C8
[    43.891] (--) SynPS/2 Synaptics TouchPad: no supported touchpad found
[    43.891] (EE) SynPS/2 Synaptics TouchPad Unable to query/initialize Synaptics hardware.
[    44.030] (EE) PreInit returned 11 for "SynPS/2 Synaptics TouchPad"
хотя при этом тачпад работал.

Собрал kde 4.7. После старта иксов(стартую xterm для проверки)-вижу 1 секунду терминал и сразу же вываливаюсь в консоль со следующим логом: http://pastebin.com/Mp065tCZ

xorg.conf: http://pastebin.com/Z82XqryV (aticonfig --initial без изменений)

gentoo amd64 2.6.39-r3, fglrx 11.6, xorg 1.10

Что я сделал не так и как это исправить?

Kadi
()

[ati][HATE] mplayer-vaapi

Пытаюсь заставить играть видео, используя ускорение.

видео hd3470, дрова ati-drivers-11.3
mplayer-vaapi-20110127 из оверлея
xvba-video-0.7.8 из оверлея

vainfo почему-то вываливается в ошибку

# vainfo
libva: libva version 0.31.1-sds1
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
Ошибка сегментирования
пробывал libva как 0.31.1_p4 из портажа, так и 0.32.0_p2 из оверлея

mplayer-vaapi -vo vaapi:gl -va vaapi file намертво вешает систему

smplayer с теми же настройками играет, но явно без ускорения (похоже, просто игнорирует эти параметры)

Есть ли вообще истории успеха и что я не так делаю?

 ,

Kadi
()

[gentoo] kernel panic

Собирал генту под федорой. После минимальной сборки, скопировал полученный образ на флешку и попробывал загрузиться. Получаю следующее сообщение

Cannot open root device "/dev/sda1" or unknown-block(2,0)
Please append correct "root=" boot option; here are the available partitions:
Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Pid:1, comm: swapper Not tainted 2.6.35-gentoo-r5 #1

пробывал также указывать рут по uuid, но результат тот же. Что я делаю не так?

 

Kadi
()

RSS подписка на новые темы