Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319003 - media-video/vlc-1.0.6 compilation fails (without X)
Summary: media-video/vlc-1.0.6 compilation fails (without X)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-08 22:45 UTC by Tobias Jakobi
Modified: 2010-05-19 14:54 UTC (History)
2 users (show)

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


Attachments
emerge --info output (emerge.info,3.53 KB, text/plain)
2010-05-08 22:45 UTC, Tobias Jakobi
Details
bzip2ed build.log (build.log.bz2,22.65 KB, application/octet-stream)
2010-05-08 22:46 UTC, Tobias Jakobi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Jakobi 2010-05-08 22:45:37 UTC
Hi there,

I just tried updating vlc from version 1.0.4 to 1.0.6 on my dedicated headless machine. Of course X isn't installed there, but since I don't need a GUI for vlc this shouldn't be a problem.

Well, it wasn't a problem with vlc-1.0.4, but the new version fails to compile.

A quick snippet:
-----------------------------
libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -shared  .libs/libpulse_plugin_la-pulse.o  -Wl,--whole-archive ../../compat/.libs/libcompat.a -Wl,--no-whole-archive  -Wl,-rpath -Wl,/var/tmp/portage/media-video/vlc-1.0.6/work/vlc-1.0.6/src/.libs -lpulse -lX11 ../../src/.libs/libvlccore.so -lrt -lpthread -ldl -lm  -march=k8-sse3 -Wl,-O1   -Wl,-soname -Wl,libpulse_plugin.so -o .libs/libpulse_plugin.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[4]: *** [libpulse_plugin.la] Error 1


Looks like this -lX11 doesn't belong there, or why does libpulse need X11 anyway? (full log attached)

Since I'm not sure if this is an upstream bug I first post it here.

Greets,
Tobias
Comment 1 Tobias Jakobi 2010-05-08 22:45:57 UTC
Created attachment 230823 [details]
emerge --info output
Comment 2 Tobias Jakobi 2010-05-08 22:46:16 UTC
Created attachment 230825 [details]
bzip2ed build.log
Comment 3 Alexis Ballier gentoo-dev 2010-05-19 07:32:14 UTC
fixed, thanks
the pulseaudio module of vlc requires libX11 unfortunately :/
Comment 4 Tobias Jakobi 2010-05-19 09:30:19 UTC
Should I then also post this upstream? I'm pretty sure that dependency on x11 by PA should be optional and not mandatory.
Comment 5 Alexis Ballier gentoo-dev 2010-05-19 09:39:23 UTC
(In reply to comment #4)
> Should I then also post this upstream? I'm pretty sure that dependency on x11
> by PA should be optional and not mandatory.
> 

yes please; the code seems to optionally use libX11 but always link to it :/
Comment 6 Tobias Jakobi 2010-05-19 14:54:07 UTC
http://trac.videolan.org/vlc/ticket/3650