Source: libmnl Version: 1.0.3 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/2014-09-03/libmnl_1.0.3-5_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 libmnl-1.0.3/debian/rules libmnl-1.0.3/debian/rules --- libmnl-1.0.3/debian/rules 2014-08-04 03:00:32.000000000 +0000 +++ libmnl-1.0.3/debian/rules 2015-06-14 10:14:07.000000000 +0000 @@ -8,6 +8,9 @@ _configure := --libdir=/lib/$(DEB_HOST_MULTIARCH) --enable-static CFLAGS += -fstack-protector-all # clang doesnt like the visibility definitions in this code +ifeq ($(shell $(CC) --version | grep -c "clang version"),1) +CFLAGS += -fvisibility=default +endif %: dh $@ -- --with autoreconf