Skip to content

Conversation

@dmelo
Copy link

@dmelo dmelo commented Nov 22, 2022

Without linking, the following error happens:

/usr/bin/ld: ./libav/libavformat/libavformat.a(matroskadec.o): in function `matroska_decode_buffer':
/home/dmelo/proj3/untrunc/libav/libavformat/matroskadec.c:1163: undefined reference to `BZ2_bzDecompressInit'
/usr/bin/ld: /home/dmelo/proj3/untrunc/libav/libavformat/matroskadec.c:1177: undefined reference to `BZ2_bzDecompress'
/usr/bin/ld: /home/dmelo/proj3/untrunc/libav/libavformat/matroskadec.c:1171: undefined reference to `BZ2_bzDecompressEnd'
/usr/bin/ld: /home/dmelo/proj3/untrunc/libav/libavformat/matroskadec.c:1180: undefined reference to `BZ2_bzDecompressEnd'

Running on Fedora 35:

❯ uname -a
Linux solomon 5.19.16-100.fc35.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Oct 16 21:50:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Without linking, the following error happens:

```
/usr/bin/ld: ./libav/libavformat/libavformat.a(matroskadec.o): in function `matroska_decode_buffer':
/home/dmelo/proj3/untrunc/libav/libavformat/matroskadec.c:1163: undefined reference to `BZ2_bzDecompressInit'
/usr/bin/ld: /home/dmelo/proj3/untrunc/libav/libavformat/matroskadec.c:1177: undefined reference to `BZ2_bzDecompress'
/usr/bin/ld: /home/dmelo/proj3/untrunc/libav/libavformat/matroskadec.c:1171: undefined reference to `BZ2_bzDecompressEnd'
/usr/bin/ld: /home/dmelo/proj3/untrunc/libav/libavformat/matroskadec.c:1180: undefined reference to `BZ2_bzDecompressEnd'
```

Running on Fedora 35:

```
❯ uname -a
Linux solomon 5.19.16-100.fc35.x86_64 ponchio#1 SMP PREEMPT_DYNAMIC Sun Oct 16 21:50:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
```
@CameronDevine
Copy link

I needed this change to successfully compile on Ubuntu 20.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants