Re: Static linking and RDB/Rados

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

 




> On Oct 26, 2018, at 00:12, Sitsofe Wheeler <sitsofe@xxxxxxxxx> wrote:
> 
> 
> [EXTERNAL EMAIL] 
> Please report any suspicious attachments, links, or requests for sensitive information.
> 
> 
> Hi,
> 
>> On Fri, 26 Oct 2018 at 00:53, Beierl, Mark <Mark.Beierl@xxxxxxxx> wrote:
>> 
>> I’ve been doing some playing around with static linking and from the looks of it the static libraries for Rados and RDB are no longer available.  Same goes for some of the libraries needed to enable HTTP (S3) support.
>> 
>> So, I don’t think the options for –build-static are valid anymore.  If anyone has pointers as to how to get the static Rados or RDB libraries, I’d love to hear about it :)
> 
> You didn't mention your distro but I think in the case of curl (which
> is used for the HTTP/S3 suport) it will be highly environment
> dependent. For example, Ubuntu seem to ship a static version of
> libcurl (https://packages.ubuntu.com/bionic/amd64/libcurl4-gnutls-dev/filelist
> and see libcurl-gnutls.a) but I can't see any static libcurl in
> regular Fedora packages. In fact, I know that Fedora doesn't ship a
> static libaio either and others have been forced to download the
> source, build a private copy with a static library and then point fio
> at that in they wanted such a binary on Fedora.
> -- 
> Sitsofe | http://sucs.org/~sits/

Thanks, Sitsofe. 

Sorry about that. I tried Alpine, Ubuntu 16.04 and 18.04, as well as CentOS 7. No luck with any of them. It also seems that I was going down some rabbit hole with nghttp2, which also seems to be missing the .a static library. I think most distros are moving away from shipping static libraries now. 

My goal is to create a statically linked FIO that I can use on different targets without having to recompile on each. I’m no longer sure that this is even a good thing, because if the distro maintainers are dropping static libraries, there must be a good reason. 

Having said that, if I do get a docker build with all the static sources and a final FIO statically built, would the community be interested in this?  I could propose a patch with this as a dockerfile if so and then others with experience in different areas might be able to help. 



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux