[Python-bugs-list] [ python-Bugs-779973 ] Missing DEFS in Makefile.pre.in breakage

SourceForge.net noreply@sourceforge.net
Wed, 06 Aug 2003 07:52:25 -0700


Bugs item #779973, was opened at 2003-07-30 03:46
Message generated for change (Comment added) made by nijel
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=779973&group_id=5470

Category: Distutils
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Fazal Majid (majid)
Assigned to: Nobody/Anonymous (nobody)
Summary: Missing DEFS in Makefile.pre.in breakage

Initial Comment:
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

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

Comment By: Michal Čihař (nijel)
Date: 2003-08-06 16:52

Message:
Logged In: YES 
user_id=192186

JFYI: patch #736417

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

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