oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.55k stars 2.72k forks source link

undefined symbol: EVP_MAC_fetch #5430

Open fax1ty opened 1 year ago

fax1ty commented 1 year ago

What version of Bun is running?

1.0.1+31aec4ebe325982fc0ef27498984b0ad9969162b

What platform is your computer?

Linux 5.15.90.1-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

import { geckos } from "@geckos.io/server";

const io = geckos();
udp.listen(9201);

What is the expected behavior?

No response

What do you see instead?

bun: symbol lookup error: /home/fax1ty/PROJECT/node_modules/node-datachannel/build/Release/node_datachannel.node: undefined symbol: EVP_MAC_fetch

Additional information

"trustedDependencies": ["node-datachannel"]
Electroid commented 11 months ago

The install issue will be fixed with #4959, but the package won't work because we don't implement node:drgram yet, which is being tracked here: #1630

Jarred-Sumner commented 9 months ago

I do not think this is an install issue. The missing symbol error is most likely a symbol Node.js exports for OpenSSL which this library is depending on, and we do not export that symbol.

peetzweg commented 8 months ago

I have the same error message when I tried using Bun with Helia.

import { unixfs } from "@helia/unixfs";
import { createHelia } from "helia";
console.log("Hello via Bun!");
// create a Helia node
const helia = await createHelia();

// create a filesystem on top of Helia, in this case it's UnixFS
const fs = unixfs(helia);

// we will use this TextEncoder to turn strings into Uint8Arrays
const encoder = new TextEncoder();

// add the bytes to your node and receive a unique content identifier
const cid = await fs.addBytes(encoder.encode("Hello World 101"), {
  onProgress: (evt) => {
    console.info("add event", evt.type, evt.detail);
  },
});

console.log("Added file:", cid.toString());
error: Cannot find module "../build/Release/node_datachannel.node" from "/Users/[...]/git/bun-helia/node_modules/node-datachannel/lib/index.js"