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

0.2.2 error when installing #20

Open
mfrlin opened this issue May 16, 2018 · 4 comments
Open

0.2.2 error when installing #20

mfrlin opened this issue May 16, 2018 · 4 comments

Comments

@mfrlin
Copy link

mfrlin commented May 16, 2018

This is the error when you do pip install pyminizip

In file included from src/zip.c:66:0:
    src/crypt.h:34:23: error: conflicting types for ‘z_crc_t’
     typedef unsigned long z_crc_t;
                           ^
    In file included from /usr/include/zlib.h:34:0,
                     from src/zip.c:36:
    /usr/include/x86_64-linux-gnu/zconf.h:406:17: note: previous declaration of ‘z_crc_t’ was here
        typedef Z_U4 z_crc_t;
                     ^
    src/zip.c:201:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     local linkedlist_datablock_internal* allocate_new_datablock OF(());
     ^
    src/zip.c:202:38: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     local linkedlist_datablock_internal* allocate_new_datablock()
                                          ^
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

This is on Debian Jessie. I've also tried to install zlib1g package and it was the same.

@multippt
Copy link

multippt commented May 16, 2018

Also affects Ubuntu 16 LTS on clean installs. We had to downgrade to 0.2.1.

@Vadiml1024
Copy link

The same happens in Ubuntu 18.04... Downgrading to 0.2.1 does not help there

@multippt
Copy link

multippt commented May 17, 2018

Installing via git appears to work

pip install git+https://github.com/smihica/pyminizip.git

After checking the package downloaded from pypi it appears there's a number of files missing from zlib123, in particular the header files.

@veon82
Copy link
Contributor

veon82 commented May 17, 2018

Sorry, I don't know why but I didn't see this issue yesterday, anyway I submitted the Fix on #21

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

4 participants