Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wont build on FreeBSD 12 #1042

Closed
william-gr opened this issue May 1, 2017 · 5 comments
Closed

Wont build on FreeBSD 12 #1042

william-gr opened this issue May 1, 2017 · 5 comments

Comments

@william-gr
Copy link

Hi, apparently FreeBSD 12 (current) have some changes which breaks psutil:

cc -DNDEBUG -pipe -g -fstack-protector -fno-strict-aliasing -fPIC -DPSUTIL_VERSION=430 -I/usr/local/include/python3.6m -c psutil/arch/bsd/freebsd_socks.c -o build/temp.freebsd-12.0-CURRENT-amd64-3.6/psutil/arch/bsd/freebsd_socks.o
psutil/arch/bsd/freebsd_socks.c:127:39: error: no member named 'xt_tp' in 'struct xtcpcb'
        tp = &((struct xtcpcb *)xig)->xt_tp;
              ~~~~~~~~~~~~~~~~~~~~~~  ^
psutil/arch/bsd/freebsd_socks.c:128:13: warning: incompatible pointer types assigning to 'struct inpcb *' from 'struct xinpcb *' [-Wincompatible-pointer-types]
        inp = &((struct xtcpcb *)xig)->xt_inp;
            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
psutil/arch/bsd/freebsd_socks.c:129:39: error: no member named 'xt_socket' in 'struct xtcpcb'
        so = &((struct xtcpcb *)xig)->xt_socket;
              ~~~~~~~~~~~~~~~~~~~~~~  ^
psutil/arch/bsd/freebsd_socks.c:138:33: error: incomplete definition of type 'struct inpcb'
                    AF_INET, inp->inp_lport, &inp->inp_laddr,
                             ~~~^
/usr/include/netinet/in_pcb.h:65:22: note: forward declaration of 'struct inpcb'
LIST_HEAD(inpcbhead, inpcb);
                     ^
building for: FreeBSD ja-freenas-head-p-job-02 12.0-CURRENT FreeBSD 12.0-CURRENT amd64
Host OSVERSION: 1200027

Let me know if there is anything else I can provide. Thanks.

@giampaolo
Copy link
Owner

Damn... :(
I don't have a FreeBSD 12 to test against, nor will have time to set it up on virtualbox any time soon.

@giampaolo
Copy link
Owner

It turns out I found time. I installed FreeBSD12 and I can see a long list of errors about incomplete or missing members of structs. It looks like FreeBSD12 broke backward compatibility pretty badly. It doesn't look promising. FWIW I tried to post on freebsd-dev forum asking for help:
https://forums.freebsd.org/threads/60846/

@giampaolo
Copy link
Owner

@william-gr
Copy link
Author

Awesome, thanks!

giampaolo referenced this issue in freebsd/freebsd-ports May 12, 2017
@glebius
Copy link
Contributor

glebius commented May 14, 2017

Yes, please include the patch from ports into next psutil release. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants