This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Missing DEFS in Makefile.pre.in breakage
Type: Stage:
Components: Distutils Versions: Python 2.3
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: majid, nijel, nnorwitz
Priority: normal Keywords:

Created on 2003-07-30 01:46 by majid, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (3)
msg17438 - (view) Author: Fazal Majid (majid) Date: 2003-07-30 01:46
DEFS= is missing from  the top-level Makefile.pre.in in
Python 2.3 final. This causes quite a few older
distutils C extension packages that rely on the
presence of DEFS to break, e.g. DCOracle2-1.1 or
python-ldap 1.10alpha3.

This is because they include @DEFS@ on the
command-line, which causes gcc to barf with a message
saying -c and -o are incompatible for multiple
compilations.

The following patch remedies this:

*** Makefile.pre.in~    Sun Jul 13 03:10:42 2003
--- Makefile.pre.in     Tue Jul 29 18:23:22 2003
***************
*** 55,60 ****
--- 55,61 ----
  # Compiler options
  OPT=          @OPT@
  BASECFLAGS=   @BASECFLAGS@
+ DEFS=         $(BASECFLAGS)
  CFLAGS=               $(BASECFLAGS) $(OPT)
  CPPFLAGS=     -I. -I$(srcdir)/Include
  LDFLAGS=      @LDFLAGS@

(I am not sure if BASECFLAGS is a strict equivalent for
DEFS, though).

Platform: Solaris 8 MU7 x/86
Compiler: gcc-2.95.3
msg17439 - (view) Author: Michal Čihař (nijel) * Date: 2003-08-06 14:52
Logged In: YES 
user_id=192186

JFYI: patch #736417
msg17440 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-10-02 05:34
Logged In: YES 
user_id=33168

Martin rejected the patch, so closing this report.
History
Date User Action Args
2022-04-10 16:10:20adminsetgithub: 38966
2003-07-30 01:46:42majidcreate