The attached get_sse42.diff patch is required.

Jean-Louis

On 06/02/17 08:14 AM, Gunnarsson, Gunnar wrote:
> Hi
>
> I'm building amanda-3.4.2 on SunOS  5.11 11.2 sun4v sparc sun4v using gcc:
> gcc --version
> gcc (GCC) 4.5.2
>
> cal/lib/amanda
> Undefined                       first referenced
>   symbol                             in file
> get_sse42                           ./.libs/libamanda.so
> ld: fatal: symbol referencing errors
> collect2: ld returned 1 exit status
> gmake[1]: *** [amflock-test] Error 1
> gmake[1]: Leaving directory `/var/tmp/amanda-3.4.2/common-src'
> gmake: *** [all] Error 2
>
> Thanks Gunnar Gunnarsson
>
diff --git a/common-src/amutil.c b/common-src/amutil.c
index 864d78f..25d9fca 100644
--- a/common-src/amutil.c
+++ b/common-src/amutil.c
@@ -2096,6 +2096,11 @@ static int get_sse42(void)
 #endif
     return (ecx >> 20) & 1;
 }
+#else
+static int get_sse42(void)
+{
+    return 0;
+}
 #endif
 
 static uint32_t crc_table[16][256];

Reply via email to