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

Fix psutil compilation #202

Closed
GoogleCodeExporter opened this issue Aug 9, 2015 · 3 comments
Closed

Fix psutil compilation #202

GoogleCodeExporter opened this issue Aug 9, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

Right now psutil is not required to build 19+ but Mozilla is developing a 
python fetish and it is entirely possible it will be later.

Currently compiling psutil bombs, but the build system recovers. However, it 
*should* work with a little hacking.

Irrelevant for 17.

Original issue reported on code.google.com by classi...@floodgap.com on 12 Jan 2013 at 6:23

@classilla
Copy link
Owner

psutil/_psutil_osx.c:18:21: error: libproc.h: No such file or directory
psutil/_psutil_osx.c:19:27: error: sys/proc_info.h: No such file or directory
psutil/_psutil_osx.c:32:32: error: mach/shared_region.h: No such file or directory
psutil/_psutil_osx.c: In function 'psutil_proc_cwd':
psutil/_psutil_osx.c:138: error: storage size of 'pathinfo' isn't known
psutil/_psutil_osx.c:143: error: 'PROC_PIDVNODEPATHINFO' undeclared (first use in this function)
psutil/_psutil_osx.c:143: error: (Each undeclared identifier is reported only once
psutil/_psutil_osx.c:143: error: for each function it appears in.)
psutil/_psutil_osx.c:138: warning: unused variable 'pathinfo'
psutil/_psutil_osx.c: In function 'psutil_proc_exe':
psutil/_psutil_osx.c:164: warning: implicit declaration of function 'proc_pidpath'
psutil/_psutil_osx.c: In function 'psutil_proc_memory_maps':
psutil/_psutil_osx.c:322: warning: format '%016lx' expects type 'long unsigned int', but argument 3 has type 'vm_address_t'
psutil/_psutil_osx.c:322: warning: format '%016lx' expects type 'long unsigned int', but argument 4 has type 'vm_address_t'
psutil/_psutil_osx.c:331: warning: implicit declaration of function 'proc_regionfilename'
psutil/_psutil_osx.c: In function 'psutil_proc_cpu_times':
psutil/_psutil_osx.c:450: error: storage size of 'pti' isn't known
psutil/_psutil_osx.c:454: error: 'PROC_PIDTASKINFO' undeclared (first use in this function)
psutil/_psutil_osx.c:450: warning: unused variable 'pti'
psutil/_psutil_osx.c: In function 'psutil_proc_memory_info':
psutil/_psutil_osx.c:486: error: storage size of 'pti' isn't known
psutil/_psutil_osx.c:490: error: 'PROC_PIDTASKINFO' undeclared (first use in this function)
psutil/_psutil_osx.c:486: warning: unused variable 'pti'
psutil/_psutil_osx.c: In function 'psutil_proc_num_threads':
psutil/_psutil_osx.c:514: error: storage size of 'pti' isn't known
psutil/_psutil_osx.c:518: error: 'PROC_PIDTASKINFO' undeclared (first use in this function)
psutil/_psutil_osx.c:514: warning: unused variable 'pti'
psutil/_psutil_osx.c: In function 'psutil_proc_num_ctx_switches':
psutil/_psutil_osx.c:531: error: storage size of 'pti' isn't known
psutil/_psutil_osx.c:535: error: 'PROC_PIDTASKINFO' undeclared (first use in this function)
psutil/_psutil_osx.c:531: warning: unused variable 'pti'
psutil/_psutil_osx.c: In function 'psutil_disk_partitions':
psutil/_psutil_osx.c:754: warning: implicit declaration of function 'getfsstat'
psutil/_psutil_osx.c:754: error: 'MNT_NOWAIT' undeclared (first use in this function)
psutil/_psutil_osx.c:761: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:778: error: invalid use of undefined type 'struct statfs'
psutil/_psutil_osx.c:778: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:781: error: 'MNT_RDONLY' undeclared (first use in this function)
psutil/_psutil_osx.c:785: error: 'MNT_SYNCHRONOUS' undeclared (first use in this function)
psutil/_psutil_osx.c:787: error: 'MNT_NOEXEC' undeclared (first use in this function)
psutil/_psutil_osx.c:789: error: 'MNT_NOSUID' undeclared (first use in this function)
psutil/_psutil_osx.c:791: error: 'MNT_UNION' undeclared (first use in this function)
psutil/_psutil_osx.c:793: error: 'MNT_ASYNC' undeclared (first use in this function)
psutil/_psutil_osx.c:795: error: 'MNT_EXPORTED' undeclared (first use in this function)
psutil/_psutil_osx.c:797: error: 'MNT_QUARANTINE' undeclared (first use in this function)
psutil/_psutil_osx.c:799: error: 'MNT_LOCAL' undeclared (first use in this function)
psutil/_psutil_osx.c:801: error: 'MNT_QUOTA' undeclared (first use in this function)
psutil/_psutil_osx.c:803: error: 'MNT_ROOTFS' undeclared (first use in this function)
psutil/_psutil_osx.c:805: error: 'MNT_DOVOLFS' undeclared (first use in this function)
psutil/_psutil_osx.c:807: error: 'MNT_DONTBROWSE' undeclared (first use in this function)
psutil/_psutil_osx.c:809: error: 'MNT_IGNORE_OWNERSHIP' undeclared (first use in this function)
psutil/_psutil_osx.c:811: error: 'MNT_AUTOMOUNTED' undeclared (first use in this function)
psutil/_psutil_osx.c:813: error: 'MNT_JOURNALED' undeclared (first use in this function)
psutil/_psutil_osx.c:815: error: 'MNT_NOUSERXATTR' undeclared (first use in this function)
psutil/_psutil_osx.c:817: error: 'MNT_DEFWRITE' undeclared (first use in this function)
psutil/_psutil_osx.c:819: error: 'MNT_MULTILABEL' undeclared (first use in this function)
psutil/_psutil_osx.c:821: error: 'MNT_NOATIME' undeclared (first use in this function)
psutil/_psutil_osx.c:823: error: 'MNT_UPDATE' undeclared (first use in this function)
psutil/_psutil_osx.c:825: error: 'MNT_RELOAD' undeclared (first use in this function)
psutil/_psutil_osx.c:827: error: 'MNT_FORCE' undeclared (first use in this function)
psutil/_psutil_osx.c:829: error: 'MNT_CMDFLAGS' undeclared (first use in this function)
psutil/_psutil_osx.c:833: error: invalid use of undefined type 'struct statfs'
psutil/_psutil_osx.c:833: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:834: error: invalid use of undefined type 'struct statfs'
psutil/_psutil_osx.c:834: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:835: error: invalid use of undefined type 'struct statfs'
psutil/_psutil_osx.c:835: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c: In function 'psutil_proc_open_files':
psutil/_psutil_osx.c:997: error: storage size of 'vi' isn't known
psutil/_psutil_osx.c:1008: warning: implicit declaration of function 'proc_pidinfo'
psutil/_psutil_osx.c:1008: error: 'PROC_PIDLISTFDS' undeclared (first use in this function)
psutil/_psutil_osx.c:1030: error: 'PROC_PIDLISTFD_SIZE' undeclared (first use in this function)
psutil/_psutil_osx.c:1034: error: invalid use of undefined type 'struct proc_fdinfo'
psutil/_psutil_osx.c:1034: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1036: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1036: error: 'PROX_FDTYPE_VNODE' undeclared (first use in this function)
psutil/_psutil_osx.c:1038: warning: implicit declaration of function 'proc_pidfdinfo'
psutil/_psutil_osx.c:1039: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1040: error: 'PROC_PIDFDVNODEPATHINFO' undeclared (first use in this function)
psutil/_psutil_osx.c:1067: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:997: warning: unused variable 'vi'
psutil/_psutil_osx.c: In function 'psutil_proc_connections':
psutil/_psutil_osx.c:1114: error: storage size of 'si' isn't known
psutil/_psutil_osx.c:1136: error: 'PROC_PIDLISTFDS' undeclared (first use in this function)
psutil/_psutil_osx.c:1150: error: 'PROC_PIDLISTFD_SIZE' undeclared (first use in this function)
psutil/_psutil_osx.c:1157: error: invalid use of undefined type 'struct proc_fdinfo'
psutil/_psutil_osx.c:1157: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1159: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1159: error: 'PROX_FDTYPE_SOCKET' undeclared (first use in this function)
psutil/_psutil_osx.c:1161: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1162: error: 'PROC_PIDFDSOCKETINFO' undeclared (first use in this function)
psutil/_psutil_osx.c:1193: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1114: warning: unused variable 'si'
psutil/_psutil_osx.c: In function 'psutil_proc_num_fds':
psutil/_psutil_osx.c:1322: error: 'PROC_PIDLISTFDS' undeclared (first use in this function)
psutil/_psutil_osx.c:1336: error: 'PROC_PIDLISTFD_SIZE' undeclared (first use in this function)
psutil/_psutil_osx.c: In function 'psutil_net_io_counters':
psutil/_psutil_osx.c:1385: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1387: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1387: error: 'RTM_IFINFO2' undeclared (first use in this function)
psutil/_psutil_osx.c:1390: error: invalid use of undefined type 'struct if_msghdr2'
psutil/_psutil_osx.c:1398: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1399: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1400: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1401: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1402: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1403: error: dereferencing pointer to incomplete type
psutil/_psutil_osx.c:1404: error: dereferencing pointer to incomplete type
error: command '/usr/bin/gcc-4.0' failed with exit status 1

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

No branches or pull requests

2 participants