backends (ldap)



Hi,
    I am toying with some LDAP code making a backend for gconf.

I am starting out small, trying to get read/write access going (string
type only), before doing metadata and other data types etc.

I have decided to write it in C++ because C is very bad at string
handling etc.
I have some code at the moment, and it is installed along side the xml
backend.

-rw-r--r--    1 root     root       354208 Nov 11 03:03
libgconfbackend-ldap.a
-rwxr-xr-x    1 root     root          790 Nov 11 03:03
libgconfbackend-ldap.la
-rwxr-xr-x    1 root     root       402651 Nov 11 03:03
libgconfbackend-ldap.so
-rw-r--r--    1 root     root        47676 Oct 29 16:02
libgconfbackend-xml.a
-rwxr-xr-x    1 root     root          779 Oct 29 16:02
libgconfbackend-xml.la
-rwxr-xr-x    1 root     root        49528 Oct 29 16:02
libgconfbackend-xml.so

I also have a data source in my gconf config file /etc/gconf/path
ldap:readwrite:$(HOME)/.gconf
xml:readwrite:$(HOME)/.gconf
(the path specific part is wrong at the moment, but I don't parse that
at current either).

when I try to use it I get
Nov 11 03:03:53 kloof gconfd (ben-32522): starting (version 0.10), pid
32522 user 'ben'
Nov 11 03:03:53 kloof gconfd (ben-32522): Adding source
`xml:readonly:/etc/gconf/gconf.xml.mandatory'
Nov 11 03:03:53 kloof gconfd (ben-32522): Adding source
`ldap:readwrite:/home/ben/.gconf'
Nov 11 03:03:53 kloof gconfd (ben-32522): Adding source
`xml:readwrite:/home/ben/.gconf'
Nov 11 03:03:53 kloof gconfd (ben-32522): Adding source
`xml:readonly:/etc/gconf/gconf.xml.defaults'
Nov 11 03:03:53 kloof gconfd (ben-32522): Initializing XML backend
module
Nov 11 03:03:53 kloof gconfd (ben-32522): Unloading XML backend module.
Nov 11 03:03:53 kloof gconfd (ben-32522): Failed to load source
`xml:readonly:/etc/gconf/gconf.xml.mandatory': Failed:  Could not make
directory `/etc/gconf/gconf.xml.mandatory': Permission denied
Nov 11 03:03:53 kloof gconfd (ben-32522): Failed to load source
`ldap:readwrite:/home/ben/.gconf': Failed:  Error opening module `ldap':
undefined symbol: cerr
Nov 11 03:03:53 kloof gconfd (ben-32522): Initializing XML backend
module
Nov 11 03:03:53 kloof gconfd (ben-32522): Directory/file permissions for
XML source at root /home/ben/.gconf are: 700/600
Nov 11 03:03:53 kloof gconfd (ben-32522): Failed to load source
`xml:readonly:/etc/gconf/gconf.xml.defaults': Failed:  Could not make
directory `/etc/gconf/gconf.xml.defaults': Permission denied

I presume that the symbol error is due to C++ so the vtable and all
functions are wrapped in
extern "c" {
};

This doesn't help. I'll prolly keep looking at this but I thought that
I'd post this incase somebody
has a fix for it, like a compiler option that must be different for C++

I am using a very similar copy of Makefile.am in a subdir of backends to
compile the ldap
backend.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]