bug-gnulib
[Top][All Lists]
Advanced

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

syntax error in m4/socklen.m4


From: Dustin J. Mitchell
Subject: syntax error in m4/socklen.m4
Date: Wed, 9 Apr 2008 16:02:49 -0400

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]