John Beck added the comment:

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.

----------
nosy: +jbeck

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19561>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to