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

lsof fails to build on darwin #2219

Closed
jwiegley opened this issue Apr 12, 2014 · 2 comments
Closed

lsof fails to build on darwin #2219

jwiegley opened this issue Apr 12, 2014 · 2 comments

Comments

@jwiegley
Copy link
Contributor

I get this output:

cc  -DHASIPv6=1  -DLINUXV=131000 -DHASIPv6 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAS_STRFTIME -DLSOF_VSTR=\"13.1.0\"    -O   -c -o dfile.o dfile.c
In file included from lsof.h:195:0,
                 from dfile.c:39:
dlsof.h:45:20: fatal error: malloc.h: No such file or directory
 #include <malloc.h>
                    ^
compilation terminated.

This is blocking me from getting git-annex to build, among other problems.

@thoughtpolice
Copy link
Member

Relaying what I said in IRC:

10:25 < thoughtpolice> johnw: i think you need to make configurePhase for lsof do './Configure -n darwin' when 
                       stdenv.isDarwin == true
10:25 < thoughtpolice> johnw: right now it just always does './Configure -n linux'

@jwiegley
Copy link
Contributor Author

Right, just figured that out and sent a pull request. :) Still getting familiar with this configuration system.

jwiegley added a commit to jwiegley/nixpkgs that referenced this issue Apr 12, 2014
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