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

Error while compiling #2

Closed
karimcitoh opened this issue Dec 1, 2014 · 2 comments
Closed

Error while compiling #2

karimcitoh opened this issue Dec 1, 2014 · 2 comments

Comments

@karimcitoh
Copy link

Hello Bji,

Thanks for sharing libs3 with us. I want to ask you something.
I am using Mac OS and trying to install libs3, but I get all the time this error so I can't continue

In file included from src/acl.c:30:
inc/request.h:131:14: error: sizeof on pointer operation will return size of
      'char *' instead of 'char [9]' [-Werror,-Wsizeof-array-decay]
    char uri[MAX_URI_SIZE + 1];
             ^~~~~~~~~~~~
inc/util.h:61:51: note: expanded from macro 'MAX_URI_SIZE'
     MAX_URLENCODED_KEY_SIZE + (sizeof("?torrent" - 1)) + 1)
                                       ~~~~~~~~~~ ^
1 error generated.
make: *** [build/obj/acl.do] Error 1

Do you know how can I solve it?
Thanks in advance for your help,
best regards,
Karim

thesues pushed a commit to thesues/libs3 that referenced this issue Jul 7, 2015
Some fixes from SCA runs

Reviewed-by: Sage Weil <[email protected]>
@mutantkeyboard
Copy link
Contributor

mutantkeyboard commented Apr 4, 2017

@karimcitoh wow. 3 years and nobody answered.
The fix is straightforward.

  • Edit the CFLAGS inside GNUmakefile.osx
  • Remove -Werror and add -Wunused-parameter instead
    Then say it like
    make -f GNUmakefile.osx install , and if it doesn't work install gnumake from Homebrew like
    brew install gnumake, and then replace the upper command with gnumake so it looks like:
    gnumake -f GNUmakefile.osx install

@karimcitoh
Copy link
Author

Hi Antonio, I don't even remember what I was using this for! But thanks for the tip :)

I guess I fixed a while ago... hehe

bji pushed a commit that referenced this issue May 31, 2017
Added additional cheph specific error codes
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

2 participants