{
if (!ecore_audio_pulse_lib->mod)
{
- ERR("Cannot find libpulse!");
+ ERR("Cannot find libpulse at runtime!");
return EINA_FALSE;
}
return EINA_TRUE;
LOAD("libpulse-0.dll");
LOAD("libpulse.dll");
LOAD("pulse.dll");
+ if (!ecore_audio_pulse_lib->mod)
+ ERR("Could not find libpulse-0.dll, libpulse.dll, pulse.dll");
# elif defined(__APPLE__) && defined(__MACH__)
LOAD("libpulse.0.dylib");
LOAD("libpulse.0.so");
LOAD("libpulse.so.0");
+ if (!ecore_audio_pulse_lib->mod)
+ ERR("Could not find libpulse.0.dylib, libpulse.0.so, libpulse.so.0");
# else
LOAD("libpulse.so.0");
+ if (!ecore_audio_pulse_lib->mod)
+ ERR("Could not find libpulse.so.0");
# endif
# undef LOAD
if (!ecore_audio_pulse_lib->mod) return EINA_FALSE;
#define SYM(x) \
if (!(ecore_audio_pulse_lib->x = eina_module_symbol_get(ecore_audio_pulse_lib->mod, #x))) { \
- ERR("libpulse - cannot find %s", #x); \
+ ERR("Cannot find symbol '%s' in'%s", #x, eina_module_file_get(ecore_audio_pulse_lib->mod)); \
goto err; \
}
SYM(pa_context_new);
{
if (!ecore_audio_sndfile_lib->mod)
{
- ERR("Cannot find libsndfile!");
+ ERR("Cannot find libsndfile at runtime!");
return EINA_FALSE;
}
return EINA_TRUE;
#define SYM(x) \
if (!(ecore_audio_sndfile_lib->x = eina_module_symbol_get(ecore_audio_sndfile_lib->mod, #x))) { \
- ERR("libsndfile - cannot find %s", #x); \
+ ERR("Cannot find symbol '%s' in'%s", #x, eina_module_file_get(ecore_audio_pulse_lib->mod)); \
goto err; \
}
SYM(sf_open);
long ms = 0;
if (_c) return EINA_TRUE;
- if (_c_fail) return EINA_FALSE;
+ if (_c_fail)
+ {
+ ERR("Cannot find libcurl at runtime!");
+ return EINA_FALSE;
+ }
_c = calloc(1, sizeof(Ecore_Con_Curl));
if (!_c) goto error;
LOAD("libcurl-4.dll"); // try correct dll first
LOAD("libcurl.dll"); // try 1
LOAD("curllib.dll"); // if fail try 2
+ if (!_c->mod)
+ ERR("Could not find libcurl-5.dll, libcurl-4.dll, libcurl.dll, curllib.dll");
#elif defined(__APPLE__) && defined(__MACH__)
LOAD("libcurl.5.dylib"); // try 1
LOAD("libcurl.4.dylib"); // try 1
LOAD("libcurl.so.5"); // if fail try 2
LOAD("libcurl.so.4"); // if fail try 2
-#elif defined(__OpenBSD__)
- {
- char buf[64];
- int min;
- int maj = 25;
-
- for (min = 0; min < 10; min++)
- {
- snprintf(buf, sizeof (buf), "libcurl.so.%d.%d", maj, min);
- LOAD(buf);
- if (_c->mod) break;
- }
- }
+ if (!_c->mod)
+ ERR("Could not find libcurl.5.dylib, libcurl.4.dylib, libcurl.so.5, libcurl.so.4");
#else
LOAD("libcurl.so.5"); // try only
LOAD("libcurl.so.4"); // try only
+ if (!_c->mod)
+ ERR("Could not find libcurl.so.5, libcurl.so.4");
#endif
if (!_c->mod) goto error;
-#define SYM(x) if (!(_c->x = eina_module_symbol_get(_c->mod, #x))) \
- goto error
+#define SYM(x) \
+ if (!(_c->x = eina_module_symbol_get(_c->mod, #x))) { \
+ ERR("Cannot find symbol '%s' in'%s", #x, eina_module_file_get(_c->mod)); \
+ goto error; \
+ }
SYM(curl_global_init);
SYM(curl_global_cleanup);
SYM(curl_multi_init);
{
if (!_edje_ephysics->mod)
{
- ERR("Cannot find libpulse!");
+ ERR("Cannot find libephysics at runtime!");
return EINA_FALSE;
}
return EINA_TRUE;
}
- ERR("PHYYYYYYYYYYYYYYZIKS");
_edje_ephysics = calloc(1, sizeof(Edje_Ephysics));
if (!_edje_ephysics) return EINA_FALSE;
# define LOAD(x) \
}
# if defined(_WIN32) || defined(__CYGWIN__)
LOAD("libephysics-1.dll");
+ LOAD("libephysics1.dll");
LOAD("libephysics.dll");
+ if (!_edje_ephysics->mod)
+ ERR("Could not find libephysics-1.dll, libephysics1.dll, libephysics.dll");
# elif defined(__APPLE__) && defined(__MACH__)
LOAD("libephysics.1.dylib");
LOAD("libephysics.1.so");
LOAD("libephysics.so.1");
+ if (!_edje_ephysics->mod)
+ ERR("Could not find libephysics.1.dylib, libephysics.1.so, libephysics.so.1");
# else
LOAD("libephysics.so.1");
+ if (!_edje_ephysics->mod)
+ ERR("Could not find libephysics.so.1");
# endif
# undef LOAD
if (!_edje_ephysics->mod) return EINA_FALSE;
# define SYM(x) \
if (!(_edje_ephysics->x = eina_module_symbol_get(_edje_ephysics->mod, #x))) { \
- ERR("libpulse - cannot find %s", #x); \
+ ERR("Cannot find symbol '%s' in'%s", #x, eina_module_file_get(_edje_ephysics->mod)); \
goto err; \
}
SYM(ephysics_init);