gnunet-developers
[Top][All Lists]
Advanced

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

Re: [GNUnet-developers] debian packages of 0.5.4


From: Blake Matheny
Subject: Re: [GNUnet-developers] debian packages of 0.5.4
Date: Tue, 27 May 2003 16:09:01 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (CK-PU)

Glenn,
not every platform uses the .so extension. I would strongly advise against using this method. There are configure time m4 checks to see what the 'proper' way to get this extension is.

-Blake

Glenn McGrath wrote:

I have some debian packages available of 0.5.4 at
http://people.debian.org/~bug1/gnunet/

To get the packages lintian clean (no packaging errors) i dont install
the <library>.so symlink, just <library>.so.0 and <library>.so.0.0

To get this to work i had to change dso.c, im not 100% sure its the
right thing to do, but i think its better to load <library>.so.x so we
can preserve backwards compatability.


--- gnunet-0.5.4.orig/src/util/dso.c
+++ gnunet-0.5.4/src/util/dso.c
@@ -39,10 +39,9 @@
  char * libname;
libname = MALLOC(strlen(dso) +
-                  strlen(prefix) + 1);
+                  strlen(prefix) + 6);
  libname[0] = '\0';
-  strcat(libname, prefix);
-  strcat(libname, dso);
+  sprintf(libname, "%s%s.so.0", prefix, dso);
  return libname;
}
@@ -90,7 +89,7 @@
  /* finally, load the library */
  libname = buildLibName(libprefix,
                        dsoname);
-  libhandle = lt_dlopenext(libname);
+  libhandle = lt_dlopen(libname);
  if (libhandle == NULL)
    errexit("Could not open library %s (%s)!\n",
           libname,


_______________________________________________
GNUnet-developers mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/gnunet-developers






reply via email to

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