Message202730
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); |
|
Date |
User |
Action |
Args |
2013-11-13 04:36:23 | risto3 | set | recipients:
+ risto3, jcea, r.david.murray |
2013-11-13 04:36:22 | risto3 | set | messageid: <1384317382.8.0.691020332629.issue19561@psf.upfronthosting.co.za> |
2013-11-13 04:36:22 | risto3 | link | issue19561 messages |
2013-11-13 04:36:22 | risto3 | create | |
|