On Mon, 2017-09-04 at 09:58 +0200, Carsten Grzemba wrote: > Currently I package 389-ds on Solaris-userland, where I build 389-ds for x86 and sparc. For the atmonic operations in slapi_counter.c I build with gcc. > Solaris GCC contains libatomic for i86 and sparc so that differentiation in configure.ac for Solaris Sparc or x86 is no longer necessary. > But to be sure, I would test these atmic operations in 389-ds. > > Are there some testsuites or functions for slapi_counter? There are: if you have cmocka available, `make check` should trigger these tests. We are using the gcc atomics so this should "just work". Now, if you are doing this there are few other places of code we need to touch. You'll need to make sure that you fill in the values in: ldap/servers/slapd/slapi_pal.c This is our new platform abstraction layer. We used to do this in portable.h, but it kinda spilled out all over the code base. Another good place to check is for "FREEBSD" defines, because they could be locations you need to tweak for solaris to work properly. Some of these parts could move to slapi_pal.c, and I may consider cleaning this up this week to make it easier for you, Finally, make sure you have rustc/cargo available on solaris, because in the future we hope to use these in the server, so we would hate for you to do all this work, and then have a required dependency make it all useless for you. -- Sincerely, William Brown Software Engineer Red Hat, Australia/Brisbane
Attachment:
signature.asc
Description: This is a digitally signed message part
_______________________________________________ 389-devel mailing list -- 389-devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to 389-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx