Hi,
attached a patch fixing it.
regards.
Haithem.
On Sat, Oct 8, 2011 at 9:07 PM, haithem rahmani
<[email protected]>wrote:
> >in the file "fusion_world_set_leave_callback"
>
> I meant ./lib/fusion/fusion.c
>
>
> On Sat, Oct 8, 2011 at 9:06 PM, haithem rahmani <[email protected]
> > wrote:
>
>> Hi,
>>
>> the master branch is failing to compile again:
>>
>>
>> /bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/include/freetype2
>> -I/usr/include/libpng12 -Wall -Wstrict-prototypes -Wmissing-prototypes
>> -Wno-strict-aliasing -Werror-implicit-function-declaration -O2 -g2
>> -ffast-math -pipe -D_GNU_SOURCE -std=gnu99
>> -Werror-implicit-function-declaration -o dfbdump dfbdump.o ../src/
>> libdirectfb.la ../lib/fusion/libfusion.la ../lib/direct/libdirect.la-ldl
>> -lrt -lpthread
>> libtool: link: gcc -I/usr/include/freetype2 -I/usr/include/libpng12 -Wall
>> -Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing
>> -Werror-implicit-function-declaration -O2 -g2 -ffast-math -pipe
>> -D_GNU_SOURCE -std=gnu99 -Werror-implicit-function-declaration -o
>> .libs/dfbdump dfbdump.o ../src/.libs/libdirectfb.so
>> /home/rahmanih/work/git_repos/DirectFB/lib/fusion/.libs/libfusion.so
>> ../lib/fusion/.libs/libfusion.so
>> /home/rahmanih/work/git_repos/DirectFB/lib/direct/.libs/libdirect.so
>> ../lib/direct/.libs/libdirect.so -ldl -lrt -lpthread -Wl,-rpath
>> -Wl,/usr/local/lib
>> ../src/.libs/libdirectfb.so: undefined reference to
>> `fusion_world_set_leave_callback'
>>
>>
>> `fusion_world_set_leave_callback' is protected by the flag
>> "FUSION_BUILD_MULTI" in the file "fusion_world_set_leave_callback" but it's
>> not in the file "./src/core/core.c"
>>
>>
>>
>> regards.
>>
>>
>> On Thu, Sep 22, 2011 at 11:06 PM, haithem rahmani <
>> [email protected]> wrote:
>>
>>> Hi,
>>> I just updated my tree rebuilt and ran dfbinfo and got the following
>>> error:
>>>
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.6.0-pre1
>>> |~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> (c) 2001-2010 The world wide DirectFB Open Source Community
>>> (c) 2000-2004 Convergence (integrated media) GmbH
>>> ----------------------------------------------------------------
>>>
>>> (*) DirectFB/Core: Single Application Core. (2011-09-22 21:36)
>>> (*) GLX/Surfaces: Using visual 0xf5 (24bit) and 0xdf (32bit)
>>> [New Thread 0xb7fddb70 (LWP 15943)]
>>> (*) Direct/Thread: Started 'Joystick Input' (-1) [INPUT OTHER/OTHER 0/0]
>>> <8388608>...
>>> (!!!) *** ONCE [Joystick sends JS_EVENT_INIT events, make sure it has
>>> been calibrated using 'jscal -c'
>>> ] *** [joystick.c:99 in joystick_handle_event()]
>>> (*) DirectFB/Input: Joystick (1) 0.9 (directfb.org)
>>> [New Thread 0xb77dcb70 (LWP 15944)]
>>> (*) Direct/Thread: Started 'Joystick Input' (-1) [INPUT OTHER/OTHER 0/0]
>>> <8388608>...
>>> (*) DirectFB/Input: Joystick (2) 0.9 (directfb.org)
>>> [New Thread 0xb6fdbb70 (LWP 15945)]
>>> (*) Direct/Thread: Started 'X11 Input' (-1) [INPUT OTHER/OTHER 0/0]
>>> <8388608>...
>>> (*) DirectFB/Input: X11 Input 0.1 (directfb.org)
>>> (*) DirectFB/Genefx: MMX detected and enabled
>>> (*) Direct/Modules: suppress module 'gl'
>>> (*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
>>> (*) DirectFB/Core/WM: Default 0.3 (directfb.org)
>>> .
>>> .
>>> .
>>> Input (00) X11 Input (primary keyboard)
>>> Type: KEYBOARD MOUSE JOYSTICK
>>> Caps: KEYS AXES BUTTONS
>>> Min. Keycode: 8
>>> Max. Keycode: 255
>>> Max. Axis: 0
>>> Max. Button: 0
>>>
>>> *** glibc detected *** /usr/local/bin/dfbinfo: free(): invalid pointer:
>>> 0x08062b14 ***
>>>
>>> the call stack is the following:
>>>
>>> (gdb) bt
>>> #0 0x00110416 in __kernel_vsyscall ()
>>> #1 0x430ad67f in raise () from /lib/libc.so.6
>>> #2 0x430aefb5 in abort () from /lib/libc.so.6
>>> #3 0x430e9fd7 in __libc_message () from /lib/libc.so.6
>>> #4 0x430f0f95 in malloc_printerr () from /lib/libc.so.6
>>> #5 0x434ab250 in operator delete(void*) () from /usr/lib/libstdc++.so.6
>>> #6 0x0014036b in CoreSurface_Deinit_Dispatch (_dispatch=0x8062b14) at
>>> ./CoreSurface.cpp:252
>>> #7 0x0016261a in surface_destructor (object=0x8062960, zombie=false,
>>> ctx=0x0) at surface.c:70
>>> #8 0x001f40c8 in object_reference_watcher (ctx=0x804cc60, call_arg=1,
>>> caller=<optimized out>,
>>> call_ptr=<optimized out>, serial=<optimized out>, ret_val=<optimized
>>> out>) at object.c:140
>>> #9 object_reference_watcher (caller=0, call_arg=1, call_ptr=0x0,
>>> ctx=0x804cc60, serial=0, ret_val=0xbfffee4c)
>>> at object.c:65
>>> #10 0x001f5951 in fusion_ref_down (ref=0x806297c, global=true) at
>>> ref.c:828
>>> #11 0x0015d60c in dfb_surface_unlink (link=0x8064248) at
>>> ../../src/core/surface.h:239
>>> #12 region_destructor (object=0x8064140, zombie=false, ctx=0x0) at
>>> layer_region.c:111
>>> #13 0x001f40c8 in object_reference_watcher (ctx=0x804cab0, call_arg=1,
>>> caller=<optimized out>,
>>> call_ptr=<optimized out>, serial=<optimized out>, ret_val=<optimized
>>> out>) at object.c:140
>>> #14 object_reference_watcher (caller=0, call_arg=1, call_ptr=0x0,
>>> ctx=0x804cab0, serial=0, ret_val=0xbfffef1c)
>>> at object.c:65
>>> #15 0x001f5951 in fusion_ref_down (ref=0x806415c, global=false) at
>>> ref.c:828
>>> #16 0x00131a2d in dfb_layer_region_unref (object=<optimized out>) at
>>> ./core/layer_region.h:57
>>> #17 IDirectFB_Destruct (thiz=0x8063308) at idirectfb.c:295
>>> #18 0x00131b04 in IDirectFB_Release (thiz=0x8063308) at idirectfb.c:331
>>> #19 0x0804873c in main (argc=1, argv=0xbffff064) at dfbinfo.c:104
>>>
>>> regards
>>> Haithem.
>>> --
>>> *
>>> "If you ask a question - you will be a fool for 5 minutes, otherwise
>>> ignorant for rest of your life"
>>> *
>>>
>>>
>>
>>
>> --
>> *
>> "If you ask a question - you will be a fool for 5 minutes, otherwise
>> ignorant for rest of your life"
>> *
>>
>>
>
>
> --
> *
> "If you ask a question - you will be a fool for 5 minutes, otherwise
> ignorant for rest of your life"
> *
>
>
--
*
"If you ask a question - you will be a fool for 5 minutes, otherwise
ignorant for rest of your life"
*
diff --git a/lib/fusion/fusion.c b/lib/fusion/fusion.c
index 8f34865..a4b7744 100644
--- a/lib/fusion/fusion.c
+++ b/lib/fusion/fusion.c
@@ -2846,6 +2846,17 @@ fusion_world_set_fork_callback( FusionWorld *world,
}
/*
+ * Registers a callback called when a slave exits.
+ */
+void
+fusion_world_set_leave_callback( FusionWorld *world,
+ FusionLeaveCallback callback,
+ void *ctx )
+{
+ D_MAGIC_ASSERT( world, FusionWorld );
+}
+
+/*
* Return the index of the specified world.
*/
int
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev