compile errors with camellia

Jussi Kivilinna jussi.kivilinna at iki.fi
Wed Nov 6 21:09:47 CET 2013


On 06.11.2013 17:29, Matthias Wachs wrote:
> 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
> 

Can you send the output of "gcc -dM -E - < /dev/null" on this machine?

Also the output of 'configure' for libgcrypt would be interesting to
see.

> 
> 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

Fix for this one is in the repository now.

-Jussi

> 
> 
> 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
>>>
> 
> 
> 
> _______________________________________________
> Gcrypt-devel mailing list
> Gcrypt-devel at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 730 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20131106/d94f9a78/attachment.sig>


More information about the Gcrypt-devel mailing list