A user is building Amanda on HPUX, and ran into a compiler error: | /* end confdefs.h. */ | #include <sys/types.h> | #include <sys/socket.h> | | int getpeername (int, void *, long int *); | int | main () | { | long int len; | getpeername (0, 0, &len); | ; | return 0; | } configure:14885: cc -c conftest.c >&5 (Bundled) cc: "conftest.c", line 82: error 1000: Unexpected symbol: "i". (Bundled) cc: "conftest.c", line 82: error 1002: Unexpected character: 'u'. (Bundled) cc: "conftest.c", line 82: error 1000: Unexpected symbol: "<". (Bundled) cc: "conftest.c", line 82: error 1000: Unexpected symbol: "/". (Bundled) cc: "conftest.c", line 82: error 1000: Unexpected symbol: ".". (Bundled) cc: "conftest.c", line 82: error 1000: Unexpected symbol: ">". (Bundled) cc: "conftest.c", line 84: error 1705: Function prototypes are an ANSI feature.
that #include shouldn't be indented like that. Looking in socklen.m4: 28 AC_TRY_COMPILE( 29 [#include <sys/types.h> 30 #include <sys/socket.h> line 30 should have the # in the left margin as in e.g., sockets.m4. A grep through the .m4 source shows a lot of indended #include directives. Should these all be fixed? I can provide a git patch if desired. Dustin -- Storage Software Engineer http://www.zmanda.com