Conflicting gethostname function definition on Solaris 9
John Ky
johnk at aurema.commercial
Mon Dec 1 22:31:03 EST 2003
To work around this, I had to do two things:
1. not defined "SOLARIS"
2. put "python.h" first in the header file.
"John Ky" <johnk at aurema.commercial> wrote in message
news:1069977306.415163 at cousin.sw.oz.au...
> Hello:
>
> 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
> /wrk/src/test/tools/local/include/python2.2/Python.h:62,
> 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?
>
> Thanks
>
> -John
More information about the Python-list
mailing list