Closed GoogleCodeExporter closed 8 years ago
Do you have CPPFLAGS set in your user environment? If you do then unset it and
try again.
That is the only way I can think that '-no-cpp-precomp -isystem /usr/include'
is getting included as the configure script should filter such stuff out if it
appears in lib/python2.6/config/Makefile where flags are sourced from. It
doesn't filter CPPFLAGS from user environment though.
Original comment by Graham.Dumpleton@gmail.com
on 6 Sep 2011 at 1:24
$ cat /usr/pkg/lib/python2.6/config/Makefile | grep ^CPPFLAGS
CPPFLAGS= -I. -IInclude -I$(srcdir)/Include -no-cpp-precomp -isystem
/usr/include -I/usr/include -I/usr/pkg/include
AFAICT, CPPFLAGS is not being set anywhere else in my env.
Original comment by j...@sdf.org
on 6 Sep 2011 at 3:47
What do you get doing the following in Python:
from distutils import sysconfig
print repr(sysconfig.get_config_var("INCLUDEPY"))
print repr(sysconfig.get_config_var("CFLAGS"))
Original comment by Graham.Dumpleton@gmail.com
on 6 Sep 2011 at 3:52
$ /usr/pkg/bin/python2.6
Python 2.6.6 (r266:84292, May 25 2011, 12:31:55)
>>> from distutils import sysconfig
>>> print repr(sysconfig.get_config_var("INCLUDEPY"))
'/usr/pkg/include/python2.6'
>>> print repr(sysconfig.get_config_var("CFLAGS"))
'-fno-strict-aliasing -pipe -O2 -DHAVE_DB_185_H -I/usr/include
-I/usr/pkg/include -DNDEBUG -pipe -O2 -DHAVE_DB_185_H -I/usr/include
-I/usr/pkg/include'
Original comment by j...@sdf.org
on 6 Sep 2011 at 3:56
Can you rerun 'configure' but do it under shell as:
sh -x configure
and capture output into a file and attach here.
Original comment by Graham.Dumpleton@gmail.com
on 6 Sep 2011 at 4:06
Closing due to no further information in relation to last question asked being
supplied and no other reports of issue.
Original comment by Graham.Dumpleton@gmail.com
on 19 Mar 2012 at 10:39
Original issue reported on code.google.com by
j...@sdf.org
on 6 Sep 2011 at 12:20