New build environment

Tony Castley tony at castley.net
Tue Sep 10 23:47:33 CEST 2002


> On Mon, 09 Sep 2002 21:09:34 EST (+1000)
> "Tony Castley" <tony at castley.net> wrote:
> 
> > ok,
> > 
> > I have got the new build environment "working" on BeOS.
> > 
> > bootstrap works, configure works *BUT* (there is always a but) the 
> > make 
> > fails with:
> > src/misc/modules_plugin.h: In function `module_load':
> > src/misc/modules_plugin.h:37: warning: implicit declaration of 
> > function 
> > `load_add_on'
> > src/misc/modules_plugin.h: In function `module_unload':
> > src/misc/modules_plugin.h:75: warning: implicit declaration of 
> > function 
> > `unload_add_on'
> > src/misc/modules_plugin.h: In function `_module_getsymbol':
> > src/misc/modules_plugin.h:99: warning: implicit declaration of 
> > function 
> > `get_image_symbol'
> > src/misc/modules_plugin.h:100: `B_SYMBOL_TYPE_TEXT' undeclared 
> > (first 
> > use in this function)
> > src/misc/modules_plugin.h:100: (Each undeclared identifier is 
> > reported 
> > only once
> > src/misc/modules_plugin.h:100: for each function it appears in.)
> > 
> > Can anyone give me some pointers?
> 
> I can try...
> B_SYMBOL_TYPE_TEXT: Does the file include <kernel/OS.h>?
> get_image_symbol: Does it include <kernel/image.h>?
> 
> I can't help you with the module_* functions. Are they VLC functions?
> 
>  /Marco
> -- 

Ok I have figured out what is causing the problem.  I have libdl.so 
available so in the modules.c file 

#if defined(HAVE_DLFCN_H)                                /* Linux, BSD, 
Hurd */
#   include <dlfcn.h>                        /* dlopen(), dlsym(), 
dlclose() */
#   define HAVE_DYNAMIC_PLUGINS
#elif defined(HAVE_IMAGE_H)                                          /*
 BeOS */
#   include <image.h>
#   define HAVE_DYNAMIC_PLUGINS
#elif defined(WIN32)
#   define HAVE_DYNAMIC_PLUGINS
#else
#   undef HAVE_DYNAMIC_PLUGINS
#endif

dlfcn.h is included and image.h not.  However in the modules_plugin.h  
#ifdef SYS_BEOS
    *handle = load_add_on( psz_filename );
    return( *handle < 0 );

#elif defined(WIN32)
    *handle = LoadLibrary( psz_filename );
    return( *handle == NULL ); 

#elif defined(RTLD_NOW)

the test is on SYS_BEOS.  

These tests should be consistant.  If we HAVE_DLFCN_H then we should 
use that test in modules_plugin.h to provide a consistant view.



Tony


-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list