[PATCH] fix autofs 5.0.7 lib compile error

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

 



I'm seeing a compile error:

  In file included from rpc_subs.c:37:0:
  mount.h:6:0: error: unterminated #ifndef
  rpc_subs.c:57:9: error: 'MOUNTVERS_NFSV3' undeclared here (not in a function)
  rpc_subs.c:58:9: error: 'MOUNTVERS_POSIX' undeclared here (not in a function)
  rpc_subs.c:59:9: error: 'MOUNTVERS' undeclared here (not in a function)
  rpc_subs.c:780:58: error: unknown type name 'exports'
  rpc_subs.c:841:29: error: unknown type name 'exports'
  rpc_subs.c:860:23: error: unknown type name 'exports'
  rpc_subs.c:872:1: error: unknown type name 'exports'
  rpc_subs.c: In function 'rpc_get_exports':
  rpc_subs.c:875:2: error: unknown type name 'exports'
  rpc_subs.c:882:17: error: 'MOUNTPROG' undeclared (first use in this function)
  rpc_subs.c:882:17: note: each undeclared identifier is reported only once for
  +each function it appears in
  rpc_subs.c:882:15: warning: assignment makes integer from pointer without a cast
  +[enabled by default]
  rpc_subs.c:915:3: warning: return makes integer from pointer without a cast
  +[enabled by default]
  rpc_subs.c:921:3: warning: return makes integer from pointer without a cast
  +[enabled by default]
  rpc_subs.c:927:3: warning: return makes integer from pointer without a cast
  +[enabled by default]

It looks like the rpcgen generated files haven't been successfully
generated at this stage.

This can be remedied by adding some dependencies to lib/Makefile...
--
 Makefile |    1 +
 1 file changed, 1 insertion(+)

diff -uNr autofs-5.0.7.orig/lib/Makefile autofs-5.0.7/lib/Makefile
--- autofs-5.0.7.orig/lib/Makefile	2013-02-04 13:41:49.946341454 -0800
+++ autofs-5.0.7/lib/Makefile	2013-02-04 13:42:19.954107635 -0800
@@ -75,3 +75,4 @@
 clean:
 	rm -f $(LIB) $(RPCS) $(OBJS) $(YACCSRC) *.output *~
 
+$(OBJS): $(RPCS)
bash: diffgen: command not found
--
To unsubscribe from this list: send the line "unsubscribe autofs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux