Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86221 - smpeg-0.4.4-r4 crashes when I try to recompile it using emerge -e world
Summary: smpeg-0.4.4-r4 crashes when I try to recompile it using emerge -e world
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-21 23:07 UTC by Hans Måseide
Modified: 2005-04-25 12:41 UTC (History)
0 users

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 Hans Måseide 2005-03-21 23:07:01 UTC
before I started the emerge -e world, I did
# opengl-update nvidia

as compiling smpeg failed on me the last time I tried.
From the error message, it seems nvidia is involved somehow.

Reproducible: Always
Steps to Reproduce:
1.emerge -e world
2.
3.

Actual Results:  
gcc -march=athlon64 -O3 -pipe -fomit-frame-pointer -ftracer
-fprefetch-loop-arrays -ffast-math -mfpmath=sse -msse2 -mmmx -m3dnow
-fexpensive-optimizations -fomit-frame-pointer -I/usr/include/SDL -D_REENTRANT
-DTHREADED_AUDIO -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -DNDEBUG -I.. -DNOCONTROLS -I. -I./audio -I./video -o
.libs/glmovie glmovie-tile.o glmovie.o -L/usr/lib64 -lGL -lGLU .libs/libsmpeg.so
-L/usr/lib -lSDL -lpthread -lm -lSDL -lpthread -lm -lsupc++ -lSDL -lpthread -lm
-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm
/usr/lib64/libGL.so: undefined reference to `_nv000793gl'
/usr/lib64/libGL.so: undefined reference to `_nv000795gl'
/usr/lib64/libGL.so: undefined reference to `_nv000792gl'
/usr/lib64/libGL.so: undefined reference to `_nv000797gl'
/usr/lib64/libGL.so: undefined reference to `_nv000794gl'
/usr/lib64/libGL.so: undefined reference to `_nv000800gl'
/usr/lib64/libGL.so: undefined reference to `_nv000798gl'
/usr/lib/libGLcore.so.1: undefined reference to `_nv000790gl'
/usr/lib64/libGL.so: undefined reference to `_nv000796gl'
/usr/lib64/libGL.so: undefined reference to `_nv000791gl'
/usr/lib64/libGL.so: undefined reference to `_nv000799gl'
/usr/lib64/libGL.so: undefined reference to `_nv000801gl'
collect2: ld returned 1 exit status
make[1]: *** [glmovie] Error 1
make[1]: Leaving directory `/var/tmp/portage/smpeg-0.4.4-r4/work/smpeg-0.4.4'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/smpeg-0.4.4-r4 failed.
!!! Function src_compile, Line 48, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

Expected Results:  
it should have compiled without any errors.

Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 21 2005, 17:20:18)]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r6
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -ftracer
-fprefetch-loop-arrays -ffast-math -mfpmath=sse -msse2 -mmmx -m3dnow"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -ftracer
-fprefetch-loop-arrays -ffast-math -mfpmath=sse -msse2 -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.gentoo.no/ ftp://gentoo.linux.no/pub/gentoo/
ftp://ftp.uninett.no/pub/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa arts artswrappersuid avi berkdb bitmap-fonts cdr crypt
cups curl fam font-server foomatic foomaticdb fortran gdbm gif gphoto2 gpm gtk
imagemagick imlib ipv6 java jp2 jpeg kde live lzw lzw-tiff motif mp3 mpeg nas
ncurses network nls nptl nptlonly nvidia oggvorbis opengl oss pam perl png
python qt readline sdl ssl tcpd tiff truetype truetype-fonts type1-fonts usb
userlocales xml2 xmms xpm xrandr xv zlib linguas_no linguas_nb"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2005-03-22 06:17:22 UTC
try running opengl-update nvidia and then emerging again
Comment 2 Hans Måseide 2005-03-22 11:54:13 UTC
I already did that before reporting this as a bug.
See the topmost entry.
Comment 3 Hans Måseide 2005-03-29 02:31:30 UTC
I get the same error-message when trying to emerge the latest smpeg today.
Same use-flags as already described and I ran opengl-update nvidia prior to the emerge when I saw what package I was about to emerge.

Here is what I get:
gentoo ~ # emerge -uvDa --newuse world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild     U ] media-libs/smpeg-0.4.4-r5 [0.4.4-r4] +X -debug +gtk +opengl 0 kB
[ebuild     U ] app-cdr/k3b-0.11.23 [0.11.22] +arts -debug -dvdr -encode -flac +kde -kdeenablefinal -mad +oggvorbis -xinerama 3,120 kB

Total size of downloads: 3,120 kB

Do you want me to merge these packages? [Yes/No] y
...
...
...


/usr/lib64/libGL.so: undefined reference to `_nv000793gl'
/usr/lib64/libGL.so: undefined reference to `_nv000795gl'
/usr/lib64/libGL.so: undefined reference to `_nv000792gl'
/usr/lib64/libGL.so: undefined reference to `_nv000797gl'
/usr/lib64/libGL.so: undefined reference to `_nv000794gl'
/usr/lib64/libGL.so: undefined reference to `_nv000800gl'
/usr/lib64/libGL.so: undefined reference to `_nv000798gl'
/usr/lib/libGLcore.so.1: undefined reference to `_nv000790gl'
/usr/lib64/libGL.so: undefined reference to `_nv000796gl'
/usr/lib64/libGL.so: undefined reference to `_nv000791gl'
/usr/lib64/libGL.so: undefined reference to `_nv000799gl'
/usr/lib64/libGL.so: undefined reference to `_nv000801gl'
collect2: ld returned 1 exit status
make[1]: *** [glmovie] Error 1
make[1]: Leaving directory `/var/tmp/portage/smpeg-0.4.4-r5/work/smpeg-0.4.4'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/smpeg-0.4.4-r5 failed.
!!! Function src_compile, Line 47, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 4 Wilson Wang 2005-03-31 15:22:04 UTC
I had the same problem as the above post when trying to emerge bomberclone.
Comment 5 Mark Boddington 2005-04-06 06:15:09 UTC
Hi,

