You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by L'oiseau de mer <oi...@gmail.com> on 2012/01/06 13:37:15 UTC

[BUILD]solaris build failure for test --enable-gstreamer

Because Solaris 10 hasn't any gstreamer version enabled , the system's
gstreamer is 0.8.
I try to build new gstreamer for AOO and install to a independant area,
the area include "glib-2.20.5 , libxml-2.7.8 , gstreamer-0.10.24 ,
gstreamer-plugins-base-0.10.24, gst-plugins-good-0.10.16、liboil-0.3.7"
And i use /usr/sfw/bin/gcc build them, and it is success.

Then i build AOO and --enable-gstreamer is passed.
the compiler for building AOO is SolarisStudio 12.3

But when building, it appear the error message:

=============
Building module avmedia
=============

Entering /UNIX-LAB/ooo/main/avmedia/source/quicktime

 Nothing to build for GUIBASE=unx

Entering /UNIX-LAB/ooo/main/avmedia/source/gstreamer

Compiling: avmediagst/source/gstreamer/gstplayer.cxx
"/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.hxx", line 164:
Error: Formal argument atomic of type int* in call to
g_atomic_int_get(int*) is being passed const int*.
"/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.cxx", line 196:
Error: Formal argument atomic of type void** in call to
g_atomic_pointer_get(void**) is being passed _GstElement**.
"/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.cxx", line 933:
Error: Formal argument atomic of type void** in call to
g_atomic_pointer_get(void**) is being passed avmedia::gst::Window**.
"/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.cxx", line 939:
Error: Formal argument atomic of type void** in call to
g_atomic_pointer_get(void**) is being passed avmedia::gst::Window**.
"/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.cxx", line 939:
Error: Formal argument atomic of type void** in call to
g_atomic_pointer_get(void**) is being passed avmedia::gst::Window**.

======================================================

So,is this compiler's problem or my build gstreamer lib has problem ?
Can anyone help me?Thanks.

Re: [BUILD]solaris build failure for test --enable-gstreamer

Posted by L'oiseau de mer <oi...@gmail.com>.
I have done some test later, i try to adjust PKG_CONFIG_PATH and
LD_LIBRARY_PATH,
let configue first detect the glib in this independant area (/opt/mouette).
After run configure, i have notice in the file SolarisX86Env.Set.sh:
================================================================
GTK_CFLAGS="-I/opt/mouette/include/glib-2.0 -I/opt/mouette/lib/glib-2.0/include
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/
include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/f
reetype2  "
GTK_LIBS="-L/opt/mouette/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoxft-1.
0 -lpangox-1.0 -lpango-1.0 -lgdk_pixbuf_xlib-2.0 -lgdk_pixbuf-2.0 -lm -lmlib -lg
object-2.0 -lgmodule-2.0 -lglib-2.0  "
GTHREAD_CFLAGS="-D_REENTRANT -D_PTHREADS -I/opt/mouette/include/glib-2.0 -I/opt/
mouette/lib/glib-2.0/include  "
GTHREAD_LIBS="-L/opt/mouette/lib -lgthread-2.0 -lpthread -lthread -lrt -lglib-2.
0  "
ENABLE_STATIC_GTK="FALSE"
ENABLE_GSTREAMER="TRUE"
......

GSTREAMER_CFLAGS="-D_REENTRANT -D_PTHREADS -I/opt/mouette/include/glib-2.0 -I/op
t/mouette/lib/glib-2.0/include -I/opt/mouette/include/gstreamer-0.10 -I/opt/moue
tte/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/inc
lude/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include
-I/usr/sfw/include/freetype2  "
GSTREAMER_LIBS="-L/opt/mouette/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_p
ixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgstinterfaces-0.1
0 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lpthread -lthread
-lrt -lxml2 -lglib-2.0  "
============================================================

it have detect the new glib library, and i try to build AOO by using
this glib(2.20.5).
But in building avmedia, it appear these Error message:

=============
Building module avmedia
=============

Entering /UNIX-LAB/ooo/main/avmedia/source/quicktime

 Nothing to build for GUIBASE=unx

Entering /UNIX-LAB/ooo/main/avmedia/source/gstreamer

Making:    libavmediagst.so
Undefined                       first referenced
 symbol                             in file
g_key_file_get_comment              /opt/mouette/lib/libgstreamer-0.10.so
g_option_group_add_entries          /opt/mouette/lib/libgstreamer-0.10.so
g_once_init_leave                   /opt/mouette/lib/libgstinterfaces-0.10.so
g_mapped_file_get_contents          /opt/mouette/lib/libgstreamer-0.10.so
g_return_if_fail_warning            /opt/mouette/lib/libgstinterfaces-0.10.so
g_option_error_quark                /opt/mouette/lib/libgstreamer-0.10.so
g_mapped_file_free                  /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_load_from_file           /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_has_group                /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_free                     /opt/mouette/lib/libgstreamer-0.10.so
g_slice_alloc0                      /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_get_value                /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_set_value                /opt/mouette/lib/libgstreamer-0.10.so
g_option_group_set_translation_domain /opt/mouette/lib/libgstreamer-0.10.so
g_option_context_add_group          /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_remove_group             /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_remove_key               /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_set_string               /opt/mouette/lib/libgstreamer-0.10.so
g_mkdir_with_parents                /opt/mouette/lib/libgstreamer-0.10.so
g_date_get_type                     /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_get_groups               /opt/mouette/lib/libgstreamer-0.10.so
g_unlink                            /opt/mouette/lib/libgstreamer-0.10.so
g_intern_string                     /opt/mouette/lib/libgstreamer-0.10.so
g_assertion_message                 /opt/mouette/lib/libgstreamer-0.10.so
g_slice_free1                       /opt/mouette/lib/libgstreamer-0.10.so
g_slice_alloc                       /opt/mouette/lib/libgstreamer-0.10.so
g_once_init_enter_impl              /opt/mouette/lib/libgstinterfaces-0.10.so
g_mapped_file_get_length            /opt/mouette/lib/libgstreamer-0.10.so
g_mapped_file_new                   /opt/mouette/lib/libgstreamer-0.10.so
g_intern_static_string              /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_new                      /opt/mouette/lib/libgstreamer-0.10.so
g_type_register_static_simple       /opt/mouette/lib/libgstreamer-0.10.so
g_option_context_parse              /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_to_data                  /opt/mouette/lib/libgstreamer-0.10.so
g_option_context_new                /opt/mouette/lib/libgstreamer-0.10.so
g_option_context_free               /opt/mouette/lib/libgstreamer-0.10.so
g_option_group_new                  /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_get_keys                 /opt/mouette/lib/libgstreamer-0.10.so
g_option_group_set_parse_hooks      /opt/mouette/lib/libgstreamer-0.10.so
g_assertion_message_expr            /opt/mouette/lib/libgstreamer-0.10.so
g_slice_copy                        /opt/mouette/lib/libgstreamer-0.10.so
g_file_set_contents                 /opt/mouette/lib/libgstreamer-0.10.so
g_key_file_set_comment              /opt/mouette/lib/libgstreamer-0.10.so
g_option_context_set_ignore_unknown_options
/opt/mouette/lib/libgstreamer-0.10.so
ld: fatal: symbol referencing errors. No output written to
../../unxsoli4.pro/lib/libavmediagst.so
dmake:  Error code 2, while making '../../unxsoli4.pro/lib/libavmediagst.so'
---* tg_merge.mk *---

1 module(s):
        avmedia
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making
/UNIX-LAB/ooo/main/avmedia/source/gstreamer

When you have fixed the errors in that module you can resume the build
by running:

        build --all:avmedia

==========================================================
is this message mean my glib version still not enough new, so findn't
these fonction?
(Need glib 2.30?)


