rcls / crap

Cvs Remote Access Program
GNU General Public License v3.0
46 stars 12 forks source link

Does not compile on Mac OS X 10.9 #8

Open swimchiu opened 9 years ago

swimchiu commented 9 years ago

$ 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

rcls commented 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 " 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.

craigk5n commented 7 years ago

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

       ^

1 error generated. make: *** [cvs_connection.o] Error 1

rcls commented 7 years ago

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 commented 7 years ago

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.