In Linux, I just did export CC=clang and export CXX=clang++<br>and It works great. <br>I am not sure on MaC OS but feel that it should work as both are UNIXs<br><br><br><br><div class="gmail_quote">On Thu, May 3, 2012 at 1:34 PM, Michal Stefanow <span dir="ltr"><<a href="mailto:mstefanow@gmail.com" target="_blank">mstefanow@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm having a problem with compiling. I've never used clang and I'm not sure how set up environment etc...
<div><br></div><div>***</div><div><br></div><div>Here is the makefile - <a href="http://pastebin.com/JqaB2GSh" target="_blank">http://pastebin.com/JqaB2GSh</a></div><div><br></div><div>***</div><div><br></div><div>./configure - <a href="http://pastebin.com/7Dw6Ybqi" target="_blank">http://pastebin.com/7Dw6Ybqi</a></div>
<div><br></div><div>***</div><div><br></div><div>Trying to make:</div><div><div>make</div><div>Making all in backend</div><div>/bin/sh ../libtool --tag=CC --mode=compile clang -DPACKAGE_NAME=\"Firesheep\" -DPACKAGE_TARNAME=\"firesheep\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"Firesheep\ 0.1\" -DPACKAGE_BUGREPORT=\"<a href="mailto:eric@codebutler.com" target="_blank">eric@codebutler.com</a>\" -DPACKAGE_URL=\"<a href="http://codebutler.github.com/firesheep%5C" target="_blank">http://codebutler.github.com/firesheep\</a>" -DPACKAGE=\"firesheep\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_BOOST=1 -DHAVE_BOOST_FORMAT_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_HPP=1 -I. -I deps/ -I deps/http-parser -I deps/json_spirit -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wall -g -O0 -DPLATFORM_OSX -arch i386 -arch x86_64 -MT libfiresheep_la-http_parser.lo -MD -MP -MF .deps/libfiresheep_la-http_parser.Tpo -c -o libfiresheep_la-http_parser.lo `test -f 'deps/http-parser/http_parser.c' || echo './'`deps/http-parser/http_parser.c</div>
<div>libtool: compile: clang -DPACKAGE_NAME=\"Firesheep\" -DPACKAGE_TARNAME=\"firesheep\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"Firesheep 0.1\"" -DPACKAGE_BUGREPORT=\"<a href="mailto:eric@codebutler.com" target="_blank">eric@codebutler.com</a>\" -DPACKAGE_URL=\"<a href="http://codebutler.github.com/firesheep%5C" target="_blank">http://codebutler.github.com/firesheep\</a>" -DPACKAGE=\"firesheep\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_BOOST=1 -DHAVE_BOOST_FORMAT_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_HPP=1 -I. -I deps/ -I deps/http-parser -I deps/json_spirit -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wall -g -O0 -DPLATFORM_OSX -arch i386 -arch x86_64 -MT libfiresheep_la-http_parser.lo -MD -MP -MF .deps/libfiresheep_la-http_parser.Tpo -c deps/http-parser/http_parser.c -fno-common -DPIC -o .libs/libfiresheep_la-http_parser.o</div>
<div>In file included from deps/http-parser/http_parser.c:21:</div><div>deps/http-parser/http_parser.h:28:10: fatal error: 'sys/types.h' file not found</div><div>#include <sys/types.h></div><div> ^</div>
<div>1 error generated.</div><div>make[1]: *** [libfiresheep_la-http_parser.lo] Error 1</div><div>make: *** [all-recursive] Error 1</div></div><div><br></div><div>***</div><div><br></div><div>cat /usr/include/sys/types.h - <a href="http://pastebin.com/ke59jmfq" target="_blank">http://pastebin.com/ke59jmfq</a></div>
<div><br></div><div>***</div><div><br></div><div><div>clang --version</div><div>Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)</div><div>Target: x86_64-apple-darwin11.3.0</div><div>Thread model: posix</div>
</div><div><br></div><div>***</div><div><br></div><div>I have never been proficient in solving includes and compiling dependecies, simple Google search search in this case neither... Probably this a matter of setting one flag or another. Any hints?</div>
<div><br></div><div>Thanks in advance</div><span class="HOEnZb"><font color="#888888"><div>Michal Stefanow</div>
</font></span><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br>