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.

Author jbeck
Recipients jbeck, jcea, python-dev, r.david.murray, risto3, wiz
Date 2015-04-09.01:33:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428543189.17.0.881777518646.issue19561@psf.upfronthosting.co.za>
In-reply-to
Content
We (Solaris engineering) have hit this issue after migrating from 2.6
being our default version of Python to 2.7 being the default.  The
specific component that broke was vim (version 7.4), trying to compile
if_python.c:

"/usr/include/python2.7/pyport.h", line 645: identifier redeclared:
    gethostname                                                                          
        current : function(pointer to char, int) returning int                       
        previous: function(pointer to char, unsigned long) returning int :           
"/usr/include/unistd.h", line 412                                                    

We had this patched out in Python 2.6's Include/pyport.h:

-#ifdef SOLARIS
-/* Unchecked */
-extern int gethostname(char *, int);
-#endif

but for some reason that patch was not propagated to our 2.7 line.
Until today, that is; I will be applying that patch shortly to both
2.7 and 3.4.
History
Date User Action Args
2015-04-09 01:33:09jbecksetrecipients: + jbeck, jcea, r.david.murray, wiz, python-dev, risto3
2015-04-09 01:33:09jbecksetmessageid: <1428543189.17.0.881777518646.issue19561@psf.upfronthosting.co.za>
2015-04-09 01:33:09jbecklinkissue19561 messages
2015-04-09 01:33:08jbeckcreate