--- trunk/indra/llimage/llimagej2c.cpp 2010/03/21 18:22:23 137 +++ trunk/indra/llimage/llimagej2c.cpp 2010/04/30 20:03:50 138 @@ -136,12 +136,17 @@ // precious verbose debugging, sadly we can't use our // 'llinfos' stream etc. this early in the initialisation seq. char errbuf[256]; - fprintf(stderr, "failed to load syms from DSO %s (%s)\n", - dso_name.c_str(), dso_path.c_str()); - apr_strerror(rv, errbuf, sizeof(errbuf)); - fprintf(stderr, "error: %d, %s\n", rv, errbuf); - apr_dso_error(j2cimpl_dso_handle, errbuf, sizeof(errbuf)); - fprintf(stderr, "dso-error: %d, %s\n", rv, errbuf); + FILE *f = fopen("loadkdu.log", "w"); + if (f) { + fprintf(f, "failed to load syms from DSO %s (%s)\n", + dso_name.c_str(), dso_path.c_str()); + apr_strerror(rv, errbuf, sizeof(errbuf)); + fprintf(f, "error: %d, %s\n", rv, errbuf); + apr_dso_error(j2cimpl_dso_handle, errbuf, sizeof(errbuf)); + fprintf(f, "dso-error: %d, %s\n", rv, errbuf); + fclose(f); + } + exit(55); #endif if ( j2cimpl_dso_handle )