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

Build issues #17

Open
AndiLeni opened this issue Oct 16, 2022 · 0 comments
Open

Build issues #17

AndiLeni opened this issue Oct 16, 2022 · 0 comments

Comments

@AndiLeni
Copy link

Hello,

I tried building this software on windows 10 with msys and mingw64.
The following warnings occur during build time:

$ make all
cc   -Izopfli  \
        woff.c sfnt2woff.c -o sfnt2woff-zopfli \
         zopfli/blocksplitter.c zopfli/cache.c zopfli/deflate.c zopfli/gzip_container.c zopfli/hash.c zopfli/katajainen.c zopfli/lz77.c zopfli/squeeze.c zopfli/tree.c zopfli/util.c zopfli/zlib_container.c zopfli/zopfli_lib.c -lz -lm
woff.c: In function 'woffEncode':
woff.c:291:113: warning: passing argument 6 of 'ZopfliCompress' from incompatible pointer type [-Win
compatible-pointer-types]
  291 |     ZopfliCompress(&options, ZOPFLI_FORMAT_ZLIB, (const uint8_t *) (sfntData + sourceOffset)
, sourceLen, &dest, &destLen);
      |
                    ^~~~~~~~
      |
                    |
      |
                    uLong * {aka long unsigned int *}
In file included from woff.c:45:
zopfli/zopfli.h:91:50: note: expected 'size_t *' {aka 'long long unsigned int *'} but argument is of
 type 'uLong *' {aka 'long unsigned int *'}
   91 |                     unsigned char** out, size_t* outsize);
      |                                          ~~~~~~~~^~~~~~~
woff.c: In function 'woffSetMetadata':
woff.c:551:98: warning: passing argument 6 of 'ZopfliCompress' from incompatible pointer type [-Winc
ompatible-pointer-types]
  551 |     ZopfliCompress(&options, ZOPFLI_FORMAT_ZLIB, (const uint8_t *) metaData, metaLen, &compD
ata, &compLen);
      |
     ^~~~~~~~
      |
     |
      |
     uLong * {aka long unsigned int *}
zopfli/zopfli.h:91:50: note: expected 'size_t *' {aka 'long long unsigned int *'} but argument is of
 type 'uLong *' {aka 'long unsigned int *'}
   91 |                     unsigned char** out, size_t* outsize);
      |                                          ~~~~~~~~^~~~~~~
cc   -Izopfli  \
        woff.c woff2sfnt.c -o woff2sfnt-zopfli \
         zopfli/blocksplitter.c zopfli/cache.c zopfli/deflate.c zopfli/gzip_container.c zopfli/hash.c zopfli/katajainen.c zopfli/lz77.c zopfli/squeeze.c zopfli/tree.c zopfli/util.c zopfli/zlib_container.c zopfli/zopfli_lib.c -lz -lm
woff.c: In function 'woffEncode':
woff.c:291:113: warning: passing argument 6 of 'ZopfliCompress' from incompatible pointer type [-Win
compatible-pointer-types]
  291 |     ZopfliCompress(&options, ZOPFLI_FORMAT_ZLIB, (const uint8_t *) (sfntData + sourceOffset)
, sourceLen, &dest, &destLen);
      |
                    ^~~~~~~~
      |
                    |
      |
                    uLong * {aka long unsigned int *}
In file included from woff.c:45:
zopfli/zopfli.h:91:50: note: expected 'size_t *' {aka 'long long unsigned int *'} but argument is of
 type 'uLong *' {aka 'long unsigned int *'}
   91 |                     unsigned char** out, size_t* outsize);
      |                                          ~~~~~~~~^~~~~~~
woff.c: In function 'woffSetMetadata':
woff.c:551:98: warning: passing argument 6 of 'ZopfliCompress' from incompatible pointer type [-Winc
ompatible-pointer-types]
  551 |     ZopfliCompress(&options, ZOPFLI_FORMAT_ZLIB, (const uint8_t *) metaData, metaLen, &compD
ata, &compLen);
      |
     ^~~~~~~~
      |
     |
      |
     uLong * {aka long unsigned int *}
zopfli/zopfli.h:91:50: note: expected 'size_t *' {aka 'long long unsigned int *'} but argument is of
 type 'uLong *' {aka 'long unsigned int *'}
   91 |                     unsigned char** out, size_t* outsize);
      |                                          ~~~~~~~~^~~~~~~


@AndiLeni AndiLeni changed the title Buils issues Build issues Nov 22, 2022
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

1 participant