[Python-Dev] Python 2.2a1 nits

M.-A. Lemburg mal@lemburg.com
Fri, 20 Jul 2001 17:08:09 +0200


Here's a summary of nits I found compiling Python 2.2a1:

* configure options: the options should follow a single
  methodology (either all use --with(out)-<feature> or all
  use --enable-<feature>/--disable-<feature>) and the
  defaults should be clearly indicated...

  --without-gcc                   never use gcc
  --with-cxx=<compiler>           enable C++ support
  --with-suffix=.exe              set executable suffix
  --with-pydebug                  build with Py_DEBUG defined
  --enable-ipv6                   Enable ipv6 (with ipv4) support
  --disable-ipv6                  Disable ipv6 support
  --with-libs='lib1 ...'          link against additional libs
  --with-signal-module            disable/enable signal module
  --with-dec-threads              use DEC Alpha/OSF1 thread-safe libraries
  --with(out)-threads[=DIRECTORY] disable/enable thread support
  --with(out)-thread[=DIRECTORY]  deprecated; use --with(out)-threads
  --with-pth                      use GNU pth threading libraries
  --with(out)-cycle-gc            disable/enable garbage collection
  --with(out)-pymalloc            disable/enable specialized mallocs
  --with-wctype-functions         use wctype.h functions
  --with-sgi-dl=DIRECTORY         IRIX 4 dynamic linking
  --with-dl-dld=DL_DIR,DLD_DIR    GNU dynamic linking
  --with-fpectl                   enable SIGFPE catching
  --with-libm=STRING              math library
  --with-libc=STRING              C library
  --enable-unicode[=ucs2,ucs4]    Enable Unicode strings (default is yes)

  I'd suggest going with --with(out)-<feature> since this
  seems to be the most often used one.

* warnings:

In file included from ./Modules/_sre.c:54:
Modules/sre.h:24: warning: `SRE_CODE' redefined
Modules/sre.h:19: warning: this is the location of the previous definition

libpython2.2.a(posixmodule.o): In function `posix_tmpnam':
/home/lemburg/orig/Python-2.2a1/./Modules/posixmodule.c:4262: the use of `tmpnam_r' is dangerous, better use `mkstemp'

libpython2.2.a(posixmodule.o): In function `posix_tempnam':
/home/lemburg/orig/Python-2.2a1/./Modules/posixmodule.c:4217: the use of `tempnam' is dangerous, better use `mkstemp'

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                        http://www.lemburg.com/python/