Ashley M. Kirchner wrote:

>Mark Sapiro wrote:
>> It looks like the
>>
>> #include "Python.h"
>>
>> near the beginning of _koco.c is failing. Is there a python2.4 directory
>> in /usr/include?
>>   
>    That was it.  python-devel was not installed on this machine.  Would 
>be nice if the configure script checked for all  the necessary header 
>files prior to compiling/installing.


In off list communication, we discovered that the RedHat FC5 'python'
package contains a full distutils module, but does not contain the
necessary header files for compiling/installing Python packages with C
language extensions.

A patch to configure.in (which is processed by autoconf to make
configure) which makes configure test explicitly for the header files
is attached and will be included in Mailman 2.1.10.


>It installed now...though the 
>bazillion errors were still there:
>
>src/_koco_uhc.h:3008: warning: pointer targets in initialization differ 
>in signedness
>src/_koco_uhc.h:3008: warning: pointer targets in initialization differ 
>in signedness
>src/_koco_uhc.h:3008: warning: pointer targets in initialization differ 
>in signedness
<snip>

I was able to duplicate these warnings by giving the -pedantic option
to gcc. They are not fatal, and the installed korean codecs will still
work.

Also, the configure in Mailman 2.1.10 will have a great deal more in it
than the ones in 2.1.9 and previous versions. This is not because of
any configure.in changes, but rather because it is generated with
autoconf 2.59 which adds a bunch more stuff than autoconf 2.13 (which
generated the Mailman 2.1.9 configure) did.

-- 
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

=== modified file 'configure.in'
--- configure.in        2006-12-29 21:56:04 +0000
+++ configure.in        2007-09-21 22:12:14 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -101,7 +101,14 @@
     except distutils.errors.DistutilsPlatformError:
         res = "no"
     else:
-        res = "yes"
+        # some RedHat packages put distutils in python, but the C headers
+        # are in python-devel so check for headers too.
+        import os.path
+        pdothpath = distutils.sysconfig.get_config_var('CONFINCLUDEPY')
+        if os.path.isfile(os.path.join(pdothpath, "Python.h")):
+            res = "yes"
+        else:
+            res = "no"
 fp = open("conftest.out", "w")
 fp.write("%s\n" % res)
 fp.close()
@@ -117,7 +124,8 @@
 ***** Distutils is not available or is incomplete for $PYTHON
 ***** If you installed Python from RPM (or other package manager)
 ***** be sure to install the -devel package, or install Python
-***** from source.  See README.LINUX for details])
+***** from source.  See sec. 15.1 of the Installation Manual for
+***** details])
 fi
 AC_MSG_RESULT($havedistutils)
 

------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to