[PVFS-developers] libpvfs
Don Porter
porterde@mercury.hendrix.ed
Thu, 04 Dec 2003 21:11:13 -0600
--=-3HPkIoGTIjtgZ16tm8aH
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Yeah, make that today...
It compiled as a shared object quite easily and everything seems to work
just fine. If you all wouldn't mind applying this little patch (or some
variation) so that future distributions built a shared object, that
would be pretty helpful.
I know that if the interface to the object changes, we will still have
to recompile, but in changes such as from 1.6.1. to 1.6.2, it would sure
be nice to just drop in the new library.
Thanks,
Don Porter
On Wed, 2003-12-03 at 21:16, Don Porter wrote:
> Ok, well I will probably try this on Friday and see if there are any
> flagrant problems :). I just didn't know if there was some reason this
> hadn't been done other than that no one needed it.
>
> Thanks,
> Don
>
> On Wed, 2003-12-03 at 20:09, Rob Ross wrote:
> > On Wed, 3 Dec 2003, Porter Don wrote:
> >
> > > Is there a pressing reason that the pvfs API is only built as a static
> > > object? Recompiling all applications that use the API for each bugfix
> > > release is becoming a bit tedious.
> > >
> > > It seems that if we could make a libpvfs.so, perhaps in addition to
> > > libpvfs.a, this would alleviate some difficulty. I just thought I would ask
> > > since I am unfamiliar with some of the earlier history :).
> >
> > We're not opposed to it....
> >
> > Rob
--=-3HPkIoGTIjtgZ16tm8aH
Content-Disposition: attachment; filename=so-1.6.2.patch
Content-Type: text/x-patch; name=so-1.6.2.patch; charset=
Content-Transfer-Encoding: 7bit
diff -uNr pvfs-1.6.2/Makefile.in pvfs-1.6.2.so/Makefile.in
--- pvfs-1.6.2/Makefile.in Tue Apr 29 08:54:21 2003
+++ pvfs-1.6.2.so/Makefile.in Thu Dec 4 13:45:53 2003
@@ -69,6 +69,7 @@
install -m 755 iod/iod $(install_root)/$(DAEMONDIR)
install -m 755 lib/libminipvfs.a $(install_root)/$(LIBDIR)
install -m 755 lib/libminipvfs.a $(install_root)/$(LIBDIR)/libpvfs.a
+ install -m 755 lib/libpvfs.so $(install_root)/$(LIBDIR)/libpvfs.so
install -m 755 mgr/mgr $(install_root)/$(DAEMONDIR)
install -m 644 $(srcdir)/include/*.h $(install_root)/$(INCDIR)
set -e; for i in $(UTILS); do install -m 755 utils/$$i \
diff -uNr pvfs-1.6.2/lib/Makefile.in pvfs-1.6.2.so/lib/Makefile.in
--- pvfs-1.6.2/lib/Makefile.in Wed Nov 12 08:09:19 2003
+++ pvfs-1.6.2.so/lib/Makefile.in Thu Dec 4 13:19:12 2003
@@ -76,7 +76,13 @@
../include/req.h ../include/desc.h ../include/debug.h \
../shared/sockset.h ../shared/llist.h
-all: libminipvfs.a
+all: libminipvfs.a libpvfs.so
+
+libpvfs.so: $(STOBJS) subdir-static
+ $(CC) $(CFLAGS) -o libpvfs.so -shared $(STOBJS) obj_static/sockset.o \
+ obj_static/sockio.o obj_static/llist.o obj_static/check_pvfs.o \
+ obj_static/unix-stats.o obj_static/resv_name.o \
+ obj_static/dfd_set.o
libminipvfs.a : $(STOBJS) subdir-static
@echo ar rs libminipvfs.a $(STOBJS) obj_static/sockset.o obj_static/sockio.o obj_static/llist.o obj_static/check_pvfs.o obj_static/unix-stats.o obj_static/resv_name.o obj_static/dfd_set.o
Binary files pvfs-1.6.2/lib/libpvfs.so and pvfs-1.6.2.so/lib/libpvfs.so differ
--=-3HPkIoGTIjtgZ16tm8aH--