| View previous topic :: View next topic |
| Author |
Message |
babo Guru


Joined: 10 Aug 2004 Posts: 477 Location: Ljubljana
|
Posted: Mon Oct 31, 2005 8:57 am Post subject: gimp-gap-2.2.0 install problems |
|
|
Hy
Recently gimp-gap 2.2.0 was released and I am now trying to compile it, but it failes with install.
I'm using this ebuild:
| Code: | # Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="Gimp Animation Package"
SRC_URI="mirror://gimp/plug-ins/v2.2/gap/${P}.tar.bz2"
HOMEPAGE="http://www.gimp.org/"
KEYWORDS="~x86 ~amd64 ~ppc"
SLOT="0"
LICENSE="GPL-2"
IUSE="mpeg1 mpeg2 xanim wavplay sox mp3"
DEPEND=">=media-gfx/gimp-2.0
wavplay? ( >=media-sound/wavplay-1.4 )"
RDEPEND="${DEPEND}
mpeg1? ( >=media-video/mpeg-tools-1.5 )
mpeg2? ( >=media-video/mpeg2vidcodec-12 )
xanim? ( >=media-video/xanim-2.80.1 )
wavplay? (
sox? ( >=media-sound/sox-12.17 )
mp3? ( >=media-sound/lame-3.9 )
)"
#src_compile() {
# econf $(use_enable wavplay audiosupport) \
# || die "econf failed"
# emake || die "emake failed"
#}
src_install() {
make DESTDIR="${D}" install || die "install failed"
dodoc AUTHORS ChangeLog* NEWS README
newdoc gap/README README-gap
newdoc gap/README_developers README-gap-developers
} |
and the compile part works if I emerge it with CFLAGS="-fPIC"
but install fails like this:
| Code: | eg3 -I/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/libmpeg3/audio -I/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/libmpeg3/video -I../gap -I../libgapvidutil -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gimp-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include -DGAPLIBDIR=\""/usr/lib64/gimp-gap-2.2"\" -DLOCALEDIR=\""/usr/share/locale"\" -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGIMP_DISABLE_DEPRECATED -fPIC -Wall -MT gap_enc_ffmpeg_callbacks.o -MD -MP -MF ".deps/gap_enc_ffmpeg_callbacks.Tpo" -c -o gap_enc_ffmpeg_callbacks.o gap_enc_ffmpeg_callbacks.c; \
then mv -f ".deps/gap_enc_ffmpeg_callbacks.Tpo" ".deps/gap_enc_ffmpeg_callbacks.Po"; else rm -f ".deps/gap_enc_ffmpeg_callbacks.Tpo"; exit 1; fi
gap_enc_ffmpeg_par.c: In function `gap_ffpar_get':
gap_enc_ffmpeg_par.c:208: warning: cast from pointer to integer of different size
gap_enc_ffmpeg_callbacks.c: In function `on_ff_gint32_spinbutton_changed':
gap_enc_ffmpeg_callbacks.c:142: warning: cast from pointer to integer of different size
gap_enc_ffmpeg_callbacks.c: In function `on_ff_gdouble_spinbutton_changed':
gap_enc_ffmpeg_callbacks.c:174: warning: cast from pointer to integer of different size
gap_enc_ffmpeg_callbacks.c: In function `on_ff_gint32_checkbutton_toggled':
gap_enc_ffmpeg_callbacks.c:213: warning: cast from pointer to integer of different size
gap_enc_ffmpeg_callbacks.c: In function `on_ff_fileformat_combo':
gap_enc_ffmpeg_callbacks.c:313: warning: cast from pointer to integer of different size
gap_enc_ffmpeg_callbacks.c: In function `on_ff_vid_codec_combo':
gap_enc_ffmpeg_callbacks.c:354: warning: cast from pointer to integer of different size
gap_enc_ffmpeg_callbacks.c: In function `on_ff_aud_codec_combo':
gap_enc_ffmpeg_callbacks.c:390: warning: cast from pointer to integer of different size
gap_enc_ffmpeg_callbacks.c: In function `on_ff_gint32_combo':
gap_enc_ffmpeg_callbacks.c:462: warning: cast from pointer to integer of different size
x86_64-pc-linux-gnu-gcc -fPIC -Wall -o gap_vid_enc_ffmpeg gap_enc_ffmpeg_main.o gap_enc_ffmpeg_gui.o gap_enc_ffmpeg_par.o gap_enc_ffmpeg_callbacks.o -lgimpui-2.0 -lgimpwidgets-2.0 -lgimp-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgimpthumb-2.0 -lgimpmath-2.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L../libgapvidutil -lgapvidutil -L../gap -lgimpgap -lgapstory -L../libgapvidapi -lgapvidapi /var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/ffmpeg/libavformat/libavformat.a /var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/ffmpeg/libavcodec/libavcodec.a /var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/libmpeg3/x86_64/libmpeg3.a -lpng -lz -lpthread -ldl -lm
make[2]: Leaving directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/vid_enc_ffmpeg'
Making all in vid_enc_single
make[2]: Entering directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/vid_enc_single'
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libwavplayclient -I../libgapvidapi -I/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/ffmpeg/libavcodec -I/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/ffmpeg/libavformat -I/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/ffmpeg/libavutil -I/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/libmpeg3 -I/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/libmpeg3/audio -I/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/libmpeg3/video -I../gap -I../libgapvidutil -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gimp-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include -DGAPLIBDIR=\""/usr/lib64/gimp-gap-2.2"\" -DLOCALEDIR=\""/usr/share/locale"\" -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGIMP_DISABLE_DEPRECATED -fPIC -Wall -MT gap_enc_singleframes_main.o -MD -MP -MF ".deps/gap_enc_singleframes_main.Tpo" -c -o gap_enc_singleframes_main.o gap_enc_singleframes_main.c; \
then mv -f ".deps/gap_enc_singleframes_main.Tpo" ".deps/gap_enc_singleframes_main.Po"; else rm -f ".deps/gap_enc_singleframes_main.Tpo"; exit 1; fi
x86_64-pc-linux-gnu-gcc -fPIC -Wall -o gap_vid_enc_singleframes gap_enc_singleframes_main.o -lgimpui-2.0 -lgimpwidgets-2.0 -lgimp-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgimpthumb-2.0 -lgimpmath-2.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L../libgapvidutil -lgapvidutil -L../gap -lgimpgap -lgapstory -L../libgapvidapi -lgapvidapi /var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/ffmpeg/libavformat/libavformat.a /var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/ffmpeg/libavcodec/libavcodec.a /var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/libmpeg3/x86_64/libmpeg3.a -lpng -lz -lpthread -ldl -lm
make[2]: Leaving directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/vid_enc_single'
make[2]: Entering directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0'
make[1]: Leaving directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0'
>>> Test phase [not enabled]: media-plugins/gimp-gap-2.2.0
>>> Install gimp-gap-2.2.0 into /var/tmp/portage/gimp-gap-2.2.0/image/ category media-plugins
Making install in extern_libs
make[1]: Entering directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs'
make[2]: Entering directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib64/gimp-gap-2.2" || mkdir -p -- "/var/tmp/portage/gimp-gap-2.2.0/image//usr/lib64/gimp-gap-2.2"
/bin/install -c -m 644 '/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/ffmpeg/libavformat/libavformat.a' '/var/tmp/portage/gimp-gap-2.2.0/image//usr/lib64/gimp-gap-2.2/libavformat.a'
/bin/install -c -m 644 '/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/ffmpeg/libavcodec/libavcodec.a' '/var/tmp/portage/gimp-gap-2.2.0/image//usr/lib64/gimp-gap-2.2/libavcodec.a'
/bin/install -c -m 644 '/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/libmpeg3/x86_64/libmpeg3.a' '/var/tmp/portage/gimp-gap-2.2.0/image//usr/lib64/gimp-gap-2.2/libmpeg3.a'
make install-data-hook
make[3]: Entering directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs'
rm -f /usr/lib64/gimp-gap-2.2/libavformat.a \
rm -f /usr/lib64/gimp-gap-2.2/libavcodec.a \
rm -f /usr/lib64/gimp-gap-2.2/libmpeg3.a
ACCESS DENIED unlink: /usr/lib64/gimp-gap-2.2/libavformat.a
rm: cannot remove `/usr/lib64/gimp-gap-2.2/libavformat.a': Permission denied
ACCESS DENIED unlink: /usr/lib64/gimp-gap-2.2/libavcodec.a
rm: cannot remove `/usr/lib64/gimp-gap-2.2/libavcodec.a': Permission denied
ACCESS DENIED unlink: /usr/lib64/gimp-gap-2.2/libmpeg3.a
rm: cannot remove `/usr/lib64/gimp-gap-2.2/libmpeg3.a': Permission denied
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs'
make: *** [install-recursive] Error 1
!!! ERROR: media-plugins/gimp-gap-2.2.0 failed.
!!! Function src_install, Line 33, Exitcode 2
!!! install failed
!!! If you need support, post the topmost build error, NOT this status message.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-media-plugins_-_gimp-gap-2.2.0-10763.log"
unlink: /usr/lib64/gimp-gap-2.2/libavformat.a
unlink: /usr/lib64/gimp-gap-2.2/libavcodec.a
unlink: /usr/lib64/gimp-gap-2.2/libmpeg3.a
--------------------------------------------------------------------------------
rasta babo # |
Does anyone know why it is like so and what to change to make it compile.
Yes, one more thing I find important is that I'm trying to compile it on amd64, since there are a lot of warnings about incompatible pointer type.
cheers |
|
| Back to top |
|
 |
Archangel1 Veteran


Joined: 21 Apr 2004 Posts: 1212 Location: Work
|
Posted: Mon Oct 31, 2005 8:15 pm Post subject: |
|
|
Are you saying the compile only works with -fPIC? Because you're not meant to use that flag...
For some reason it's trying to alter links on your system, not inside it's sandbox. I guess it's part of the 'make install' part - might be worth playing with that line of the ebuild. _________________ What are you, stupid? |
|
| Back to top |
|
 |
babo Guru


Joined: 10 Aug 2004 Posts: 477 Location: Ljubljana
|
Posted: Mon Oct 31, 2005 8:19 pm Post subject: |
|
|
yes, compile works only with -fPIC here.
I don't have much ideas and time to try with 'make install' line, but will try first thing when I have a bit of time.
what does -fPIC do anyway and why I am not supose to use it? |
|
| Back to top |
|
 |
babo Guru


Joined: 10 Aug 2004 Posts: 477 Location: Ljubljana
|
Posted: Tue Nov 01, 2005 10:14 am Post subject: |
|
|
It installed with
| Code: | | CFLAGS="-fPIC" FEATURES="-sandbox" emerge gimp-gap |
and it works ok for now, but as I get it this compile options are really not recomended. So if there would be any way to fix it through ebuild it would be great. |
|
| Back to top |
|
 |
Genjix Apprentice

Joined: 23 Jun 2005 Posts: 163
|
Posted: Fri Nov 04, 2005 1:25 pm Post subject: |
|
|
really churning out the ebuild's babo. good luck, I really hope gimp-gap 2.2 will be working for gentoo  |
|
| Back to top |
|
 |
orcim n00b


Joined: 02 Oct 2003 Posts: 2
|
Posted: Sat Jan 28, 2006 9:30 am Post subject: |
|
|
Hy
Recently gimp-gap 2.2.0 was released and I am now trying to compile it, but it failes with install.
but install fails like this:
Code:
msmpeg4.c: In function `msmpeg4_encode_dc':
msmpeg4.c:727: error: can't find a register in class `BREG' while reloading `asm'
make[4]: *** [msmpeg4.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/ffmpeg/libavcodec'
make[3]: *** [lib] Error 2
make[3]: Leaving directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/ffmpeg'
make[2]: *** [/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs/ffmpeg/libavcodec/libavcodec.a] Error 2
make[2]: Leaving directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0/extern_libs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gimp-gap-2.2.0/work/gimp-gap-2.2.0'
make: *** [all] Error 2
!!! ERROR: media-plugins/gimp-gap-2.2.0 failed.
!!! Function src_compile, Line 566, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
Does anyone know why it is like so
thanks of lot  |
|
| Back to top |
|
 |
|