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 risto3
Recipients jcea, r.david.murray, risto3
Date 2013-11-13.04:36:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384317382.8.0.691020332629.issue19561@psf.upfronthosting.co.za>
In-reply-to
Content
Sure, attached is a simple test found on the internet, compiled with the following reproduces the problem:

richard@devzone:~/src$ /opt/local/gcc48/bin/g++ -o tp tp.cpp  -DSOLARIS -I/opt/local/include/python2.7 -L/opt/local/lib -lpython2.7 
In file included from /opt/local/include/python2.7/Python.h:58:0,
                 from tp.cpp:1:
/opt/local/include/python2.7/pyport.h:645:35: error: declaration of C function 'int gethostname(char*, int)' conflicts with
 extern int gethostname(char *, int);
                                   ^
In file included from /opt/local/include/python2.7/Python.h:44:0,
                 from tp.cpp:1:
/usr/include/unistd.h:351:12: error: previous declaration 'int gethostname(char*, uint_t)' here
 extern int gethostname(char *, size_t);
History
Date User Action Args
2013-11-13 04:36:23risto3setrecipients: + risto3, jcea, r.david.murray
2013-11-13 04:36:22risto3setmessageid: <1384317382.8.0.691020332629.issue19561@psf.upfronthosting.co.za>
2013-11-13 04:36:22risto3linkissue19561 messages
2013-11-13 04:36:22risto3create