snoopy
snoopy copied to clipboard
OSX Support
snoopy looks like a great nifty tools, and it would be great to have it on OS X!
I'll see if I can help with it at all :-)
I was just recently thinking about "what would it take to make Snoopy *BSD compatible".
Generally I think the only parts that will need work are:
- check if /etc/ld.so.preload works like it does on Linux, or find alternative to it
- src/libsnoopy.c - should work the same, maybe there will be some issue as libc != glibc
- src/datasource/* - some datasources (or their implementation) might be linux-specific
- does OS X use syslog too, or does it have something else by default?
Anyway, there is a test suite now implemented which tests almost all of Snoopy. "make check" will point out any problems that might arise even if everything builds without problems.
Did you try the automated build procedure and if so, did it work? :)
As usual, contributions in form of pull requests are welcome. b.
PS: The funny fact is that I write these very lines on MBAir, but OS X was replaced with Ubuntu after 1h of struggling with it :)
So far it doesn't build on OSX because:
../../src/snoopy.h:43:10: fatal error: 'features.h' file not found
I have not had time to look further, but that one shouldn't be too hard.
OSX does have syslog, yes :-) https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/syslog.3.html
Just tried it, I am just making an intermediate notes here:
Needed to install:
- git
- brew
- autoconf
- automake
- libtool (or you get aclocal failure when doing ./bootstrap.sh)
About feature.h:
- if I throw it out on linux, everything works fine
- I guess defining _XOPEN_SOURCE does the trick
Stuck ATM:
- snprintf: implicit declaration in src/datasource/cmdline.c
- had to go off OS X as some other OS is currently being installed on that machine
b.
I'm interested in this also. Subscribing to this thread.
Well, if someone can resolve snprintf issue and submit a pull request, that would be splendid :)
b.
hi all, I'm interesting in studying snoopy under OS X but I'm truly newbie, seem to understand that i can't install on OS X? or I'm wrong
You are correct.
To get you going, create an Ubuntu 14.04 VM on your OS X and install Snoopy there first, from git. Once you are familiar with how things are working it Linux, you will be much better off for starting OS X work.