Building Ceph statically linked
Hi,
While doing some tests I'm trying to build Ceph statically. I have a bunch of machines where I run Ceph on for these test (mostly RGW now) and I'm running into some library issues when switching from branches.
To make my life a bit easier I tried compiling Ceph (especially RGW) statically linked, but somehow I keep ending up with a dynamically linked binary.
What I tried:
$ env CXXFLAGS="-static" ./configure --enable-static --disable-shared $ make
Usually that should spit out a static binary, but 'radosgw' is still dynamic.
I'm not such a autoconf nor automake guru, so does anybody ever build static binaries with Ceph?
Yes, I'm aware they can become very large, but that's not my concern right now. I just want to upload a binary to a machine, run it and see if it does what I'm hoping it does and not having to worry about all the dependencies being there and being the right version.
Signature · 5 lines
Wido den Hollander 42on B.V. Phone: +31 (0)20 700 9902 Skype: contact42on
Quoted 4 lines · Wido den Hollander
Hi,
While doing some tests I'm trying to build Ceph statically. I have a bunch of machines where I run Ceph on for these test (mostly RGW now) and I'm running into some library issues when switching from branches.
Quoted 9 lines
To make my life a bit easier I tried compiling Ceph (especially RGW) statically linked, but somehow I keep ending up with a dynamically linked binary.
What I tried:
$ env CXXFLAGS="-static" ./configure --enable-static --disable-shared $ makeUsually that should spit out a static binary, but 'radosgw' is still dynamic.
I suspect it's because you did not --with-radosgw and it was not recompiled.
Cheers
Quoted 4 lines
I'm not such a autoconf nor automake guru, so does anybody ever build static binaries with Ceph?
Yes, I'm aware they can become very large, but that's not my concern right now. I just want to upload a binary to a machine, run it and see if it does what I'm hoping it does and not having to worry about all the dependencies being there and being the right version.
Signature · 5 lines
Loïc Dachary, Artisan Logiciel Libre -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 18 lines · Loic Dachary
Quoted 15 lines · Wido den Hollander
Hi,
While doing some tests I'm trying to build Ceph statically. I have a bunch of machines where I run Ceph on for these test (mostly RGW now) and I'm running into some library issues when switching from branches.
To make my life a bit easier I tried compiling Ceph (especially RGW) statically linked, but somehow I keep ending up with a dynamically linked binary.
What I tried:
$ env CXXFLAGS="-static" ./configure --enable-static --disable-shared $ make
Quoted 6 lines
Quoted 3 lines
Usually that should spit out a static binary, but 'radosgw' is still dynamic.
I suspect it's because you did not --with-radosgw and it was not recompiled.
Nope, I did a 'make clean' first.
Tried it just for the sake of it:
$ CXXFLAGS="-static" ./configure --enable-static --disable-shared --with-radosgw $ make $ file src/radosgw
"src/radosgw: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs),"
Quoted 12 lines
Cheers
Quoted 8 lines
I'm not such a autoconf nor automake guru, so does anybody ever build static binaries with Ceph?
Yes, I'm aware they can become very large, but that's not my concern right now. I just want to upload a binary to a machine, run it and see if it does what I'm hoping it does and not having to worry about all the dependencies being there and being the right version.
Signature · 5 lines
Wido den Hollander 42on B.V. Phone: +31 (0)20 700 9902 Skype: contact42on