crap icon indicating copy to clipboard operation
crap copied to clipboard

Does not compile on Mac OS X 10.9

Open swimchiu opened this issue 11 years ago • 4 comments

$ 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

swimchiu avatar Oct 09 '14 06:10 swimchiu

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 <netdb.h>" work?

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.

rcls avatar Oct 09 '14 21:10 rcls

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 #include <pipeline.h> ^ 1 error generated. make: *** [cvs_connection.o] Error 1

craigk5n avatar Jun 24 '17 15:06 craigk5n

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.

rcls avatar Jun 24 '17 23:06 rcls

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.

rcls avatar Jun 24 '17 23:06 rcls