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

make file does not handle spaces in path #9

Closed
aradford123 opened this issue Oct 9, 2016 · 3 comments
Closed

make file does not handle spaces in path #9

aradford123 opened this issue Oct 9, 2016 · 3 comments

Comments

@aradford123
Copy link

One of my parent directories had a space in it. This cause the make to fail.

gcc -Wall -Wno-deprecated-declarations -g -O3 -DDARWIN=1 -DVERSION="1.2" -o /Users/aradford1/Documents/work/interest/PROJECTS/UNSW - research/work/joy/bin/pcap2flow -I ./include -I /opt/local/include pcap2flow.c p2f.c config.c osdetect.c anon.c pkt_proc.c nfv9.c tls.c classify.c radix_trie.c hdr_dsc.c procwatch.c addr_attr.c addr.c wht.c http.c str_match.c acsm.c dns.c example.c -L /usr/lib -lpcap -lm -lcrypto -lz
clang: error: -E or -x required when input is from standard input
clang: error: no such file or directory: 'research/work/joy/bin/pcap2flow'
make[1]: *** [pcap2flow] Error 1
make: *** [pcap2flow] Error 2

@fliphil
Copy link
Contributor

fliphil commented Oct 9, 2016

This is not due to an error with the Joy library. The bash shell has a hard time interpreting directories with spaces in them, because spaces are often used as parsing delimiters for the shell language.

To fix this you either need to rename the directory to not have any spaces, or surround the directory path with quotes when you enter that command.

@fliphil fliphil closed this as completed Oct 9, 2016
@aradford123
Copy link
Author

I understand, however, it is the joy makefile and config script that is generating the above? It needs to have quotes put into it.

@bhudson33
Copy link
Contributor

This will be fixed in the next push. Thanks for the comments!

Cheers,
Bill.

On Oct 9, 2016, at 7:51 PM, aradford123 <notifications@github.commailto:notifications@github.com> wrote:

I understand, however, it is the joy makefile and config script that is generating the above? It needs to have quotes put into it.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/9#issuecomment-252521740, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQTCnIqTCI7WYXhmOU5ofFfcVUenF46Zks5qyX4dgaJpZM4KR3SS.

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

3 participants