Jdesk / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

libsocket need for detection of a static version of libevent #214

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Configure can't find libevent if libsocket not linked.

Sample patch:
--- configure.orig      Thu Aug  4 18:33:59 2011
+++ configure   Thu Aug  4 18:34:47 2011
@@ -5062,7 +5062,7 @@
   le_found=no
   for ledir in $trylibeventdir "" $prefix /usr/local ; do
     LDFLAGS="$saved_LDFLAGS"
-    LIBS="$saved_LIBS -levent"
+    LIBS="$saved_LIBS -levent -lsocket"

     # Skip the directory if it isn't there.
     if test ! -z "$ledir" -a ! -d "$ledir" ; then

This is for Solaris 10 with SUN C compiler.

Original issue reported on code.google.com by d.s.iva...@gmail.com on 4 Aug 2011 at 8:08

GoogleCodeExporter commented 9 years ago
I suspect you're using a static archive of libevent?

Original comment by trond.no...@gmail.com on 4 Aug 2011 at 12:05

GoogleCodeExporter commented 9 years ago
Yes.

Original comment by d.s.iva...@gmail.com on 5 Aug 2011 at 4:23

GoogleCodeExporter commented 9 years ago
If you link with a static version of libevent it will mark the network 
functions as unresolved. To fix this we should search for the network libraries 
_before_ trying to search for libevent.

People using static archives of libevent should however get out of the dark 
ages and start using shared objects ;-)

Original comment by trond.no...@gmail.com on 8 Aug 2011 at 2:38