在 2012年1月8日下午10:38,Michael Stahl <ms...@openoffice.org> 寫道:
> On 06/01/12 13:37, L'oiseau de mer wrote:
>> Because Solaris 10 hasn't any gstreamer version enabled , the system's
>> gstreamer is 0.8.
>> I try to build new gstreamer for AOO and install to a independant area,
>> the area include "glib-2.20.5 , libxml-2.7.8 , gstreamer-0.10.24 ,
>> gstreamer-plugins-base-0.10.24, gst-plugins-good-0.10.16、liboil-0.3.7"
>> And i use /usr/sfw/bin/gcc build them, and it is success.
>>
>> Then i build AOO and --enable-gstreamer is passed.
>> the compiler for building AOO is SolarisStudio 12.3
>
> AFAIK in Hamburg we never built GStreamer support on Solaris;
> i have built it successfully with configure on Solaris 11 early in 2010,
> which required some fixes to avmediagst (the fixes are integrated in
> DEV300m106).
>
> so in the worst case, leaving out GStreamer on Solaris wouldn't be a
> feature regression.
>
>> But when building, it appear the error message:
>>
>> =============
>> Building module avmedia
>> =============
>>
>> Entering /UNIX-LAB/ooo/main/avmedia/source/quicktime
>>
>>  Nothing to build for GUIBASE=unx
>>
>> Entering /UNIX-LAB/ooo/main/avmedia/source/gstreamer
>>
>> Compiling: avmediagst/source/gstreamer/gstplayer.cxx
>> "/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.hxx", line 164:
>> Error: Formal argument atomic of type int* in call to
>> g_atomic_int_get(int*) is being passed const int*.
>> "/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.cxx", line 196:
>> Error: Formal argument atomic of type void** in call to
>> g_atomic_pointer_get(void**) is being passed _GstElement**.
>> "/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.cxx", line 933:
>> Error: Formal argument atomic of type void** in call to
>> g_atomic_pointer_get(void**) is being passed avmedia::gst::Window**.
>> "/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.cxx", line 939:
>> Error: Formal argument atomic of type void** in call to
>> g_atomic_pointer_get(void**) is being passed avmedia::gst::Window**.
>> "/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.cxx", line 939:
>> Error: Formal argument atomic of type void** in call to
>> g_atomic_pointer_get(void**) is being passed avmedia::gst::Window**.
>>
>> ======================================================
>>
>> So,is this compiler's problem or my build gstreamer lib has problem ?
>> Can anyone help me?Thanks.
>
> i didn't encounter the problems you have, guess you are using an older
> version of glib.
>
> in glib 2.30 the signature looks like this, which shouldn't cause this
> problem:
>
>   gpointer g_atomic_pointer_get(volatile void  *atomic);
>

Re: [BUILD]solaris build failure for test --enable-gstreamer

Posted by Michael Stahl <ms...@openoffice.org>.
On 06/01/12 13:37, L'oiseau de mer wrote:
> Because Solaris 10 hasn't any gstreamer version enabled , the system's
> gstreamer is 0.8.
> I try to build new gstreamer for AOO and install to a independant area,
> the area include "glib-2.20.5 , libxml-2.7.8 , gstreamer-0.10.24 ,
> gstreamer-plugins-base-0.10.24, gst-plugins-good-0.10.16、liboil-0.3.7"
> And i use /usr/sfw/bin/gcc build them, and it is success.
> 
> Then i build AOO and --enable-gstreamer is passed.
> the compiler for building AOO is SolarisStudio 12.3

AFAIK in Hamburg we never built GStreamer support on Solaris;
i have built it successfully with configure on Solaris 11 early in 2010,
which required some fixes to avmediagst (the fixes are integrated in
DEV300m106).

so in the worst case, leaving out GStreamer on Solaris wouldn't be a
feature regression.

> But when building, it appear the error message:
> 
> =============
> Building module avmedia
> =============
> 
> Entering /UNIX-LAB/ooo/main/avmedia/source/quicktime
> 
>  Nothing to build for GUIBASE=unx
> 
> Entering /UNIX-LAB/ooo/main/avmedia/source/gstreamer
> 
> Compiling: avmediagst/source/gstreamer/gstplayer.cxx
> "/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.hxx", line 164:
> Error: Formal argument atomic of type int* in call to
> g_atomic_int_get(int*) is being passed const int*.
> "/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.cxx", line 196:
> Error: Formal argument atomic of type void** in call to
> g_atomic_pointer_get(void**) is being passed _GstElement**.
> "/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.cxx", line 933:
> Error: Formal argument atomic of type void** in call to
> g_atomic_pointer_get(void**) is being passed avmedia::gst::Window**.
> "/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.cxx", line 939:
> Error: Formal argument atomic of type void** in call to
> g_atomic_pointer_get(void**) is being passed avmedia::gst::Window**.
> "/UNIX-LAB/ooo/main/avmedia/source/gstreamer/gstplayer.cxx", line 939:
> Error: Formal argument atomic of type void** in call to
> g_atomic_pointer_get(void**) is being passed avmedia::gst::Window**.
> 
> ======================================================
> 
> So,is this compiler's problem or my build gstreamer lib has problem ?
> Can anyone help me?Thanks.

i didn't encounter the problems you have, guess you are using an older
version of glib.

in glib 2.30 the signature looks like this, which shouldn't cause this
problem:

   gpointer g_atomic_pointer_get(volatile void  *atomic);