[proxy] bugs.python.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

Issue 4639: Build failure on OpenBSD 4.4-current regarding lstat()

Issue4639

classification
Title: Build failure on OpenBSD 4.4-current regarding lstat()
Type: compile error Stage: resolved
Components: Build Versions: Python 2.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Configure script incorrect for reasonably recent OpenBSD
View: 7903
Assigned To: skrah Nosy List: loewis, skrah, vext01
Priority: normal Keywords: patch

Created on 2008-12-12 14:11 by vext01, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg77667 - (view) Author: Edd (vext01) Date: 2008-12-12 14:11
Hi,

I just had to move the "extern lstat..." outside the "ifndef
HAVE_LSTAT" to get python 2.6.1 to build on OpenBSD 4.4-current/i386.

I'm not suggesting this is correct, but it fixes the build for my
platform at least.

--- Modules/posixmodule.c.orig     Fri Dec 12 11:08:54 2008
+++ Modules/posixmodule.c       Fri Dec 12 11:54:16 2008
@@ -208,10 +208,11 @@
 #ifdef HAVE_SYMLINK
 extern int symlink(const char *, const char *);
 #endif /* HAVE_SYMLINK */
+#endif /* !HAVE_UNISTD_H */
+
 #ifdef HAVE_LSTAT
 extern int lstat(const char *, struct stat *);
 #endif /* HAVE_LSTAT */
-#endif /* !HAVE_UNISTD_H */

 #endif /* !_MSC_VER */


Im using gcc-4.2

Thanks
msg99376 - (view) Author: Martin v. Löwis (loewis) * Date: 2010-02-15 21:49
Can you please try the Python trunk (or release26-maint branch) and report whether the problem still occurs?
msg99377 - (view) Author: Stefan Krah (skrah) * Date: 2010-02-15 23:27
This is fixed in trunk by the configure.in patch. I've tested trunk on 4.4
and 4.7.
msg102935 - (view) Author: Stefan Krah (skrah) * Date: 2010-04-12 09:53
This has been fixed in issue 7903.
History
Date User Action Args
2022-04-11 14:56:42adminsetgithub: 48889
2010-04-12 09:53:11skrahsetstatus: open -> closed

assignee: skrah
keywords: + patch
messages: + msg102935
superseder: Configure script incorrect for reasonably recent OpenBSD
resolution: duplicate
stage: resolved

2010-02-15 23:27:09skrahsetnosy: + skrah
messages: + msg99377
2010-02-15 21:49:26loewissetnosy: + loewis
messages: + msg99376
2008-12-12 14:11:18vext01create