Package: apf Version: 0.8.4-1 Severity: wishlist Tags: patch Hi,
apf fails to build, if --as-needed is used as linker flag [1,2], since that forces strict ordering of libraries (symbol users in front of symbol definitions). Attached is a patch that fixes the problem. You'll also need to run autoreconf after applying that patch. Cheers, Stefan. [1]: <http://people.ubuntuwire.org/~lucas/ubuntu-nbs/32/apf_0.8.4-1_lubuntu32.buildlog> [2]: <http://people.ubuntuwire.org/~lucas/ubuntu-nbs/64/apf_0.8.4-1_lubuntu64.buildlog> -- System Information: Debian Release: squeeze/sid APT prefers natty-updates APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty') Architecture: amd64 (x86_64) Kernel: Linux 2.6.37-10-generic (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
#! /bin/sh /usr/share/dpatch/dpatch-run ## 03_fix_linking.dpatch by <sistp...@ubuntu.com> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' apf-0.8.4~/configure.ac apf-0.8.4/configure.ac --- apf-0.8.4~/configure.ac 2007-10-03 22:58:54.000000000 +0200 +++ apf-0.8.4/configure.ac 2010-12-18 17:05:04.587092001 +0100 @@ -60,7 +60,7 @@ [ LINKED_LDLIB="-ldl" USE_RDYNAMIC="-rdynamic" - AC_DEFINE(HAVE_LIBDL, 1, [Define to 1 if you have the `dl' library (-ldl).]) + AC_DEFINE(HAVE_LIBDL, 1, [Define to 1 if you have the 'dl' library (-ldl).]) ], [ LINKED_LDLIB="" diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' apf-0.8.4~/src/Makefile.am apf-0.8.4/src/Makefile.am --- apf-0.8.4~/src/Makefile.am 2006-03-18 23:03:07.000000000 +0100 +++ apf-0.8.4/src/Makefile.am 2010-12-18 17:04:53.647092001 +0100 @@ -8,7 +8,8 @@ audit_list_node_struct.c audit_list_struct.c connect_client_struct.c timeval_functions.c \ header_buffer_struct.c server_realm_struct.c server_configuration_struct.c file_server.c \ task_struct.c task_list_node_struct.c task_scheduler_struct.c remove_client_task.c -afclient_LDFLAGS = ${USE_RDYNAMIC} ${LINKED_LDLIB} +afclient_LDFLAGS = $(USE_RDYNAMIC) +afclient_LDADD = $(LINKED_LDLIB) afclient_SOURCES = afclient.c network.c file.c stats.c buf_list_node_struct.c buf_list_struct.c \ module_struct.c client_remoteadmin.c make_ssl_handshake.c first_run.c inet_ntop.c \ http_proxy_functions.c http_proxy_client.c http_proxy_options_struct.c \