The missing symbols are in libGLCore. I also get this error when compiling gtkglarea. They just need to be linked against GLcore aswell as GL. I presume you are all using the ~amd64 nvidia glx 1.0.7something??

I'm fairly new to gentoo, so there are probably better ways to fix this, but I modified the ebuild. Changing configure.in didn't seem to work? So I had to modify the makefile.in.


diff -c smpeg-0.4.4-r5.original smpeg-0.4.4-r5.ebuild
*** smpeg-0.4.4-r5.original     Wed Apr  6 12:59:03 2005
--- smpeg-0.4.4-r5.ebuild       Wed Apr  6 14:09:09 2005
***************
*** 31,36 ****
--- 31,43 ----
        sed -i \
                -e '/^libsmpeg_la_LIBADD =/s:$: -lsupc++:' Makefile.in \
                || die "sed Makefile.in failed"
+       # Nvidia 1.0.7* require libGLCore
+       sed -i \
+               -e 's/-lGL[[:space:]]/-lGL -lGLcore /;t;s/-lGL"/-lGL -lGLcore"/' configure.in \
+               || die "sed nvidia configure.in mods failed"
+       sed -i \
+               -e '/^GL_LIBS =\|^glmovie_LDADD =/s:$: -lGLcore:' Makefile.in \
+               || die "sed nvidia Makefile.in mods failed"
  }

  src_compile() {
Comment 6 Martin Grønholdt 2005-04-17 02:03:13 UTC
I have the same problem on a plain old 32-bit Athlon XP
Comment 7 Mark Boddington 2005-04-21 05:58:02 UTC
Hi guys,

I'm guessing like me at some point you installed the nvidia drivers using Nvidias own installer??? I found some old GL libs from 1.0.6something in /usr/lib. I uninstalled those and ran opengl-update. It all works for me.

# nvidia-installer --uninstall
# opengl-update nvidia

This bug is probably invalid
Comment 8 Hans Måseide 2005-04-22 09:55:21 UTC
>I'm guessing like me at some point you installed the nvidia drivers using Nvidias >own installer??? I found some old GL libs from 1.0.6something in /usr/lib. I >uninstalled those and ran opengl-update. It all works for me.
>
># nvidia-installer --uninstall
># opengl-update nvidia
>
>This bug is probably invalid

You are right. I followed your 2 steps and re-emerged smpeg without problems!
This is in other words *not* a bug, but a crash resulting from having 2 different installations of the nVidia-driver.
Comment 9 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-25 12:41:40 UTC
marking as invalid wrt to the last comment