Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue1324] r58034 breaks building _ctypes with the upstream libffi.

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Oct 25, 2007, 12:04 AM

Post #1 of 5 (158 views)
Permalink
[issue1324] r58034 breaks building _ctypes with the upstream libffi.

New submission from Matthias Klose:

This breaks building _ctypes with the upstream libffi.

r58034 | thomas.heller | 2007-09-07 08:32:17 +0200 (Fr, 07 Sep 2007) | 1
line

Add a 'c_longdouble' type to the ctypes module.


gcc -pthread -fPIC -fno-strict-aliasing -g -Wall -Wstrict-prototypes
-I/usr/include -I.
-I/home/pybot/buildarea-armeabi/trunk.klose-linux-armeabi/build/./Include
-I./Include -IInclude -I. -I/usr/local/include
-I/home/pybot/buildarea-armeabi/trunk.klose-linux-armeabi/build/Include
-I/home/pybot/buildarea-armeabi/trunk.klose-linux-armeabi/build -c
/home/pybot/buildarea-armeabi/trunk.klose-linux-armeabi/build/Modules/_ctypes/cfield.c
-o
build/temp.linux-armv5tel-2.6/home/pybot/buildarea-armeabi/trunk.klose-linux-armeabi/build/Modules/_ctypes/cfield.o
/home/pybot/buildarea-armeabi/trunk.klose-linux-armeabi/build/Modules/_ctypes/cfield.c:1756:
error: redefinition of 'ffi_type_double'
/home/pybot/buildarea-armeabi/trunk.klose-linux-armeabi/build/Modules/_ctypes/cfield.c:1755:
error: previous definition of 'ffi_type_double' was here

ffi.h has:
#if 0
extern ffi_type ffi_type_longdouble;
#else
#define ffi_type_longdouble ffi_type_double
#endif

----------
assignee: theller
components: Extension Modules
messages: 56736
nosy: doko, theller
severity: normal
status: open
title: r58034 breaks building _ctypes with the upstream libffi.
versions: Python 2.6

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1324>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Oct 25, 2007, 12:05 AM

Post #2 of 5 (151 views)
Permalink
[issue1324] r58034 breaks building _ctypes with the upstream libffi. [In reply to]

Changes by Matthias Klose:


----------
type: -> compile error

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1324>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Oct 25, 2007, 12:09 AM

Post #3 of 5 (151 views)
Permalink
[issue1324] r58034 breaks building _ctypes with the upstream libffi. [In reply to]

Matthias Klose added the comment:

Index: Modules/_ctypes/cfield.c
===================================================================
--- Modules/_ctypes/cfield.c (revision 58651)
+++ Modules/_ctypes/cfield.c (working copy)
@@ -1753,6 +1753,9 @@

ffi_type ffi_type_float = { sizeof(float), FLOAT_ALIGN, FFI_TYPE_FLOAT };
ffi_type ffi_type_double = { sizeof(double), DOUBLE_ALIGN,
FFI_TYPE_DOUBLE };
+#ifdef ffi_type_longdouble
+#undef ffi_type_longdouble
+#endif
ffi_type ffi_type_longdouble = { sizeof(long double), LONGDOUBLE_ALIGN,
FFI_TYPE_LONGDOUBLE };

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1324>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Oct 25, 2007, 1:17 AM

Post #4 of 5 (151 views)
Permalink
[issue1324] r58034 breaks building _ctypes with the upstream libffi. [In reply to]

Changes by Matthias Klose:


----------
keywords: +patch

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1324>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Oct 25, 2007, 12:48 PM

Post #5 of 5 (146 views)
Permalink
[issue1324] r58034 breaks building _ctypes with the upstream libffi. [In reply to]

Thomas Heller added the comment:

Maybe I should give up the idea to define the ffi_type_... types myself.
Committed as rev 58655. Thanks.

----------
resolution: -> accepted
status: open -> closed

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1324>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.