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

OSX Support #75

Open
thibault-ml opened this issue May 29, 2015 · 7 comments
Open

OSX Support #75

thibault-ml opened this issue May 29, 2015 · 7 comments
Assignees
Milestone

Comments

@thibault-ml
Copy link

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 :-)

@bostjan bostjan added this to the 3.0.0 milestone May 29, 2015
@bostjan
Copy link
Member

bostjan commented May 29, 2015

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 :)

@thibault-ml
Copy link
Author

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

@bostjan
Copy link
Member

bostjan commented Jun 1, 2015

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.

@blysik
Copy link

blysik commented Aug 24, 2015

I'm interested in this also. Subscribing to this thread.

@bostjan
Copy link
Member

bostjan commented Aug 24, 2015

Well, if someone can resolve snprintf issue and submit a pull request, that would be splendid :)

b.

@ElanII
Copy link

ElanII commented Jul 20, 2016

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

@bostjan
Copy link
Member

bostjan commented Jul 21, 2016

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.

@bostjan bostjan self-assigned this Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants