Makefile.am: fix undefined function for libnsm.a
Subsystems (2)
PATCH 1/1 Makefile.am: fix undefined function for libnsm.a
From: Mingli Yu <[email protected]>
The source file of libnsm.a uses some function in ../support/misc/file.c, add ../support/misc/file.c to libnsm_a_SOURCES to fix build error when run "make -C tests statdb_dump":
| ../support/nsm/libnsm.a(file.o): In function `nsm_make_pathname': | /usr/src/debug/nfs-utils/2.3.3-r0/nfs-utils-2.3.3/support/nsm/file.c:175: undefined reference to `generic_make_pathname' | /usr/src/debug/nfs-utils/2.3.3-r0/nfs-utils-2.3.3/support/nsm/file.c:175: undefined reference to `generic_make_pathname' | /usr/src/debug/nfs-utils/2.3.3-r0/nfs-utils-2.3.3/support/nsm/file.c:175: undefined reference to `generic_make_pathname' | ../support/nsm/libnsm.a(file.o): In function `nsm_setup_pathnames': | /usr/src/debug/nfs-utils/2.3.3-r0/nfs-utils-2.3.3/support/nsm/file.c:280: undefined reference to `generic_setup_basedir' | collect2: error: ld returned 1 exit status
As there is already one source file named file.c as support/nsm/file.c in support/nsm/Makefile.am, so rename ../support/misc/file.c to ../support/misc/misc.c.
Signed-off-by Mingli Yu <[email protected]>
--- support/misc/Makefile.am | 2 +- support/misc/file.c | 111 ----------------------------------------------- support/misc/misc.c | 111 +++++++++++++++++++++++++++++++++++++++++++++++ support/nsm/Makefile.am | 2 +- 4 files changed, 113 insertions(+), 113 deletions(-) delete mode 100644 support/misc/file.c create mode 100644 support/misc/misc.c
support/misc/Makefile.am +1 -1
@@ -1,6 +1,6 @@ ## Process this file with automake to produce Makefile.in noinst_LIBRARIES = libmisc.a -libmisc_a_SOURCES = tcpwrapper.c from_local.c mountpoint.c file.c +libmisc_a_SOURCES = tcpwrapper.c from_local.c mountpoint.c misc.c MAINTAINERCLEANFILES = Makefile.in
support/misc/file.c deleted +0 -111
111 lines not on this page · raw message
support/misc/misc.c new file +111 -0
111 lines not on this page · raw message
support/nsm/Makefile.am +1 -1
@@ -10,7 +10,7 @@ GENFILES = $(GENFILES_CLNT) $(GENFILES_SVC) $(GENFILES_XDR) $(GENFILES_H) EXTRA_DIST = sm_inter.x noinst_LIBRARIES = libnsm.a -libnsm_a_SOURCES = $(GENFILES) file.c rpc.c +libnsm_a_SOURCES = $(GENFILES) ../misc/misc.c file.c rpc.c BUILT_SOURCES = $(GENFILES)
Signature · 1 line
2.7.4