Shared Libraries on Linux

Jack Neely jjneely at pams.ncsu.edu
Thu Jul 8 19:28:54 CEST 2004


Arla Folks,

Appears that the shared library problem was the result of me running the
HACKING script, libtool not wanting to overwrite its pre-existing files
while the rest of auto* would gladly regenerate everything.

However, I've run into some more funness that I wanted to mention.  The
Makefile.in's that are not generated from a Makefile.am do not always
install binaries with libtool even though they were compiled by libtool.
So I was getting the ltmail.sh generated wrapper script installed
instead.  Your packages seem to be okay...*shrug*  

Attached is the patch I applied.

The following files are not fixed in my case (the wrapper is still
installed rather than the bin)

/var/tmp/arla-root/usr/lib/libroken.la
/var/tmp/arla-root/usr/lib/libss.la
/var/tmp/arla-root/usr/lib/libsl.la
/var/tmp/arla-root/usr/lib/libarlautil.la

Jack Neely
-- 
Jack Neely <slack at quackmaster.net>
Realm Linux Administration and Development
PAMS Computer Operations at NC State University
GPG Fingerprint: 1917 5AC1 E828 9337 7AA4  EA6B 213B 765F 3B6A 5B89


diff -ru arla-0.36.2.orig/appl/amon/Makefile.in arla-0.36.2/appl/amon/Makefile.in
--- arla-0.36.2.orig/appl/amon/Makefile.in	2003-11-04 18:03:19.000000000 -0500
+++ arla-0.36.2/appl/amon/Makefile.in	2004-07-07 23:54:30.542973500 -0400
@@ -11,6 +11,7 @@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA	= @INSTALL_DATA@
 MKINSTALLDIRS 	= @top_srcdir@/mkinstalldirs
+LIBTOOL = @LIBTOOL@
 
 prefix 		= @prefix@
 exec_prefix 	= @exec_prefix@
@@ -91,7 +92,7 @@
 		$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
 		PROG_BIN='$(APPL_BIN)'; for x in $$PROG_BIN; do \
 			f=`echo $$x | sed '$(transform)'`; \
-			$(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/$$f; \
+			$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/$$f; \
 		done ;
 
 uninstall:
Only in arla-0.36.2/appl/amon: Makefile.in~
diff -ru arla-0.36.2.orig/appl/bos/Makefile.in arla-0.36.2/appl/bos/Makefile.in
--- arla-0.36.2.orig/appl/bos/Makefile.in	2003-11-04 18:03:08.000000000 -0500
+++ arla-0.36.2/appl/bos/Makefile.in	2004-07-07 23:58:33.450034652 -0400
@@ -11,6 +11,7 @@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA	= @INSTALL_DATA@
 MKINSTALLDIRS 	= @top_srcdir@/mkinstalldirs
+LIBTOOL = @LIBTOOL@
 
 prefix 		= @prefix@
 exec_prefix 	= @exec_prefix@
@@ -97,7 +98,7 @@
 		$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
 		PROG_BIN='$(APPL_BIN)'; for x in $$PROG_BIN; do \
 			f=`echo $$x | sed '$(transform)'`; \
-			$(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/$$f; \
+			$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/$$f; \
 		done ;\
 		MANPAGES='$(MANPAGES)'; for x in $$MANPAGES; do \
 			n=`echo $$x | sed 's/\(.*\)\.[1-9a-zA-Z]*$$/\1/'`; \
Only in arla-0.36.2/appl/bos: Makefile.in~
diff -ru arla-0.36.2.orig/appl/fs/Makefile.in arla-0.36.2/appl/fs/Makefile.in
--- arla-0.36.2.orig/appl/fs/Makefile.in	2003-11-04 18:02:56.000000000 -0500
+++ arla-0.36.2/appl/fs/Makefile.in	2004-07-07 23:59:26.004475480 -0400
@@ -11,6 +11,7 @@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA	= @INSTALL_DATA@
 MKINSTALLDIRS 	= @top_srcdir@/mkinstalldirs
+LIBTOOL = @LIBTOOL@
 
 prefix 		= @prefix@
 exec_prefix 	= @exec_prefix@
@@ -111,7 +112,7 @@
 		$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
 		PROG_BIN='$(APPL_BIN)'; for x in $$PROG_BIN; do \
 			f=`echo $$x | sed '$(transform)'`; \
-			$(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/$$f; \
+			$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/$$f; \
 		done ;\
 		$(MKINSTALLDIRS) $(DESTDIR)$(mandir) ; \
 		MANPAGES='$(MANPAGES)'; for x in $$MANPAGES; do \
Only in arla-0.36.2/appl/fs: Makefile.in~
diff -ru arla-0.36.2.orig/appl/perf/Makefile.in arla-0.36.2/appl/perf/Makefile.in
--- arla-0.36.2.orig/appl/perf/Makefile.in	2003-11-08 13:00:41.000000000 -0500
+++ arla-0.36.2/appl/perf/Makefile.in	2004-07-07 23:52:44.797183739 -0400
@@ -11,6 +11,7 @@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA	= @INSTALL_DATA@
 MKINSTALLDIRS 	= @top_srcdir@/mkinstalldirs
+LIBTOOL = @LIBTOOL@
 
 prefix 		= @prefix@
 exec_prefix 	= @exec_prefix@
@@ -82,7 +83,7 @@
 		$(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
 		PROG_BIN='$(APPL_BIN)'; for x in $$PROG_BIN; do \
 			f=`echo $$x | sed '$(transform)'`; \
-			$(INSTALL_PROGRAM) $$x $(DESTDIR)$(sbindir)/$$f; \
+			$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$x $(DESTDIR)$(sbindir)/$$f; \
 		done
 
 uninstall:
Only in arla-0.36.2/appl/perf: Makefile.in~
diff -ru arla-0.36.2.orig/appl/vos/Makefile.in arla-0.36.2/appl/vos/Makefile.in
--- arla-0.36.2.orig/appl/vos/Makefile.in	2004-06-08 19:54:26.000000000 -0400
+++ arla-0.36.2/appl/vos/Makefile.in	2004-07-08 00:00:05.253830060 -0400
@@ -11,6 +11,7 @@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA	= @INSTALL_DATA@
 MKINSTALLDIRS 	= @top_srcdir@/mkinstalldirs
+LIBTOOL = @LIBTOOL@
 
 prefix 		= @prefix@
 exec_prefix 	= @exec_prefix@
@@ -107,7 +108,7 @@
 		$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
 		PROG_BIN='$(APPL_BIN)'; for x in $$PROG_BIN; do \
 			f=`echo $$x | sed '$(transform)'`; \
-			$(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/$$f; \
+			$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/$$f; \
 		done ;\
 		$(MKINSTALLDIRS) $(DESTDIR)$(mandir) ; \
 		MANPAGES='$(MANPAGES)'; for x in $$MANPAGES; do \
Only in arla-0.36.2/appl/vos: Makefile.in~
diff -ru arla-0.36.2.orig/arlad/Makefile.in arla-0.36.2/arlad/Makefile.in
--- arla-0.36.2.orig/arlad/Makefile.in	2004-04-28 10:45:32.000000000 -0400
+++ arla-0.36.2/arlad/Makefile.in	2004-07-07 23:50:07.859757463 -0400
@@ -10,7 +10,7 @@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA	= @INSTALL_DATA@
 MKINSTALLDIRS 	= @top_srcdir@/mkinstalldirs
-
+LIBTOOL = @LIBTOOL@
 prefix 		= @prefix@
 exec_prefix 	= @exec_prefix@
 libdir 		= @libdir@
@@ -206,12 +206,12 @@
 		$(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
 		PROG_SBIN='$(ARLA_SBIN)'; for x in $$PROG_SBIN; do \
 			f=`echo $$x | sed '$(transform)'`; \
-			$(INSTALL_PROGRAM) $$x $(DESTDIR)$(sbindir)/$$f; \
+			$(LIBTOOL) --mode=install $$x $(DESTDIR)$(sbindir)/$$f; \
 		done ; \
 		$(MKINSTALLDIRS) $(DESTDIR)$(libexecdir) ; \
 		PROG_LIBEXEC='$(ARLA_LIBEXEC)'; for x in $$PROG_LIBEXEC; do \
 			f=`echo $$x | sed '$(transform)'`; \
-			$(INSTALL_PROGRAM) $$x $(DESTDIR)$(libexecdir)/$$f; \
+			$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$x $(DESTDIR)$(libexecdir)/$$f; \
 		done ; \
 		$(MKINSTALLDIRS) $(DESTDIR)$(mandir) ; \
 		MANPAGES='$(MANPAGES)'; for x in $$MANPAGES; do \
Only in arla-0.36.2/arlad: Makefile.in~
diff -ru arla-0.36.2.orig/rx/Makefile.in arla-0.36.2/rx/Makefile.in
--- arla-0.36.2.orig/rx/Makefile.in	2003-10-03 13:27:07.000000000 -0400
+++ arla-0.36.2/rx/Makefile.in	2004-07-07 23:57:26.247700737 -0400
@@ -16,6 +16,7 @@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA	= @INSTALL_DATA@
 MKINSTALLDIRS   = @top_srcdir@/mkinstalldirs
+LIBTOOL = @LIBTOOL@
 
 prefix 		= @prefix@
 exec_prefix	= @exec_prefix@
@@ -95,8 +96,8 @@
 	$(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
 	$(MKINSTALLDIRS) $(DESTDIR)$(includedir)/rx
 	$(MKINSTALLDIRS) $(DESTDIR)$(sbindir) $(DESTDIR)$(bindir)
-	$(INSTALL_PROGRAM) rxdebug $(DESTDIR)$(bindir)/rxdebug
-	$(INSTALL_PROGRAM) rxperf  $(DESTDIR)$(sbindir)/rxperf
+	$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxdebug $(DESTDIR)$(bindir)/rxdebug
+	$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) rxperf  $(DESTDIR)$(sbindir)/rxperf
 	$(INSTALL_DATA) $(LIB) $(DESTDIR)$(libdir)/$(LIB)
 	for x in $(include_HEADERS); do \
 		$(INSTALL_DATA) $(srcdir)/$$x $(DESTDIR)$(includedir)/rx/$$x; \
Only in arla-0.36.2/rx: Makefile.in~





More information about the Arla-drinkers mailing list