help with dl module and clang

Daniel Braniss danny at cs.huji.ac.il
Sat Nov 3 14:52:15 UTC 2018


Hi,
I have a program that loads some modules via dlopen(),  these modules call some routines
which are in the main program, this works when using gcc, but with cc it does not.

when compiling the main program I use  -export-dynamic, and the modules link fine when compiled with
gcc, but when compiling with clang/cc i get dlerror: ...Undefined symbol …
BTW, when linking the main program with cc I get
	/usr/bin/ld: warning: cannot find entry symbol xport-dynamic; defaulting to 0000000000402140


thanks,
	danny
PS: I’m running FreeBSD 11.2



More information about the freebsd-hackers mailing list