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.

classification
Title: Solaris 8 declares gethostname().
Type: Stage:
Components: Build Versions: Python 2.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: deragon, georg.brandl, loewis
Priority: normal Keywords:

Created on 2005-08-12 15:00 by deragon, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg26040 - (view) Author: Hans Deragon (deragon) Date: 2005-08-12 15:00
In portpy.h line 377, we find:

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

Well, on Solaris 8, that function is declared in
/usr/include/unistd.h, thus a conflict.  In unistd.h,
there are a few #ifdef prior the declaration, so there
might be some situation where the function is not declared.

Of course, I cannot copy and paste the relevant section
of unistd.h because of copyright.  You might want to
ask Sun Microsystem a copy of this file to patch this
problem.

My work around was to comment the above code in portpy.h.
msg26041 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-08-13 14:05
Logged In: YES 
user_id=21627

What precise problem does this cause?
msg26042 - (view) Author: Hans Deragon (deragon) Date: 2005-08-14 10:35
Logged In: YES 
user_id=148726

When compiling beecrypt, it complained that gethostname()
was declared twice.  Seams that beecrypt was compiling
something for python and thus included pyport.h.  At the
same time, it was including unistd.h.  That cause beecrypt
compilation to halt with an error.
msg26043 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-02-20 18:34
Logged In: YES 
user_id=849994

This is a duplicate of #837046.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42271
2009-02-13 04:50:49ajaksu2linkissue837046 dependencies
2005-08-12 15:00:07deragoncreate