Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Nov 2018 16:51:58 +0200
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        freebsd-hackers@FreeBSD.org
Subject:   help with dl module and clang
Message-ID:  <4B8101F4-9A89-4486-8DF3-93DC799EF6D4@cs.huji.ac.il>

next in thread | raw e-mail | index | archive | help
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 =
=E2=80=A6
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=E2=80=99m running FreeBSD 11.2




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B8101F4-9A89-4486-8DF3-93DC799EF6D4>