[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[coldsync-hackers] help compiling with gcc 4.0.1 on Mac OS 10.4.4



I'm trying to compile coldsync on my Mac. I did a './configure', which claimed that my kit looks good, and then 'make'. I don't have very much experience with Unix hacking, so I'm not sure what to make of the errors I'm seeing, which start with:

gcc -Wall -ansi -pedantic -g -O2 -DHAVE_CONFIG_H -I. -I./.. -I./../include -I/usr/local/include -c PConnection_net.c
In file included from PConnection_net.c:14:
/usr/include/arpa/nameser.h:121: error: parse error before '*' token
/usr/include/arpa/nameser.h:123: error: parse error before '*' token
/usr/include/arpa/nameser.h:126: error: parse error before '*' token

...and a zillion more like these.  Line 121 of nameser.h is:

	const u_char	*_msg, *_eom;

So maybe my setup hasn't defined what u_char is?

If it matters, gcc -v returns:

Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5247.obj~4/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5247)

I'm at a bit of a loss here... can anyone offer any insight?

Thanks,
- Joe

--

Joseph J. Strout
joe@strout.net