Issue 985154: HAVE_FDATASYNC incorrectly set for 2.3.4 under cygwin (original) (raw)

Created on 2004-07-05 02:38 by gregsmith, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (9)
msg21405 - (view) Author: Gregory Smith (gregsmith) Date: 2004-07-05 02:38
Building 2.3.4 from the tarball, #define HAVE_FDATASYNC 1 appears in the pyconfig.h file, and the build of 'posixmodule' fails with undefined symbol _fdatasync Workaround is to delete the line and proceed, of course, but I've never seen this before when building under cygwin. There is no 'fdatasync' mentioned in any /usr/include/*.h or /usr/local/include/*.h The cygwin installation is kind of a mongrel (4 or 5 upgrades since install, some selective) This is the ID string from the built python: Python 2.3.4 (#2, Jul 4 2004, 22:10:22) [GCC 3.3.1 (cygming special)] on cygwin Let me know of any details of the cygwin install which might be useful.
msg21406 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2004-07-05 13:40
Logged In: YES user_id=6656 That's odd. Why does configure think you have fdatasync? Maybe config.log will help...
msg21407 - (view) Author: Gregory Smith (gregsmith) Date: 2004-07-06 01:58
Logged In: YES user_id=292741 looked into config.log and 'configure' itself.. the compile for fdatasync succeeded, but the script does not attempt to link it. gcc -E led me to the following chunk of /usr/include/sys/unistd.h: (not inside any #ifdefs, as far as I can tell) int _EXFUN(fdatasync, (int __fd)); So it's declared in the header, but it's not in the library. This symbol is defined in libc.a on a RH8.0 system, I can't find it anywhere on the cygwin system.
msg21408 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2004-07-07 11:12
Logged In: YES user_id=6656 Well, I guess that's an arguable bug in cygwin, but if you want to supply a patch that modifies configure to do the linking test too, I'll at least think about applying it :-)
msg21409 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2004-07-08 01:32
Logged In: YES user_id=33168 Jason, do you know what the deal is with cygwin?
msg21410 - (view) Author: Jason Tishler (jlt63) * (Python triager) Date: 2004-07-08 11:10
Logged In: YES user_id=86216 nnorwitz> Jason, do you know what the deal is with cygwin? AFAICT, Greg's Cygwin setup seems suspect. Actually, he alluded to this fact in the following: gregsmith> The cygwin installation is kind of a mongrel... On my Cygwin setup (i.e., 1.5.10-3), I have the following: /usr/include/sys/unistd.h: #ifndef __CYGWIN__ int _EXFUN(fdatasync, (int __fd)); #endif pyconfig.h: /* Define if you have the 'fdatasync' function. */ /* #undef HAVE_FDATASYNC */ Additionally, the official Cygwin Python package built cleanly. Greg, what version of Cygwin are you using? If not 1.5.10-3, then please upgrade and try again. If so, then your setup seems to be corrupted. Try reinstalling. Does it work any better now?
msg21411 - (view) Author: Jason Tishler (jlt63) * (Python triager) Date: 2004-08-09 16:43
Logged In: YES user_id=86216 There has been no follow-up from Greg in a month. OK to close?
msg21412 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2004-08-12 15:52
Logged In: YES user_id=33168 Your wish is my command. :-) Closing as invalid, since this seems more a cygwin setup problem. Greg can re-open if he disagrees.
msg21413 - (view) Author: Gregory Smith (gregsmith) Date: 2004-08-17 03:39
Logged In: YES user_id=292741 Fine with me . Sorry about being out of touch for so long - I had to beef up my mail filtering due to spam, and as a side-effect the sourceforge traffic no longer shows up directly in front of me... Anyway, it seems pretty clear there's an anomaly with my cygwin (which shows 1.5.7-1); if no-one else has it then clearly there's no point in messing with the python install to fix it. I've had bad experiences with things breaking when I upgrade cygwin, so I'm squiffy about doing it again, maybe it's time for a 'scorched earth mode' upgrade. Thanks.
History
Date User Action Args
2022-04-11 14:56:05 admin set github: 40509
2004-07-05 02:38:00 gregsmith create