[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Python 3.6 retirement
* On 2021-10-13 at 06:19 BST, Julien Savard wrote:
error: implicit declaration of function 'sethostname'; did you mean
This is the important bit, the rest is just noise.
The interesting bit is that this code is only included if
HAVE_SETHOSTNAME is declared, yet your compiler is saying it can't be
found. What's probably happening is that configure is using flags that
enable the symbol visibility, but the build of the module itself is not.
In newer Solaris and illumos the relevant part of /usr/include/unistd.h
looks like this:
#if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
extern int setgroups(int, const gid_t *);
extern int sethostname(char *, int);
#endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
so my guess is that configure is looking for it with __EXTENSIONS__
defined, but the module build is not using that. I'm assuming your
older Solaris release at least has sethostname() otherwise the configure
test would be failing.
Could you try building with
or similar and see if that helps?
Jonathan Perkin - Joyent, Inc. - www.joyent.com
Main Index |
Thread Index |