On 24 oct. 2013, at 14:00, Magnus Holmgren, Millnet/Lysator/Debian/Mensa @ Pike 
developers forum wrote:

>> I downloaded latest 7.6 stable source (7.6.132) and used debian stuff 
>> included (directory packaging/debian).
> 
> Ah. That directory is unmaintained. You can try using the packaging
> from Squeeze or the debian directory from
> svn://anonscm.debian.org/pkg-pike/branches/7.6-stable/
> but with the nettle-2.1.patch from
> svn://anonscm.debian.org/pkg-pike/branches/7.8-stable/ instead,
> actually.


Thank you for the pointers.

However, nettle-2.1 patch failed on both 7.6.112 and 7.8.700 sources.

Thus, i stole src/post_modules/Nettle/cipher.c[mod] from 7.8.352, put it in 
7.6.112, applied the nettle-2.1 patch from 7.8-stable/debian and ended up with:

——8<——8<——8<—— 
Making Nettle
make[5]: Entering directory 
`/tmp/buildd/pike7.6-7.6.112-dfsg/build/linux-3.2.0-4-amd64-x86_64/post_modules/Nettle'
Compiling /tmp/buildd/pike7.6-7.6.112-dfsg/src/post_modules/Nettle/nettle.c
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod: In 
function 'f_Yarrow_seed':
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:95:21: 
warning: pointer targets in passing argument 3 of 'nettle_yarrow256_seed' 
differ in signedness [-Wpointer-sign]
In file included from 
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:19:0:
/usr/include/nettle/yarrow.h:89:1: note: expected 'const uint8_t *' but 
argument is of type 'char *'
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod: In 
function 'f_Yarrow_get_seed':
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:122:72: 
error: 'struct yarrow256_ctx' has no member named 'seed_file'
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod: In 
function 'f_Yarrow_update':
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:168:43: 
warning: pointer targets in passing argument 5 of 'nettle_yarrow256_update' 
differ in signedness [-Wpointer-sign]
In file included from 
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:19:0:
/usr/include/nettle/yarrow.h:95:1: note: expected 'const uint8_t *' but 
argument is of type 'char *'
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod: In 
function 'f_Yarrow_random_string':
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:193:23: 
warning: pointer targets in passing argument 3 of 'nettle_yarrow256_random' 
differ in signedness [-Wpointer-sign]
In file included from 
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:19:0:
/usr/include/nettle/yarrow.h:100:1: note: expected 'uint8_t *' but argument is 
of type 'char *'
WARNING: Compiler failure! Trying without optimization!
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod: In 
function 'f_Yarrow_seed':
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:95:21: 
warning: pointer targets in passing argument 3 of 'nettle_yarrow256_seed' 
differ in signedness [-Wpointer-sign]
In file included from 
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:19:0:
/usr/include/nettle/yarrow.h:89:1: note: expected 'const uint8_t *' but 
argument is of type 'char *'
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod: In 
function 'f_Yarrow_get_seed':
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:122:72: 
error: 'struct yarrow256_ctx' has no member named 'seed_file'
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod: In 
function 'f_Yarrow_update':
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:168:43: 
warning: pointer targets in passing argument 5 of 'nettle_yarrow256_update' 
differ in signedness [-Wpointer-sign]
In file included from 
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:19:0:
/usr/include/nettle/yarrow.h:95:1: note: expected 'const uint8_t *' but 
argument is of type 'char *'
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod: In 
function 'f_Yarrow_random_string':
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:193:23: 
warning: pointer targets in passing argument 3 of 'nettle_yarrow256_random' 
differ in signedness [-Wpointer-sign]
In file included from 
/home/peter/hack/Pike/7.6-distmaker/src/post_modules/Nettle/nettle.cmod:19:0:
/usr/include/nettle/yarrow.h:100:1: note: expected 'uint8_t *' but argument is 
of type 'char *'
Compilation command was:
/tmp/buildd/pike7.6-7.6.112-dfsg/build/linux-3.2.0-4-amd64-x86_64/smartlink gcc 
-I. -I/tmp/buildd/pike7.6-7.6.112-dfsg/src/post_modules/Nettle 
-I/tmp/buildd/pike7.6-7.6.112-dfsg/build/linux-3.2.0-4-amd64-x86_64 
-I/tmp/buildd/pike7.6-7.6.112-dfsg/src   -DDEBIAN -I/usr/local/include 
-DHAVE_CONFIG_H -g -Wa,--execstack  -DDEBIAN -I/usr/local/include  -W -Wall 
-Wno-unused -Wcomment -Wformat -Wimplicit-function-declaration -Wmultichar 
-Wswitch -Wuninitialized -Wpointer-arith -Wchar-subscripts -Wno-long-long  -c 
/tmp/buildd/pike7.6-7.6.112-dfsg/src/post_modules/Nettle/nettle.c -o nettle.o
make[5]: *** [nettle.o] Error 1
make[5]: Leaving directory 
`/tmp/buildd/pike7.6-7.6.112-dfsg/build/linux-3.2.0-4-amd64-x86_64/post_modules/Nettle'
make[4]: *** [Nettle] Error 1
make[4]: Leaving directory 
`/tmp/buildd/pike7.6-7.6.112-dfsg/build/linux-3.2.0-4-amd64-x86_64/post_modules'
make[3]: *** [post_module_objects] Error 1
make[3]: Leaving directory 
`/tmp/buildd/pike7.6-7.6.112-dfsg/build/linux-3.2.0-4-amd64-x86_64'
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/tmp/buildd/pike7.6-7.6.112-dfsg/build/linux-3.2.0-4-amd64-x86_64'
make[1]: *** [compile] Error 2
make[1]: Leaving directory `/tmp/buildd/pike7.6-7.6.112-dfsg'
make: *** [build-arch-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
——>8——>8——>8—— 


Seems like the patch is for nettle 2.1 while wheezy ships with nettle 2.4:

——8<——8<——8<—— 
bertrand@wheezy:~$ dpkg -l|grep nettle
ii  libnettle4:amd64                   2.4-3                         amd64      
  low level cryptographic library (symmetric and one-way cryptos)
ii  nettle-dev                         2.4-3                         amd64      
  low level cryptographic library (development files)
——>8——>8——>8—— 


Currently trying with src/post_modules/Nettle/cipher.c[mod] from 7.8.700 
without patches, but i'm not really sure about what i'm doing.

Thank you,


-- 
Bertrand LUPART
29, rue du Colisée - 75008 Paris
+33 1 72 71 71 84

  • Pike... Bertrand LUPART
    • ... Martin Bähr
      • ... Bertrand LUPART
        • ... Martin Bähr
        • ... Magnus Holmgren, Millnet/Lysator/Debian/Mensa @ Pike developers forum
          • ... Bertrand LUPART
            • ... Magnus Holmgren, Millnet/Lysator/Debian/Mensa @ Pike developers forum
              • ... Bertrand LUPART
                • ... Henrik Grubbstr�m (Lysator) @ Pike (-) developers forum
                • ... H. William Welliver III
                • ... Martin Bähr

Reply via email to