FS#12766 - nvidia 180.22-1 breaks mplayer compilation

Attached to Project: Arch Linux
Opened by Tomasz (irfan) - Monday, 12 January 2009, 19:51 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 18 February 2009, 10:33 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture i686
Severity High
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
I've installed new nvidia and nvidia-utils (180.22-1) from testing, and now I can't compile properly some apps (for example deluge, mplayer). Please look at this http://bbs.archlinux.org/viewtopic.php?id=59500. I get segfaults during ./configure with new driver ...with nvidia 177.82-2 everything is ok.
It's very strange. Maybe it is upstream bug, but I don't know. I have also kernel 2.6.28-3 from testing installed.
This task depends upon

Closed by  Jan de Groot (JGC)
Wednesday, 18 February 2009, 10:33 GMT
Reason for closing:  Duplicate
Additional comments about closing:  See  bug 12592 . This is an issue with nvidia's libGL when used with fakeroot.
Comment by st xlterio (sa) - Thursday, 15 January 2009, 15:30 GMT
Check the mplayer PKGBUILD, IIRC it may have parameters for video driver versions.
Comment by Tomasz (irfan) - Friday, 16 January 2009, 13:27 GMT
I haven't found video driver versions parameters anywhere. The problem is still unsolved :(
Comment by Tomasz (irfan) - Friday, 16 January 2009, 13:29 GMT
And now nvidia-180.22 is in extra :/
Comment by st xlterio (sa) - Friday, 16 January 2009, 16:02 GMT
I have a feeling it might be one of the parameters in ./configure. I don't have a machine to test with at the moment, but see if there is anything that helps in there.
Comment by Thomas Jost (Schnouki) - Friday, 23 January 2009, 01:46 GMT
Same problem here, with nvidia-180.22 too.

I did a little bit of debugging in the ./configure script of mplayer. I added a call to sh after running each test program so I can do whatever I want in the same environment as the script... and I found out that it was somehow related to libGL. For example, when running the PNG test compiled with -lGL, it crashed (segfault) ; the same test compiled it without -lGL worked fine. I have no idea of the reason for this, and I couldn't find any relevant information with gdb.

Only workaround I found for now: replace --enable-gl by --disable-gl in the PKGBUILD. This way it compiles fine, but without GL support.
Comment by st xlterio (sa) - Friday, 23 January 2009, 04:42 GMT
Interesting! I guess, by process of elimination, your problem has to be with an OpenGL library or some related dependency. Glad you're getting somewhere though! I'm afraid I don't have much more to add at this point.
Comment by Jan de Groot (JGC) - Friday, 23 January 2009, 07:46 GMT
What libGL library is linked in? Do you have some local installation residing in /usr/local/lib or some lib/tls directory on your system?
Comment by Thomas Jost (Schnouki) - Friday, 23 January 2009, 10:25 GMT
# LANG=C pacman -Qo /usr/lib/libGL.so
/usr/lib/libGL.so is owned by nvidia-utils 180.22-1

Nothing in /usr/local/lib, no lib/tls. It is really related to nvidia-180.22 (which breaks other things like Suspend to RAM on my laptop).
Comment by Tomasz (irfan) - Friday, 23 January 2009, 13:26 GMT
nvidia-180.22 breaks also deluge for me ...deluge failed to start. I know that I'm not very helpful but I'm not a linux expert, so if you want some logs or other info please tell me.
Comment by Tomasz (irfan) - Friday, 23 January 2009, 17:58 GMT
I'm not sure with deluge so please ignore my previous comment for now. But you should look at this http://bugs.archlinux.org/task/12897 (comments). So where is the problem? In fakeroot, nvidia or maybe somewhere else?
Comment by Greg (dolby) - Friday, 23 January 2009, 21:19 GMT
It happens here, i hadnt noticed before but i was suprpised when namcap reported no dependency on any image related packages. Just for the record I dont use ass.

Checking for PNG support ... ./configure: line 94: 18838 Segmentation fault "$TMPEXE" >> "$TMPLOG" 2>&1
no (mismatch of library and header versions)
Checking for MNG support ... no
Checking for JPEG support ... ./configure: line 94: 18853 Segmentation fault "$TMPEXE" >> "$TMPLOG" 2>&1
no
Checking for PNM support ... yes
Checking for GIF support ... ./configure: line 94: 18862 Segmentation fault "$TMPEXE" >> "$TMPLOG" 2>&1
./configure: line 94: 18870 Segmentation fault "$TMPEXE" >> "$TMPLOG" 2>&1
no

Did anyone make a report on mplayer upstream?
I am attaching the PKGBUILD i use, it doesnt contain all the dependencies, just the ones reported by namcap, when building with the segfaults. Its pretty simple and minimal featured.
   PKGBUILD (1.1 KiB)
Comment by Thomas Jost (Schnouki) - Friday, 23 January 2009, 21:42 GMT
That's the very same problem indeed.
Do you have a nVidia card with the 180.22 driver?

As far as I know, this bug hasn't been reported upstream yet.
Comment by Thomas Jost (Schnouki) - Friday, 23 January 2009, 22:07 GMT
I just downgraded to nvidia 177.82-2 and nvidia-utils 177.82-1 and now mplayer compiles fine again (with --enable-gl enabled). I didn't change anything else on my system. So it is definitely related to the nvidia driver.

Many people are complaining about it anyway (on http://www.nvnews.net/vbulletin/forumdisplay.php?f=14 for example). This driver is really unstable and crappy; maybe the packages maintainers should consider downgrading both packages.
Comment by Roman Kyrylych (Romashka) - Tuesday, 27 January 2009, 15:32 GMT Comment by Tomasz (irfan) - Tuesday, 27 January 2009, 16:16 GMT
I've tested 180.25 and unfortunately the problem still exists :/

Checking for PNG support ... ./configure: line 94: 5262 Segmentation fault "$TMPEXE" >> "$TMPLOG" 2>&1
no (mismatch of library and header versions)
Checking for JPEG support ... ./configure: line 94: 5279 Segmentation fault "$TMPEXE" >> "$TMPLOG" 2>&1
no
Checking for freetype >= 2.0.9 ... ./configure: line 94: 5674 Segmentation fault "$TMPEXE" >> "$TMPLOG" 2>&1
no
Comment by Greg (dolby) - Thursday, 29 January 2009, 02:51 GMT
Anyone tried 180.27 ?
Comment by Tomasz (irfan) - Thursday, 29 January 2009, 11:09 GMT
I've tried 180.27 and result is the same.
Comment by Greg (dolby) - Friday, 06 February 2009, 12:12 GMT
I just noticed this too:
Checking for libmp3lame ... ./configure: line 94: 29936 Segmentation fault "$TMPEXE" >> "$TMPLOG" 2>&1
no (in libavcodec: no)
with the latest mplayer export snapshot.
I dont see how nvidia would brake lame.
Comment by Greg (dolby) - Tuesday, 17 February 2009, 23:13 GMT
Its not an mplayer issue at all. It is related to fakeroot just like in http://bugs.archlinux.org/task/12592#comment39686

Building with --asroot works great.
Comment by Greg (dolby) - Tuesday, 17 February 2009, 23:14 GMT
I meant its not nvidia related.

Loading...