[augeas-devel] adding public api calls
David Lutterkort
lutter at redhat.com
Fri May 14 20:21:11 UTC 2010
On Fri, 2010-05-14 at 09:02 -0400, Christopher Harvey wrote:
> I started coding aug_lens_put and it's going ok, but I'm having trouble
> adding public api calls. Consider the attached patch. When I compile a
> link against the library in the src/.libs file I get compile errors:
>
> test_put.c:(.text+0x67): undefined reference to `aug_lens_put'
> collect2: ld returned 1 exit status
>
> but aug_init and aug_close are defined. Did I miss a step to export that
> function?
Augeas uses symbol versioning to control which symbols are exported from
libaugeas. You need to add new API symbols to src/augeas_sym.version.
Add the following block to it, and linking should work:
AUGEAS_0.10.2 {
global:
aug_lens_put;
aug_lens_get;
} AUGEAS_0.10.0;
David
More information about the augeas-devel
mailing list