Modify

Opened 4 years ago

Last modified 4 years ago

#16245 new defect

gnutls 3.2.12 fails to compile

Reported by: 42@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: gnutls Cc:

Description

386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/include -Os -pipe -march=i486 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -fpic -MT sha-padlock.lo -MD -MP -MF $depbase.Tpo -c -o sha-padlock.lo sha-padlock.c &&\

mv -f $depbase.Tpo $depbase.Plo

libtool: compile: ccache_cc -DHAVE_CONFIG_H -I. -I../../.. -I./../../../gl -I./../../../gl -I./../../includes -I./../../includes -I./../../ -I./../ -I./../../minitasn1 -I/home/o/x/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/usr/include -I/home/o/x/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/include -I/home/o/x/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/o/x/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/include -Os -pipe -march=i486 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -fpic -MT sha-padlock.lo -MD -MP -MF .deps/sha-padlock.Tpo -c sha-padlock.c -fPIC -DPIC -o .libs/sha-padlock.o
sha-padlock.c:355:49: error: 'sha1' undeclared here (not in a function)

const struct nettle_hash padlock_sha1 = NN_HASH(sha1, padlock_sha1_update, padlock_sha1_digest, SHA1);


sha-padlock.c:355:97: error: 'SHA1' undeclared here (not in a function)

const struct nettle_hash padlock_sha1 = NN_HASH(sha1, padlock_sha1_update, padlock_sha1_digest, SHA1);


sha-padlock.c:356:51: error: 'sha224' undeclared here (not in a function)

const struct nettle_hash padlock_sha224 = NN_HASH(sha224, padlock_sha256_update, padlock_sha256_digest, SHA224);


sha-padlock.c:356:105: error: 'SHA224' undeclared here (not in a function)

const struct nettle_hash padlock_sha224 = NN_HASH(sha224, padlock_sha256_update, padlock_sha256_digest, SHA224);


sha-padlock.c:357:51: error: 'sha256' undeclared here (not in a function)

const struct nettle_hash padlock_sha256 = NN_HASH(sha256, padlock_sha256_update, padlock_sha256_digest, SHA256);


sha-padlock.c:357:105: error: 'SHA256' undeclared here (not in a function)

const struct nettle_hash padlock_sha256 = NN_HASH(sha256, padlock_sha256_update, padlock_sha256_digest, SHA256);


sha-padlock.c:358:51: error: 'sha384' undeclared here (not in a function)

const struct nettle_hash padlock_sha384 = NN_HASH(sha384, padlock_sha512_update, padlock_sha512_digest, SHA384);


sha-padlock.c:358:105: error: 'SHA384' undeclared here (not in a function)

const struct nettle_hash padlock_sha384 = NN_HASH(sha384, padlock_sha512_update, padlock_sha512_digest, SHA384);


sha-padlock.c:359:51: error: 'sha512' undeclared here (not in a function)

const struct nettle_hash padlock_sha512 = NN_HASH(sha512, padlock_sha512_update, padlock_sha512_digest, SHA512);


sha-padlock.c:359:105: error: 'SHA512' undeclared here (not in a function)

const struct nettle_hash padlock_sha512 = NN_HASH(sha512, padlock_sha512_update, padlock_sha512_digest, SHA512);


make[9]: * [sha-padlock.lo] Error 1
make[9]: Leaving directory `/home/o/x/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/gnutls-3.2.12/lib/accelerated/x86'
make[8]: * [all-recursive] Error 1
make[8]: Leaving directory `/home/o/x/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/gnutls-3.2.12/lib/accelerated'
make[7]:
* [all-recursive] Error 1
make[7]: Leaving directory `/home/o/x/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/gnutls-3.2.12/lib'
make[6]: * [all] Error 2
make[6]: Leaving directory `/home/o/x/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/gnutls-3.2.12/lib'
make[5]:
* [all-recursive] Error 1
make[5]: Leaving directory `/home/o/x/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/gnutls-3.2.12'
make[4]: * [all] Error 2
make[4]: Leaving directory `/home/o/x/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/gnutls-3.2.12'
make[3]:
* /home/o/x/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/gnutls-3.2.12/.built Error 2
make[3]: Leaving directory `/home/o/x/openwrt/feeds/packages/libs/gnutls'
make[2]: * [package/feeds/packages/gnutls/compile] Error 2
make[2]: Leaving directory `/home/o/x/openwrt'
make[1]:
* /home/o/x/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/stamp/.package_compile Error 2
make[1]: Leaving directory `/home/o/x/openwrt'
make: * [world] Error 2

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by anonymous

I was getting the same errors using 3.2.14 on r40831 for an alix board. I was able to fix the problem by commenting out the following lines in:

libs/gnutls/Makefile:

#MAKE_FLAGS:= \
#       AM_CFLAGS="" \

It seems that the AM_CFLAGS defines the -DASM_X86 directives and is now different from the CFLAGS variable.

comment:2 Changed 4 years ago by 42@…

Yes, exactly.

May I propose that you incorporate that patch?

  • libs/gnutls/Makefile

    diff --git a/libs/gnutls/Makefile b/libs/gnutls/Makefile
    index 9544ffb..d7908b3 100644
    a b CONFIGURE_ARGS += --enable-cryptodev 
    151151endif 
    152152 
    153153# XXX: AM_CFLAGS duplicates with CFLAGS 
     154ifneq ($(ARCH),x86_64) 
    154155MAKE_FLAGS:= \ 
    155        AM_CFLAGS="" \ 
     156       AM_CFLAGS="" 
     157endif 
    156158 
    157159TARGET_CFLAGS += $(FPIC) 
    158160TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib 

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.