]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix link error on ufsdump
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 1 Feb 2009 10:21:03 +0000 (23:21 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 1 Feb 2009 10:21:03 +0000 (23:21 +1300)
It appears that libmiscutil MUST be linked after all used local .la libs
or it's symbols may get dropped.

include/heap.h
lib/heap.c
src/Makefile.am

index 70d2e846d2fd38edb632dfca57eba50de58b26d1..41e65b1f810355226929c5a66c3e01c3b8e939e3 100644 (file)
@@ -53,7 +53,7 @@
  * the current aging factor for the heap.
  */
 typedef unsigned long heap_mutex_t;
-typedef void *heap_t;
+typedef void * heap_t;
 typedef double heap_key;
 typedef heap_key heap_key_func(heap_t, heap_key);
 
@@ -105,7 +105,7 @@ SQUIDCEXTERN void delete_heap(heap *);
  * should be done with this data structure (especially modifying it!)  The
  * heap does not assume ownership of the data passed to it.
  */
-SQUIDCEXTERN heap_node *heap_insert(heap *, heap_t dat);
+SQUIDCEXTERN heap_node *heap_insert(heap *hp, heap_t dat);
 
 /*
  * Delete a node out of a heap.  Returns the heap data from the deleted
index 2f68c9a1c5a82a94ebd0f989fb58ecb393c8ef66..7675ee4f98c777e251124a3c4047ec4f9a8022a2 100644 (file)
@@ -53,7 +53,6 @@
 #include <stdio.h>
 #endif
 
-#include "heap.h"
 #include "util.h"
 
 /*
index 24ff3a6a6698645e5e4f492a84e886d052fb5b8c..45e247e4ec8d5bee27873864a86a6d82dc9d7754 100644 (file)
@@ -919,7 +919,6 @@ ufsdump_LDADD = \
        libauth.la \
        icmp/libicmp.la icmp/libicmp-core.la \
        ip/libip.la \
-       -L../lib -lmiscutil \
        @XTRA_OBJS@ \
        @REPL_OBJS@ \
        @STORE_OBJS@ \
@@ -929,6 +928,7 @@ ufsdump_LDADD = \
        @SNMPLIB@ \
        ${ADAPTATION_LIBS} \
        @SSLLIB@ \
+       -L$(top_builddir)/lib -lmiscutil \
        @XTRA_LIBS@ \
        @EPOLL_LIBS@ \
        @MINGW_LIBS@