pike.git / src / dynamic_load.c

version» Context lines:

pike.git/src/dynamic_load.c:10:   # include "constants.h"   # include "pike_error.h"   # include "module.h"   # include "stralloc.h"   # include "pike_macros.h"   # include "main.h"   # include "constants.h"   # include "language.h"   # include "lex.h"    - RCSID("$Id: dynamic_load.c,v 1.61 2002/04/30 22:55:31 mast Exp $"); + RCSID("$Id: dynamic_load.c,v 1.62 2002/05/10 21:53:14 per Exp $");      #else /* TESTING */      #include <stdio.h>      #endif /* !TESTING */      #ifdef HAVE_ERRNO_H   #include <errno.h>   #endif /* HAVE_ERRNO_H */
pike.git/src/dynamic_load.c:383:    if(sp[-args].type != T_STRING)    Pike_error("Bad argument 1 to load_module()\n");       module_name = sp[-args].u.string->str;       /* Removing RTLD_GLOBAL breaks some PiGTK themes - Hubbe */    /* Using RTLD_LAZY is faster, but makes it impossible to    * detect linking problems at runtime..    */    module=dlopen(module_name, -  RTLD_NOW |RTLD_GLOBAL ); +  RTLD_NOW /*|RTLD_GLOBAL*/ );       if(!module)    {    const char *err = dlerror();    if(!err) err = "Unknown reason";    if (sp[-args].u.string->len < 1024) {    Pike_error("load_module(\"%s\") failed: %s\n",    sp[-args].u.string->str, err);    } else {    Pike_error("load_module() failed: %s\n", err);