CFT: vlc 2.0.3 - want to know where it works and where only
gljennjohn at googlemail.com
Sat Aug 4 09:09:57 UTC 2012
On Fri, 3 Aug 2012 18:36:33 +0200
Juergen Lock <nox at jelal.kn-bremen.de> wrote:
> On Fri, Aug 03, 2012 at 05:00:37PM +0200, Rainer Hurling wrote:
> > On 03.08.2012 14:27 (UTC+2), Gary Jennejohn wrote:
> > > On Thu, 2 Aug 2012 22:56:26 +0200
> > > Juergen Lock <nox at jelal.kn-bremen.de> wrote:
> > >
> > > [trimmed irrelevant content]
> > >> Ok I added that check:
> > >>
> > >> http://people.freebsd.org/~nox/tmp/vlc-2.0.3-005.patch
> > >>
> > >> Enjoy, :)
> > >>
> > >
> > > AMD64 on HEAD.
> > >
> > > I always get this error, no matter which patch I use:
> > >
> > > GEN ../modules/plugins.dat
> > > gmake: *** [../modules/plugins.dat] Segmentation fault: 11 (core dumped)
> > > gmake: Leaving directory `/usr/ports/multimedia/vlc/work/vlc-2.0.3/bin'
> > > gmake: *** [all-recursive] Error 1
> > > gmake: Leaving directory `/usr/ports/multimedia/vlc/work/vlc-2.0.3'
> > > gmake: *** [all] Error 2
> > > *** [do-build] Error code 1
> > I get exactly the same error with CURRENT amd64.
> Hm how old are both your installed src and ports? You two are the
> first to report this and I just tried to reproduce it on a head
> checkout from May 13 and ports from June 18, and couldn't.
I update the ports and source trees almost every day. I do not install
new ports binaries unless absolutely necessary, so the ports binaries
are pretty much rather old.
Just installed a new world/kernel today (updated yesterdya), r239006.
> > BTW, mplayer from ports does not build with liveMedia-20120404 ...
> > > Stop in /usr/ports/multimedia/vlc.
> > > *** [build] Error code 1
> > >
> > > and there's a work/vlc-2.0.3/bin/vlc-cache-gen.core generated.
> > >
> > > May be because I have a mix of old and new dependencies, although the vlc
> > > port never tries to update any of them.
> > >
> Well ports never update dependencies themselves, you need to use
> tools like portmaster for that.
I avoid using tools whenever possible. Maybe I will have to try
portmaster, but I dread seeing 50 ports updated just because I
want to update one port.
I turned on -g in make.conf and ran vlc-cache-gen in gdb. Here's the
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
(gdb) r ../modules/
Starting program: /usr/ports/multimedia/vlc/work/vlc-2.0.3/bin/.libs/vlc-cache-gen ../modules/
[New LWP 100125]
[New Thread 802406400 (LWP 100125/vlc-cache-gen)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 802406400 (LWP 100125/vlc-cache-gen)]
0x0000000800606588 in matched_symbol () from /libexec/ld-elf.so.1
#0 0x0000000800606588 in matched_symbol () from /libexec/ld-elf.so.1
#1 0x00000008006087e4 in symlook_obj () from /libexec/ld-elf.so.1
#2 0x0000000800608ae7 in symlook_list () from /libexec/ld-elf.so.1
#3 0x000000080060911b in symlook_default () from /libexec/ld-elf.so.1
#4 0x000000080060939d in find_symdef () from /libexec/ld-elf.so.1
#5 0x000000080060375b in reloc_non_plt () from /libexec/ld-elf.so.1
#6 0x0000000800606ae8 in relocate_object () from /libexec/ld-elf.so.1
#7 0x00000008006084a8 in dlopen_object () from /libexec/ld-elf.so.1
#8 0x0000000800608f67 in rtld_dlopen () from /libexec/ld-elf.so.1
#9 0x0000000800affe95 in module_Load (p_this=0x80244c198,
p_handle=0x7fffffffd180, lazy=true) at posix/plugin.c:62
#10 0x0000000800adef4b in module_InitDynamic (obj=0x80244c198,
fast=true) at modules/bank.c:536
#11 0x0000000800adede2 in AllocatePluginFile (bank=0x7fffffffd490,
st=0x7fffffffd210) at modules/bank.c:479
#12 0x0000000800adeca3 in AllocatePluginDir (bank=0x7fffffffd490, maxdepth=2,
reldir=0x802472a80 "codec/.libs") at modules/bank.c:440
#13 0x0000000800adecd7 in AllocatePluginDir (bank=0x7fffffffd490, maxdepth=3,
absdir=0x802472a00 "../modules//codec", reldir=0x8024704f0 "codec")
#14 0x0000000800adecd7 in AllocatePluginDir (bank=0x7fffffffd490, maxdepth=4,
absdir=0x802452c20 "../modules/", reldir=0x0) at modules/bank.c:444
#15 0x0000000800ade9b8 in AllocatePluginPath (p_this=0x80244c198,
path=0x802452c20 "../modules/", mode=CACHE_USE) at modules/bank.c:353
#16 0x0000000800ade823 in AllocateAllPlugins (p_this=0x80244c198)
#17 0x0000000800ade55d in module_LoadPlugins (obj=0x80244c198)
#18 0x0000000800a53e63 in libvlc_InternalInit (p_libvlc=0x80244c198, i_argc=3,
ppsz_argv=0x7fffffffd6f0) at libvlc.c:247
#19 0x000000080082234d in libvlc_new (argc=2, argv=0x7fffffffd7a0) at core.c:59
#20 0x0000000000400d1c in main (argc=2, argv=0x7fffffffd858) at cachegen.c:107
If I remove enough plugins then I can build and install vlc, but the
result isn't very useful.
The old port builds, installs and works just fine with all the plugins I
want to use so I'll stick to it.
More information about the freebsd-ports