Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libs3 version? #2

Open
gijzelaerr opened this issue Mar 13, 2018 · 5 comments
Open

libs3 version? #2

gijzelaerr opened this issue Mar 13, 2018 · 5 comments
Assignees

Comments

@gijzelaerr
Copy link
Member

gijzelaerr commented Mar 13, 2018

Ubuntu 18.04 comes with libs3 2.0-3, but when compiled against this version I run into troubles:

s3util.c: In function ‘responsePropertiesCallback’:
s3util.c:284:19: error: ‘S3ResponseProperties {aka const struct S3ResponseProperties}’ has no member named ‘usesServerSideEncryption’
     if (properties->usesServerSideEncryption) {
                   ^~
<builtin>: recipe for target 's3util.o' failed
make: *** [s3util.o] Error 1

Currently, the Dockerfile builds against the latest master. Is this absolutely required? If so, we should probably make a new release for libs3. Problem is that it looks like the author of libs3 doesn't like releases also.

@gijzelaerr
Copy link
Member Author

The current master doesn't build on Ubuntu 18.04:

bji/libs3#75

@gijzelaerr
Copy link
Member Author

great! Thanks!

@gijzelaerr
Copy link
Member Author

there are more compatiblity issues:

filterbankutil.c:1229:9: error: too many arguments to function ‘S3_put_object’
         S3_put_object(&bucketContext, fitsname, fitslen, &putProperties, 0,
         ^~~~~~~~~~~~~
In file included from filterbankutil.c:2:0:
/usr/include/libs3.h:1616:6: note: declared here
 void S3_put_object(const S3BucketContext *bucketContext, const char *key,
      ^~~~~~~~~~~~~
filterbankutil.c:1262:9: error: too many arguments to function ‘S3_put_object’
         S3_put_object(&bucketContext, fitsname, fitslen, &putProperties, 0,
         ^~~~~~~~~~~~~
In file included from filterbankutil.c:2:0:
/usr/include/libs3.h:1616:6: note: declared here
 void S3_put_object(const S3BucketContext *bucketContext, const char *key,
      ^~~~~~~~~~~~~

@gijzelaerr gijzelaerr reopened this Mar 19, 2018
@gijzelaerr
Copy link
Member Author

gijzelaerr commented Mar 27, 2018

So the differences between the latest release (2.0) and current master are:

  • in master S3_put_object has a new timeoutMs argument.
  • in master S3_create_bucket has 3 new arguments: securityToken (4), authRegion (7) and timeoutMs (11).

@gijzelaerr
Copy link
Member Author

fixed in #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants