Source: libnetfilter-acct Version: 1.0.2 Severity: minor Dear Maintainer,
Hello, Using the rebuild infrastructure, your package fails to build with clang instead of gcc. All errors are because of "undefined reference to 'xxx'". Full build log is available here: http://clang.debian.net/logs/2015-03-25/libnetfilter-acct_1.0.2-1.1_unstable_clang.log I found this is because clang doesn't like the visibility definitions in this code. So I patches it by adding a conditional statement to make some change when building this package with clang. Many Thanks, Joseph -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.0.5-1-ARCH (SMP w/8 CPU cores; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Shell: /bin/sh linked to /bin/dash Init: unable to detect
diff -Nru libnetfilter-acct-1.0.2/debian/rules libnetfilter-acct-1.0.2/debian/rules --- libnetfilter-acct-1.0.2/debian/rules 2014-09-10 11:10:01.000000000 +0000 +++ libnetfilter-acct-1.0.2/debian/rules 2015-06-21 05:43:00.000000000 +0000 @@ -1,5 +1,9 @@ #!/usr/bin/make -f # clang doesnt like the visibility definitions in this code +ifeq ($(shell $(CC) --version | grep -c "clang version"),1) +export CFLAGS += -fvisibility=default +endif + %: dh $@ --with autoreconf