[Python-bugs-list] [ python-Bugs-530159 ] solaris build reds _FILE_OFFSET_BIT

noreply@sourceforge.net noreply@sourceforge.net
Fri, 15 Mar 2002 01:18:02 -0800


Bugs item #530159, was opened at 2002-03-15 04:33
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=530159&group_id=5470

Category: None
Group: Python 2.2.1 candidate
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Nobody/Anonymous (nobody)
Summary: solaris build reds _FILE_OFFSET_BIT

Initial Comment:
Solaris/sparc 2.7, building the 2.2 branch with gcc
2.95.2. No special magic options provided to ./configure.

gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I.
-I/import/src/lang/python/CVS/22branch/dist/src/./Include
-I/usr/local/include -IInclude/ -c
/import/src/lang/python/CVS/22branch/dist/src/Modules/pypcre.c
-o build/temp.solaris-2.7-sun4u-2.2/pypcre.o
In file included from
/import/src/lang/python/CVS/22branch/dist/src/Include/Python.h:24,
                 from
/import/src/lang/python/CVS/22branch/dist/src/Modules/pcre.h:11,
                 from
/import/src/lang/python/CVS/22branch/dist/src/Modules/pcre-int.h:55,
                 from
/import/src/lang/python/CVS/22branch/dist/src/Modules/pypcre.c:48:pyconfig.h:104:
warning: `_FILE_OFFSET_BITS' redefined
/usr/include/sys/feature_tests.h:96: warning: this is
the location of the previous definition

The system header's defining it as 32, pyconfig.h's
overriding that and setting it to 64, but isn't setting
_LP64

Not sure if this will break anything at all...


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-03-15 10:18

Message:
Logged In: YES 
user_id=21627

This originates from pypcre breaking the rule that Python.h
must be included first. Nothing in pypcre cares about LFS,
so it is harmless.

Fixed in pypcre.c 2.23.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=530159&group_id=5470