Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] Linking ffmpeg libavfilter error: undefined reference to symbol 'dlopen@@GLIBC_2.2.5'
@ 2023-04-06  5:59 david Atkins
  0 siblings, 0 replies; only message in thread
From: david Atkins @ 2023-04-06  5:59 UTC (permalink / raw)
  To: ffmpeg-devel

I'm writing a new filter for ffmpeg and need to load a dynamic library using dlopen from dlfcn.h
when I "make" if get the following
LD      ffmpeg_g
/usr/bin/ld: libavfilter/libavfilter.a(vsrc_plugin_source.o): undefined reference to symbol 'dlopen@@GLIBC_2.2.5'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libdl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:131: ffmpeg_g] Error 1
If I comment out the dlopen then all builds okay, searching widely suggests that -ldl is needed but this error suggests libdl is being used so should be already managed by configure.
Any suggestions as to how to resolve this, if the answer is "add -ldl" then where does the ffmpeg build system expect it to be added?
I've tried to build one of the other filters that uses dlopen and get a similar issue.

David

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-06  5:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-06  5:59 [FFmpeg-devel] Linking ffmpeg libavfilter error: undefined reference to symbol 'dlopen@@GLIBC_2.2.5' david Atkins

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git