On Wed, Feb 03, 2016 at 02:43:49PM -0500, Jean-Louis Martineau wrote:
> Hi,
> 
> Which gcc version? 4.3 and above should have theses instructions.
> 
> $ gcc --version

gcc --version
gcc (Debian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and

gcc --version
gcc (Debian 5.3.1-7) 5.3.1 20160121
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



> 
> Jean-Louis
>


Kind regards
Jose M Calhariz


> On 03/02/16 02:20 PM, Jose M Calhariz wrote:
> >Hi,
> >
> >I am trying to compile amanda 3.3.8 on Debian but I get some errors
> >during linking phase.  Both on Debian sid or jessie.
> >
> >The error is:
> >
> >/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wparentheses 
> >-Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes 
> >-Wmissing-declarations -Wformat -Wformat-security -Wsign-compare 
> >-Wfloat-equal -Wold-style-definition -Wno-strict-aliasing 
> >-Wno-unknown-pragmas -Wno-deprecated-declarations -g -O2 -fPIE 
> >-fstack-protector-strong -Wformat -Werror=format-security -O2 -g -Wall   
> >-DAMANDATES_FILE='"/var/lib/amanda/amandates"'  -DIGNORE_TAR_ERRORS    -fPIE 
> >-pie -Wl,-z,relro -Wl,-z,now  -o amflock-test amflock-test.o libamanda.la 
> >libtestutils.la -lcrypto -L/usr/lib/i386-linux-gnu -lcurl -lm 
> >-Wl,--export-dynamic -lgmodule-2.0 -pthread -lgobject-2.0 -lgthread-2.0 
> >-pthread -lglib-2.0  -lnsl -lresolv
> >libtool: link: gcc -Wall -Wextra -Wparentheses -Wdeclaration-after-statement 
> >-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wformat 
> >-Wformat-security -Wsign-compare -Wfloat-equal -Wold-style-definition 
> >-Wno-strict-aliasing -Wno-unknown-pragmas -Wno-deprecated-declarations -g 
> >-O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -O2 -g 
> >-Wall -DAMANDATES_FILE=\"/var/lib/amanda/amandates\" -DIGNORE_TAR_ERRORS 
> >-fPIE -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/amflock-test 
> >amflock-test.o -Wl,--export-dynamic -pthread -pthread  ./.libs/libamanda.so 
> >./.libs/libtestutils.a -L/usr/lib/i386-linux-gnu -lcrypto 
> >/usr/lib/i386-linux-gnu/libcurl.so -lm -lgmodule-2.0 -lgobject-2.0 
> >-lgthread-2.0 -lglib-2.0 -lnsl -lresolv -pthread -Wl,-rpath 
> >-Wl,/usr/lib/amanda
> >./.libs/libamanda.so: undefined reference to `__builtin_ia32_crc32si'
> >./.libs/libamanda.so: undefined reference to `__builtin_ia32_crc32qi'
> >./.libs/libamanda.so: undefined reference to `__builtin_ia32_crc32hi'
> >collect2: error: ld returned 1 exit status
> >
> >Before I see these warnings:
> >
> >/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. 
> >-I../config -I../gnulib  -D_FORTIFY_SOURCE=2 -fno-strict-aliasing 
> >-D_GNU_SOURCE -pthread -I/usr/include/glib-2.0 
> >-I/usr/lib/i386-linux-gnu/glib-2.0/include   -Wall -Wextra -Wparentheses 
> >-Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes 
> >-Wmissing-declarations -Wformat -Wformat-security -Wsign-compare 
> >-Wfloat-equal -Wold-style-definition -Wno-strict-aliasing 
> >-Wno-unknown-pragmas -Wno-deprecated-declarations -g -O2 -fPIE 
> >-fstack-protector-strong -Wformat -Werror=format-security -O2 -g -Wall      
> >-DAMANDATES_FILE='"/var/lib/amanda/amandates"'  -DIGNORE_TAR_ERRORS  -MT 
> >amcrc32chw.lo -MD -MP -MF .deps/amcrc32chw.Tpo -c -o amcrc32chw.lo 
> >amcrc32chw.c
> >libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../config -I../gnulib 
> >-D_FORTIFY_SOURCE=2 -fno-strict-aliasing -D_GNU_SOURCE -pthread 
> >-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -Wall 
> >-Wextra -Wparentheses -Wdeclaration-after-statement -Wmissing-prototypes 
> >-Wstrict-prototypes -Wmissing-declarations -Wformat -Wformat-security 
> >-Wsign-compare -Wfloat-equal -Wold-style-definition -Wno-strict-aliasing 
> >-Wno-unknown-pragmas -Wno-deprecated-declarations -g -O2 
> >-fstack-protector-strong -Wformat -Werror=format-security -O2 -g -Wall 
> >-DAMANDATES_FILE=\"/var/lib/amanda/amandates\" -DIGNORE_TAR_ERRORS -MT 
> >amcrc32chw.lo -MD -MP -MF .deps/amcrc32chw.Tpo -c amcrc32chw.c  -fPIC -DPIC 
> >-o .libs/amcrc32chw.o
> >amcrc32chw.c: In function ‘crc32c_add_hw’:
> >amcrc32chw.c:183:2: warning: implicit declaration of function 
> >‘__builtin_ia32_crc32qi’ [-Wimplicit-function-declaration]
> >   crc32_0 = __builtin_ia32_crc32qi(crc32_0, *next.b.b8);
> >   ^
> >amcrc32chw.c:261:6: warning: implicit declaration of function 
> >‘__builtin_ia32_crc32si’ [-Wimplicit-function-declaration]
> >       crc32_0 = __builtin_ia32_crc32si(crc32_0, *next.b.b32++);
> >       ^
> >amcrc32chw.c:311:13: warning: implicit declaration of function 
> >‘__builtin_ia32_crc32hi’ [-Wimplicit-function-declaration]
> >              crc->crc = __builtin_ia32_crc32hi(crc->crc, *(uint16_t*) 
> > next.b.b8);
> >              ^
> >
> >
> >Kind regards
> >Jose M Calhariz
> >
> 
> 

-- 
--
        Quem não sabe usar a calma nos instantes difíceis
        precipita-se nas sombras de maiores dificuldades.

Attachment: signature.asc
Description: Digital signature

Reply via email to