This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients neologix, rosslagerwall, rpointel, vstinner
Date 2011-08-30.07:05:24
SpamBayes Score 1.5338095e-08
Marked as misclassified No
Message-id <CAH_1eM2285JQNWgSkfQicwJ8yq_hNpABb1HCCBU1NsAV1p4hkw@mail.gmail.com>
In-reply-to <1314654308.8.0.353970953192.issue12852@psf.upfronthosting.co.za>
Content
> I think that the problem is that fdopendir() is not defined. If a function is not defined, C uses int as the result type. An int is not enough to store a 64-bit pointer. See in gdb output: dirp is 0x0afb0e80 whereas other pointers look like 0x20973fc30. You missed the highest hexa digit (0x2).

Yeah, I noticed that. I didn't make the connection with the
possibility of missing prototype though. Nice catch.

> I tried "AC_DEFINE(_POSIX_C_SOURCE, 200809L, Define to activate features from IEEE Stds 1003.1-2008)" but it doesn't work.
>

You mean that the patch you attached doesn't work, correct?
I know it's a stupid question, but you're sure you didn't forget to
run autoconf/autoheader?
History
Date User Action Args
2011-08-30 07:05:25neologixsetrecipients: + neologix, vstinner, rosslagerwall, rpointel
2011-08-30 07:05:25neologixlinkissue12852 messages
2011-08-30 07:05:24neologixcreate