On 02/11/2017 21:50, Pierre Labastie wrote:
On 02/11/2017 20:04, Pierre Labastie wrote:
On 02/11/2017 17:32, Bruce Dubbs wrote:
Bruce Dubbs wrote:
Pierre Labastie wrote:
On 02/11/2017 00:53, Bruce Dubbs wrote:
Armin K. wrote:
On 1.11.2017 19:35, Pierre Labastie wrote:
Hi, building vlc with the current book instructions, I get:
--------------
make[2]: Entering directory '/sources/vlc/vlc-2.2.6/bin'
   GEN      ../modules/plugins.dat
/bin/sh: line 4: 28165 Segmentation fault ./vlc-cache-gen
../modules
make[2]: *** [Makefile:1527: ../modules/plugins.dat] Error 139
--------------

Using gdb, it seems to occur in a glib function
(g_hash_table_lookup_node).
Has anybody seen this?

glib built with meson still has issues. I suggest sticking to autotools
build whenever it's available, no matter if the package has meson
support.

Have you found any issues with the glib meson build currently in -dev?

lol, that's what this thread seems to imply:
- glib2 built with meson: segfault during build of vlc
- glib2 rebuilt with autotools: no segfault during build of vlc.

Forget about vlc itself segfaulting after rebuild: it's another story (and actually, the primary reason why I had to rebuild vlc :), moving to newer
libva.

Interesting.  Other than a few thousand warnings for unknown pragma, vlc builds fine for me.  On this particular system I'm still using the older libva though.  I have no problem yet running vlc at least until getting
the startup window.

I'll try updating libva and rebuilding vlc.

Build of libva-2.0.0 followed by vlc-2.2.6 produced no errors for me.  I was able to run vlc, but I only tested to the default window.  Is there something I can do to trigger the problem?

I do not know exactly. Note that it is the segfault during the build of vlc, which was related to glib. The other one I got (and which is now fixed) was related to ffmpeg not being recompiled _after_ libva.

Actually, here is my initial build order (in the order new versions appeared in the book):
ffmpeg-3.4
libva-2.0
glib-2.54.2 (using meson, but keeping the libglib-2.0.la file).

Then I noticed vlc had sound but no video. So I decided to rebuild vlc. I got this segfault during build (running ./vlc_cache_gen), and gdb showed it was in a glib function.

I rebuilt glib-2.54.2 with autotools, then vlc, which went to completion. But I got the segfault in vlc (before any interface appeared).

I rebuilt ffmpeg. Now vlc runs (the big bug bunny movie).

What I can do now is to rebuild glib with meson (keeping first libglib-2.0.la, then using the instructions  Bruce provided in his other mail). Then try to rebuild vlc.

Here is the tonight (European time) interesting(!) experiment: I've rebuilt glib2 by the book, but keeping the old .la file. then I've rebuilt vlc, and that went to completion, but when I started vlc, I got immediately a segfault. And guess what, gdb tells it is in a glib2 function (g_hash_table_lookup again)... I have rebuilt ffmpeg, but no change. I have not tried to recompile libva...

Let us try now by removing the .la file, and removing references to it (I'll archive them first, just in case...).

Removing references to the .la file did not do any good. vlc still compiles, but segfault when run.

recompiling glib with autotools, vlc works (no need to recompile vlc)...

Pierre


--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to