Skip to content

JS crash: |ReferenceError: _dlopen is not defined|. #2

Closed

Description

@jn0

The code: import os; print os.fork.__doc__ leads to:
JS crash: |ReferenceError: _dlopen is not defined|. Please let us know about this problem!

Activity

  1. kzigadlo commented on Jun 29, 2011

    @kzigadlo

    I've noticed that this error no longer appears in the python demo, but I was messing around with the OPENjpeg demo (http://syntensity.com/static/openjpeg.html), and I got a similar issue when I tried to add some options to the command line string. Here is the modification:

    try {
    callMain(['-i', 'image.j2k', '-o', 'image.raw', '-l','3']);
    } catch(e) {
    alert(e.name + ": " + e.message);
    }

    instead of callMain(['-i', 'image.j2k', '-o', 'image.raw']); in j2k_to_image() (line 17). The error message is nearly identical:

     Reference Error: ___01__isoc99sscanf_ is not defined
    

    Seems like a library import issue, but OPENjpeg imports the correct library, <stdio.h>. I tracked the function down in openjpeg.cc.js, and it is only used when either the '-l' or '-r' options are specified, which is why the code works in all other cases.

  2. max99x commented on Jun 30, 2011

    @max99x
    Contributor

    These are basically parts of the standard C library that are not yet implemented or not linked correctly to their implementations. dlopen() was recently implemented. ___01__isoc99sscanf_ should probably be linked to sscanf.

  3. kripken commented on Jul 12, 2012

    @kripken
    Member

    This should no longer be an issue since we moved to bundled headers (which avoid weirdness like ___01__isoc99sscanf_), but would require a rebuild of course so the online python demo might still not work. If you rebuild and it still fails please comment.

  4. added a commit that references this issue on Mar 21, 2019
  5. added a commit that references this issue on Apr 28, 2019
  6. added a commit that references this issue on May 5, 2020
  7. added a commit that references this issue on May 15, 2020
  8. added a commit that references this issue on Feb 14, 2022
  9. added a commit that references this issue on Mar 23, 2022
  10. added a commit that references this issue on Apr 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions