Patrick:

> During the build of SUNWgnome-media I get the following error. I was
> able to compile SUNWgnome-media about two weeks ago or so.
[...]
> pkgbuild: gtk-doc: Running scanner gst-plugins-base-libs-scan
> pkgbuild:
> pkgbuild: GThread-ERROR **: GThread system may only be initialized once.
> pkgbuild: aborting...
> pkgbuild: Could not initialize GStreamer: Error re-scanning registry , child 
> ter
> minated by signal
> pkgbuild: Scan failed:

This problem is hard to debug.  If you look at the Makefile, you'll
notice that the scan program gets deleted automatically after it is run.
You probably need to hack the Makefile so it doesn't delete the program,
then try running it by hand and see what the error might be.

If you look in the Makefile, the call to gtkdoc-scangobj is what builds
the gst-plugins-base-libs-scan program.  This also generates the
message:

gtk-doc: Running scanner gst-plugins-base-libs-scan

Here's a test you can try.  Notice this program:

    docs/libs/.libs/gst-plugins-base-libs-scan

What happens when you just try to run this program from the command
line?  Does it hang?  It doesn't hang when I try to run it.

Looking at the gtkdoc-scangobj script, note that it creates the
gst-plugins-base-libs-scan.c file on the fly, compiles it and then
runs it as follows (looks like with no arguments):

print "gtk-doc: Running scanner $MODULE-scan\n";
system("sh -c ./$MODULE-scan") == 0 or die "Scan failed: $!\n";

Note that the gtkdoc-scangobj script removes the files it creates
(including the gst-plugins-base-libs-scan.c file) at the end of the
script with this command:

unlink "./$MODULE-scan.c", "./$MODULE-scan.o", "./$MODULE-scan.lo", 
"./$MODULE-scan";

Might be useful to hack the script to not unlink so the generated
program that is hanging doesn't get deleted.  Then you can try
running the $MODULE-scan script (instead of the one in .libs) and
see if that hangs.

I remember that we had a weird problem in August, 2006 that was
similar.  You might also refer to it for reference:

   http://bugzilla.gnome.org/show_bug.cgi?id=350949

Brian

Reply via email to