Open swimchiu opened 9 years ago
Hi, the error is coming from inside the system header files, which looks like there might be a problem with your gcc install? Does compiling a test program with just the line "#include
You could try changing the CC=gcc in my makefile to CC=cc and see if that makes a difference.
But if you get past that error you'll probably hit a couple of Linux specific functions: strverscmp and asprintf, which OS-X probably doesn't support? You can probably find implementations of those functions in gnulib (http://www.gnu.org/software/gnulib/) or elsewhere on the net.
I don't have an OS-X machine handy so I'm limited in how much support I can give you with this, I'm afraid.
Also does not compile on Mac OS 10.12:
gcc -O2 -std=c99 -Wall -Wextra -Werror -D_GNU_SOURCE -g3 -MMD -MP -MF.deps/cvs_connection.o.d -c -o cvs_connection.o -c cvs_connection.c cvs_connection.c:10:10: fatal error: 'pipeline.h' file not found
^
1 error generated. make: *** [cvs_connection.o] Error 1
You would have to install libpipeline on your system. But there are also some linux-isms in my source code. I don't have a Mac but patches to get this going would be welcome. The Linux specific bits are just utility functions etc that should be fairly straightforward to replace.
You would have to install libpipeline on your system. But there are also some linux-isms in my source code. I don't have a Mac but patches to get this going would be welcome. The Linux specific bits are just utility functions etc that should be fairly straightforward to replace.
$ make gcc -O2 -Wall -Werror -std=gnu99 -D_GNU_SOURCE -g3 -MMD -MP -MF.deps/cvs_connection.o.d -c -o cvs_connection.o -c cvs_connection.c In file included from /opt/local/lib/gcc48/gcc/x86_64-apple-darwin13/4.8.3/include/stdint.h:9:0, from /usr/include/netdb.h:87, from cvs_connection.c:9: /opt/local/lib/gcc48/gcc/x86_64-apple-darwin13/4.8.3/include-fixed/stdint.h:27:32: fatal error: sys/_types/_int8_t.h: No such file or directory
include <sys/_types/_int8_t.h>
compilation terminated. make: *\ [cvs_connection.o] Error 1