compile errors with camellia

Matthias Wachs wachs at net.in.tum.de
Wed Nov 6 16:29:17 CET 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

thanks a lot! The patch fixed the issue.

There are two more issues we have on our build systems:

On our sparc machine:

3.2.0-4-sparc64-smp #1 SMP Debian 3.2.46-1 sparc64
ac_cv_build=sparc64-unknown-linux-gnu

We get:

libtool: link: gcc -I/usr/local/include -g -O2 -fvisibility=hidden
- -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wformat
- -Wno-format-y2k -Wformat-security -W -Wextra -Wbad-function-cast
- -Wwrite-strings -Wdeclaration-after-statement
- -Wno-missing-field-initializers -Wno-sign-compare -Wpointer-arith -o
.libs/mpicalc mpicalc-mpicalc.o  ./.libs/libgcrypt.so -L/usr/local/lib
/usr/local/lib/libgpg-error.so
./.libs/libgcrypt.so: undefined reference to `__udiv_qrnnd'
collect2: error: ld returned 1 exit status


On our freebsd 9.1 machine:

FreeBSD freebsd91 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec
 4 09:23:10 UTC 2012
ac_cv_build=x86_64-unknown-freebsd9.1

libtool: link: gcc -I/usr/local/include -g -O2 -fvisibility=hidden
- -Wall -o .libs/mpicalc mpicalc-mpicalc.o  ./.libs/libgcrypt.so
- -L/usr/local/lib /usr/local/lib/libgpg-error.so
/usr/local/lib/libintl.so /usr/local/lib/libiconv.so -Wl,-rpath
- -Wl,/usr/local/lib
./.libs/libgcrypt.so: undefined reference to `__builtin_bswap32'
./.libs/libgcrypt.so: undefined reference to `__builtin_bswap64'
*** [mpicalc] Error code 1


The sparcbot may be an old known issue, but the issue on freebsd is
recent...

TIA!
- -Matthias


On 11/06/2013 03:57 PM, Jussi Kivilinna wrote:
> On 06.11.2013 15:38, Matthias Wachs wrote:
>> Hi
>> 
>> this compile issue occurs on two different systems:
> 
> Hello,
> 
> Recent addition of #include "bufhelp.h" seems to mess up things on
> some system.
> 
> Does the attached patch help?
> 
> I've pushed patch to libgcrypt repository too.
> 
> -Jussi
> 
>> 
>> efikamx 2.6.31-008-efikamx #1 Sun Jun 27 18:38:00 CDT 2010
>> armv7l GNU/Linux ac_cv_build=armv7l-unknown-linux-gnueabi
>> 
>> Darwin luke.net.in.tum.de 11.3.0 Darwin Kernel Version 11.3.0:
>> Thu Jan 12 18:47:41 PST 2012;
>> root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
>> 
>> configure.log: ac_cv_build=x86_64-apple-darwin11.3.0
>> 
>> 
>> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../src
>> -I../src -I/opt/local/include -I/opt/local/include -g -O2 -Wall
>> -Wcast-align -Wshadow -Wstrict-prototypes -Wformat
>> -Wno-format-y2k -Wformat-security -W -Wextra -Wbad-function-cast
>> -Wwrite-strings -Wdeclaration-after-statement
>> -Wno-missing-field-initializers -Wno-sign-compare -Wpointer-arith
>> -MT camellia.lo -MD -MP -MF .deps/camellia.Tpo -c camellia.c
>> -fno-common -DPIC -o .libs/camellia.o camellia.c:32: error:
>> redefinition of typedef 'u32' ../src/types.h:81: error: previous
>> declaration of 'u32' was here
>> 
>> Cheers,
>> 
>> Matthias
>> 
>> 
>> 
>> _______________________________________________ Gcrypt-devel
>> mailing list Gcrypt-devel at gnupg.org 
>> http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
>> 
> 

- -- 
Dipl.-Inf. Matthias Wachs
Free Secure Network Systems Group
Technische Universitaet Muenchen
Chair for Network Architectures and Services
Institute for Informatics / I8           Tel:    +49 89 289 18037
Boltzmannstr. 3 / Room 03.05.042         Fax:    +49 89 289 18033
D-85748 Garching b. Muenchen, Germany    Email: wachs at net.in.tum.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSemBMAAoJEEFv6YGnAaM20DoH+wa7XfnZdYkE48ePoMgQs7Mx
SkZZcAd2U/4aBf3K6WGgp99atyv7RBD9il6s1h9NANMZsHp/4HctkFd2YV5w8Uwk
gIwKI51ELQK3Byj8ydhmpEF9Ihd+yuTzty/z+aIT0F35XNtJTZTWjMIJoDrAJUZO
bxkisqXEGRPSIwqC/smZfGsQUxCsFi863OuWwjPt57A8tIjsQPuhyMnJb0JgOeo2
FoU1g/D3GlxMcF2oKdKFqhhEcKlSRUj7GB94xtSO/v9eH4sdEvyUXfWoMBoOeEgx
1/3pbusQGQb3WzSS+pWZQmmMNUSXDPMTZvH2e+kFuYvy1LULNBYyT4z0b4UJN/o=
=I2yX
-----END PGP SIGNATURE-----



More information about the Gcrypt-devel mailing list