-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
difficulty building on aix - cannot locate struct timeval #46
Comments
That's pretty weird... This AIX documentation page states that |
I have time.h at: /usr/include/sys/time.h |
Since |
Tried adjusting the include search dirs in Makefile with no joy. |
Looks like /usr/include/sys/time.h is what we want.
|
BTW, ty for looking at this. |
No problem. Did you try adding the include path argument |
Woops, didnt mean to close issue. Here is the gist |
yes, I have tried adjusting CFLAGS in the Makefile. CFLAGS=-O3 -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -I/usr/include |
Thanks for the header file. This is a problem with feature test macro's, confusing stuff. Judging from the links below (look for _XOPEN_SOURCE) removing the [1] http://www.gnu.org/s/hello/manual/libc/Feature-Test-Macros.html |
I edited the header as so https://gist.github.com/1027739 did not get any further. |
Another thing we could try is removing |
How can I see if aix is set? I apologize. i am not a c dev. Are you on freenode? |
Yes, #redis. |
Pls leave this open a few days and I will submit a pull request with the aix changes we discussed. |
doh, I had a week of vacation and never followed up on this. Trying to pick up where we left off. |
I'm having this issue in the new 2.4 release, has anyone else been looking into this? |
@dealious: I'm sorrry, this issue appears to have gotten a bit silent. You are trying to build on AIX, correct? |
I'm sorry Peter. I was supposed to work on this but to push my |
@pietern Yes I am trying to build on AIX 5.2 (preferably using xlc as the compiler, though for testing gcc is acceptable). |
Removing _XOPEN_SOURCE did the trick for me on AIX 5.3 with gcc 4.6.1
You can also add this in deps/linenoise/Makefile and src/Makefile for AIX :
But I stil got a ton of errors after while compiling Redis (eg. anet.c gives vsnprintf not declared, .....). |
interesting. The pure python bindings meet my need and my gcc is broken at the moment so I am not pursuing this matter anymore myself. |
This will be hard to do without a way to verify if it works or not. I hope that if there is somebody with an AIX box who tries to use hiredis, he or she will open a new issue. Closing this one. |
EDIT We did some extra unneeded customizations, I removed them. Below is only what's needed. Building hiredis 0.1.3 on AIX7.1 x64, I just ran into the same problems.
After this, don't start with We also have some general gcc tuning, but that's not related to this issue. result in redis-py/hiredis-py:
Resulting dependencies:
Could help someone, cheers TW |
receive the following message:
In file included from hiredis/hiredis.c:39:
hiredis/hiredis.h:175: warning: 'struct timeval' declared inside parameter list
hiredis/hiredis.h:175: warning: its scope is only this definition or declaration, which is probably not what you want
I am using gcc 4.4 on aix 5.3.
The text was updated successfully, but these errors were encountered: