On 17/06/16 20:07, [email protected] wrote:
> (Sorry if you're also subscribed to the help-cfengine@ list. Also, this
> list doesn't accept file uploads, but no one was going to run my
> binaries anyway!)
> 
> Hi,
> 
> I'm trying to compile a set of static CFEngine binaries on Alpine Linux
> (musl libc). My goal is to be able to scp a small tarball to an
> arbitrary linux x86_64 and have it setup a working cfengine environment.
> This would be very difficult to do using glibc or dynamic binaries. 
> 
> Anyway, I can generate a statically linked binary, but when I run it on
> my policy, I get:
> 
>   error: Could not open database txn /var/cfengine/state/cf_lock.lmdb:
> MDB_BAD_RSLOT: Invalid reuse of reader locktable slot
>   error: Could not open database txn /var/cfengine/state/cf_lock.lmdb:
> MDB_BAD_RSLOT: Invalid reuse of reader locktable slot
>   error: Could not open database txn /var/cfengine/state/cf_lock.lmdb:
> MDB_BAD_RSLOT: Invalid reuse of reader locktable slot
>   error: Could not open database txn /var/cfengine/state/cf_lock.lmdb:
> MDB_BAD_RSLOT: Invalid reuse of reader locktable slot
>   error: Could not open database txn /var/cfengine/state/cf_lock.lmdb:
> MDB_BAD_RSLOT: Invalid reuse of reader locktable slot
> ...
> fish: “sudo /var/cfengine/bin/cf-agent” terminated by signal SIGSEGV
> (Address boundary error)
> 
> I am compiling against LMDB tagged "LMDB_0.9.18" in the openldap git
> repository. Also, pcre-8.38, and openssl-1.0.1t. I've been able to
> replicate this on both cfengine 3.8.2 and 3.9.0. 

This is interesting, I don't think I have seen static compilation of
CFEngine being attempted before. I'm not aware of specific things that
would break when compiling statically (other than the Enterprise
version, but that's irrelevant here), but quite a few subtle things
change when doing so, so mileage may vary. The message is unknown to me,
and it's not immediately obvious why a static compile would trigger
this, AFAIK LMDB doesn't use any fancy DLL magic. Your best bet might be
to ask on the openldap list, where LMDB is being developed. If they
can't answer the static compile, maybe they can at least tell you what
the message means.

If you do get a reply, but don't know where to go from there, feel free
to post it here, maybe we'll know more then.

-- 
Kristian

-- 
You received this message because you are subscribed to the Google Groups 
"dev-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dev-cfengine/57678C9B.5050106%40cfengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to