Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125312 - media-video/gpac-0.4.1_pre20060122 fails - recompile with -fPIC
Summary: media-video/gpac-0.4.1_pre20060122 fails - recompile with -fPIC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-06 16:55 UTC by R!tman
Modified: 2006-03-08 06:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R!tman 2006-03-06 16:55:10 UTC
On amd64:

# emerge --info
Portage 2.0.54 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 audiofile avi berkdb bitmap-fonts bzip2 crypt curl dvd eds emboss encode exif expat fbcon fortran gcj gdbm gif glut gpm gtk gtk2 idn imagemagick imlib java jpeg lcms libwww lzw lzw-tiff matroska mng motif mp3 mp4 mpeg ncurses nls nocardbus nptl nptlonly nvidia ogg oggvorbis openal opengl pam pdflib pic plotutils png quicktime readline real recode sdl spell sse3 ssl tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev userlocales vorbis x264 xinerama xmms xpm xv xvid xvmc zlib video_cards_nvidia userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


Error message on amd64:

...
gcc -O2 -pipe -march=k8 -fno-strict-aliasing -fPIC -Wall -I/var/tmp/portage/gpac-0.4.1_pre20060122/work/gpac/include -c -o lsr_tables.o lsr_tables.c 
ar rc ../../bin/gcc/temp/libgpac_laser.a lsr_enc.o lsr_dec.o lsr_tables.o
ranlib ../../bin/gcc/temp/libgpac_laser.a
make[2]: Leaving directory `/var/tmp/portage/gpac-0.4.1_pre20060122/work/gpac/src/laser'
for thelib in libgpac_bifs.a libgpac_terminal.a libgpac_ietf.a libgpac_isom.a libgpac_odf.a libgpac_scenegraph.a libgpac_scene_manager.a libgpac_media.a libgpac_utils.a libgpac_render.a libgpac_mcrypt.a libgpac_laser.a;        do ar x ../bin/gcc/temp/$thelib;   done
ar cr ../bin/gcc/libgpac_static.a *.o
ranlib ../bin/gcc/libgpac_static.a
gcc -shared -Wl,--warn-common -o ../bin/gcc/libgpac.so *.o -lm -lz -lssl -lcrypto -lpthread -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: base_scenegraph.o: relocation R_X86_64_PC32 against `ReplaceIRINode' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libgpac.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/gpac-0.4.1_pre20060122/work/gpac/src'
make: *** [lib] Error 2

!!! ERROR: media-video/gpac-0.4.1_pre20060122 failed.
!!! Function src_compile, Line 143, Exitcode 2
!!! emake failed.
!!! If you need support, post the topmost build error, NOT this status message.


On x86:

# emerge --info
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fomit-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apm audiofile avi berkdb bitmap-fonts bzip2 crypt curl directfb divx4linux dvd eds emboss encode exif expat fam fbcon flac fortran gd gdbm gif glut gpm gtk gtk2 gtkhtml imagemagick imlib java jpeg junit lcms libg++ libwww matroska mikmod mmx mng motif mp3 mp4 mpeg ncurses nls nocardbus nptl nptlonly ogg oggvorbis openal opengl pam pdflib pic plotutils png quicktime radeon readline real recode samba sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev vorbis win32codecs x264 xinerama xmms xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


Error message on x86:

...
gcc -shared -Wl,--warn-common -o ../../bin/gcc/gm_render3d.so background.o bindable.o bitmap.o camera.o form.o geometry_stacks.o geometry_x3d.o gradients.o grouping.o grouping_stacks.o hardcoded_protos.o layers.o layout.o lighting.o mesh.o mesh_collide.o navigate.o path_layout.o render3d.o render3d_nodes.o sensor_stacks.o sound.o text.o texture_stacks.o viewport.o visual_surface.o texturing_gl.o vs_gl_draw.o tesselate.o  -L../../bin/gcc -lgpac -lm -lGL -lGLU
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
make[2]: Leaving directory `/var/tmp/portage/gpac-0.4.1_pre20060122/work/gpac/modules/render3d'
make[2]: Entering directory `/var/tmp/portage/gpac-0.4.1_pre20060122/work/gpac/modules/x11_out'
gcc -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fomit-frame-pointer -funroll-loops -fno-strict-aliasing -Wall -I/var/tmp/portage/gpac-0.4.1_pre20060122/work/gpac/include -DGPAC_HAS_X11_SHM -DGPAC_HAS_OPENGL -c -o x11_out.o x11_out.c 
gcc -shared -Wl,--warn-common -L/usr/X11R6/lib -lXext -lGL -o ../../bin/gcc/gm_x11_out.so x11_out.o -lX11 -L../../bin/gcc -lgpac
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
make[2]: Leaving directory `/var/tmp/portage/gpac-0.4.1_pre20060122/work/gpac/modules/x11_out'
make[1]: Leaving directory `/var/tmp/portage/gpac-0.4.1_pre20060122/work/gpac/modules'
>>> Test phase [not enabled]: media-video/gpac-0.4.1_pre20060122

>>> Install gpac-0.4.1_pre20060122 into /var/tmp/portage/gpac-0.4.1_pre20060122/image/ category media-video
install -d "/var/tmp/portage/gpac-0.4.1_pre20060122/image//usr/bin"
install -s -m 755 bin/gcc/MP4Box "/var/tmp/portage/gpac-0.4.1_pre20060122/image//usr/bin"
install: cannot stat `bin/gcc/MP4Box': No such file or directory
make: *** [install] Error 1

!!! ERROR: media-video/gpac-0.4.1_pre20060122 failed.
!!! Function src_install, Line 147, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Mathy Vanvoorden 2006-03-07 07:55:36 UTC
I had the same problem. The actual error message is way higher up. I found that just enabling the svg-USE flag does the trick. There are some bad defines somewhere in the source code. This is in no case an AMD64-specific bug.
Comment 2 R!tman 2006-03-07 08:15:03 UTC
(In reply to comment #1)
> I had the same problem. The actual error message is way higher up. I found that
> just enabling the svg-USE flag does the trick. There are some bad defines
> somewhere in the source code. This is in no case an AMD64-specific bug.

Thank you very much, adding svg to the use flags did help. 

As you can see, I also added an error message for x86 and I am pretty sure I had this bug as platform=all. I guess someone must have changed that...

Thanks again!
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2006-03-07 12:22:57 UTC
reassigning per comment 2
Comment 4 Marc Hildebrand (RETIRED) gentoo-dev 2006-03-08 06:19:29 UTC
I removed the svg useflag and switched on "--enable-svg" by default.
I could not however find any dependencies to libsvg.
Thanks for the bug-report!
Comment 5 R!tman 2006-03-08 06:31:23 UTC
(In reply to comment #4)
> I removed the svg useflag and switched on "--enable-svg" by default.
> I could not however find any dependencies to libsvg.
> Thanks for the bug-report!

Glad I could help. But it's more the other way around: Thank YOU for the ebuild ;-)!