Comments (10)
Correct patch file for bcrypt.c
Original comment by [email protected]
on 20 May 2013 at 11:27
Attachments:
from py-bcrypt.
Built okay on CentOS 6.3 with gcc 4.4.6.
Original comment by [email protected]
on 20 May 2013 at 2:14
from py-bcrypt.
There is a typo, I meant py-bcrypt 0.3 on Windows 7. MinGW is gcc 4.6.2.
Original comment by [email protected]
on 20 May 2013 at 2:18
from py-bcrypt.
Could you please try the current hg tip? It has a number of fixes for windows
that seem roughly equivalent to these. Unfortunately, I don't have access to
MSVC anymore to test on Windows.
Original comment by [email protected]
on 28 Jul 2013 at 12:03
- Changed state: Started
from py-bcrypt.
The u_int8_t, etc. typedefs are in pybc_blf.h but not bcrypt_python.c. Patch
attached to remedy that.
I do not have MSVC either, this is tested with MinGW.
Original comment by [email protected]
on 28 Jul 2013 at 10:26
Attachments:
from py-bcrypt.
Thanks for the quick response. Sorry about that, I thought bcrypt_python
included the header for some reason but it didn't. It does now :)
Please give tip another try. There is some new code there that may have other
problems on Windows.
Original comment by [email protected]
on 29 Jul 2013 at 5:24
from py-bcrypt.
Indeed it does. There are three problems, with fixes or advice.
1 u_int*_t missing in places:
Patch pre2 attached which creates pybc_types.h.
2 Various warnings about pointer signedness:
I have not addressed these, you should either fix the declarations or insert
casts.
3 Error for BYTE_ORDER undefined in sha2.c:
That is tricky to deal with portably in the preprocessor. Patch pre3 uses a
code snippet I have used in the past which determines endianness at compile
time.
Original comment by [email protected]
on 29 Jul 2013 at 9:26
Attachments:
from py-bcrypt.
Thanks for your patience in testing.
I don't think pre2 is necessary - pybc_sha2.h is only ever included after
pybc_blf.h which contains the type definitions. The definitions in pybc_blf.h
were missing u_int64_t for windows systems without stdint.h, so I've added it
now.
tip also has a slightly different endian test and fixes all the
pointer-signedness warnings on the platforms I have available.
Could you give it another try?
Original comment by [email protected]
on 29 Jul 2013 at 12:26
from py-bcrypt.
That has fixed the errors and warnings now, thanks. I have successfully built
and run test/test.py, passing all 5 tests.
Python 2.7.5
Windows 7 64-bit (though using 32 bit Python and py-bcrypt)
MinGW gcc version 4.6.2
Original comment by [email protected]
on 29 Jul 2013 at 1:15
from py-bcrypt.
Excellent - thanks for your help!
Original comment by [email protected]
on 29 Jul 2013 at 10:00
- Changed state: Fixed
from py-bcrypt.
Related Issues (20)
- Windows & MSVS2008 compilation HOT 14
- signedness warning when compiling under Ubuntu Linux 10.04.3 LTS HOT 2
- Crash in bcrypt_hashpw if py-bcrypt is compiled on Windows 7 with cygwin, gcc. HOT 4
- pybc_blf.h not included in certain situations HOT 1
- Python 3 Support (with patch) HOT 8
- Failed to install using pip HOT 4
- ImportError: No module named _bcrypt HOT 11
- how to use it on google app engine ? HOT 4
- Build failure on mingw32 with solution HOT 3
- windows version HOT 1
- Doesn't Compile on SmartOS HOT 2
- Thread safety problem HOT 1
- Add classifiers to setup.py
- Patch for /bcrypt/pybc_blf.h HOT 4
- Compile error on XCode 5.1+
- bcrypt/bcrypt_python.c:18:20: fatal error: Python.h: No such file or directory HOT 1
- doesn't compile on windows 7 x64 HOT 5
- install on windows 32
- from netmiko import ConnectHandler HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-bcrypt.