Conflicting gethostname function definition on Solaris 9

John Ky johnk at aurema.commercial
Fri Nov 28 00:55:04 CET 2003


Building Python works fine.  Now I am trying to build my own python
module on Solaris 9, but I'm getting the following conflict:

In file included from
                 from elxml.cpp:20:
/wrk/src/test/tools/local/include/python2.2/pyport.h:333: declaration
   of C function `int gethostname(char*, int)' conflicts with
/usr/include/unistd.h:274: previous declaration `int gethostname(char*, long
   unsigned int)' here

Did I do something wrong?



More information about the Python-list mailing list