#7 cyassl-2.4.0 fails to build because of undeclared variable

closed
nobody
None
5
2012-10-17
2012-10-11
No

When configured with

./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-dependency-tracking --enable-opensslExtra --enable-fortress --enable-keygen --enable-certgen --disable-debug --disable-ecc --disable-small --disable-ntru --disable-noFilesystem --disable-noInline --disable-debug --disable-smallcache --disable-bigcache --enable-hugecache --disable-aesgcm --disable-aesni --enable-hc128 --disable-md2 --enable-psk --enable-ripemd --disable-sha512 --disable-dtls --enable-ipv6 --enable-webServer --disable-ocsp --disable-crl --disable-crl-monitor --enable-sessioncerts --enable-sniffer --enable-testcert --enable-static --disable-gcc-hardening --without-libz --disable-singleThreaded --enable-fastmath --enable-fasthugemath --enable-bump

cyassl-2.4.0 fails to build with the following error:

make[1]: Entering directory `/var/tmp/portage/net-libs/cyassl-2.4.0/work/cyassl-2.4.0'
/bin/sh ./libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DBUILDING_CYASSL -DHAVE_LIBZ -DBUILDING_CYASSL -DOPENSSL_EXTRA -DNDEBUG -DTEST_IPV6 -DFORTRESS -DOPENSSL_EXTRA -DCYASSL_DES_ECB -DCYASSL_AES_COUNTER -DCYASSL_AES_DIRECT -DCYASSL_DER_LOAD -DCYASSL_SHA512 -DCYASSL_SHA384 -DCYASSL_KEY_GEN -DLARGE_STATIC_BUFFERS -DCYASSL_CERT_GEN -DCYASSL_KEY_GEN -DHUGE_SESSION_CACHE -DOPENSSL_EXTRA -DFP_MAX_BITS=8192 -DCYASSL_DER_LOAD -DCYASSL_ALT_NAMES -DCYASSL_TEST_CERT -DUSE_FAST_MATH -DUSE_FAST_MATH -DHUGE_SESSION_CACHE -DCYASSL_SNIFFER -DOPENSSL_EXTRA -DCYASSL_MD2 -DCYASSL_RIPEMD -DSESSION_CERTS -DCYASSL_KEY_GEN -DCYASSL_CERT_GEN -DHAVE_HC128 -DHAVE_WEBSERVER -DCYASSL_TEST_CERT -Wall -Wno-unused -O3 -fomit-frame-pointer -funroll-loops -DTFM_SMALL_SET -fvisibility=hidden -Wall -Wextra -Wbad-function-cast -Wmissing-prototypes -Wnested-externs -Woverride-init -Wstrict-prototypes -Wno-strict-aliasing -Wfloat-equal -Wundef -Wpointer-arith -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wmissing-declarations -Wswitch-enum -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement -Waddress -Wmissing-noreturn -Wnormalized=id -Wstrict-overflow=1 -Wformat -Wformat-security -Wpointer-sign -Wshadow -Wswitch-default -Warray-bounds -c -o src/src_libcyassl_la-internal.lo `test -f 'src/internal.c' || echo './'`src/internal.c
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DBUILDING_CYASSL -DHAVE_LIBZ -DBUILDING_CYASSL -DOPENSSL_EXTRA -DNDEBUG -DTEST_IPV6 -DFORTRESS -DOPENSSL_EXTRA -DCYASSL_DES_ECB -DCYASSL_AES_COUNTER -DCYASSL_AES_DIRECT -DCYASSL_DER_LOAD -DCYASSL_SHA512 -DCYASSL_SHA384 -DCYASSL_KEY_GEN -DLARGE_STATIC_BUFFERS -DCYASSL_CERT_GEN -DCYASSL_KEY_GEN -DHUGE_SESSION_CACHE -DOPENSSL_EXTRA -DFP_MAX_BITS=8192 -DCYASSL_DER_LOAD -DCYASSL_ALT_NAMES -DCYASSL_TEST_CERT -DUSE_FAST_MATH -DUSE_FAST_MATH -DHUGE_SESSION_CACHE -DCYASSL_SNIFFER -DOPENSSL_EXTRA -DCYASSL_MD2 -DCYASSL_RIPEMD -DSESSION_CERTS -DCYASSL_KEY_GEN -DCYASSL_CERT_GEN -DHAVE_HC128 -DHAVE_WEBSERVER -DCYASSL_TEST_CERT -Wall -Wno-unused -O3 -fomit-frame-pointer -funroll-loops -DTFM_SMALL_SET -fvisibility=hidden -Wall -Wextra -Wbad-function-cast -Wmissing-prototypes -Wnested-externs -Woverride-init -Wstrict-prototypes -Wno-strict-aliasing -Wfloat-equal -Wundef -Wpointer-arith -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2 -Wmissing-declarations -Wswitch-enum -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement -Waddress -Wmissing-noreturn -Wnormalized=id -Wstrict-overflow=1 -Wformat -Wformat-security -Wpointer-sign -Wshadow -Wswitch-default -Warray-bounds -c src/internal.c -fPIC -DPIC -o src/.libs/src_libcyassl_la-internal.o
src/internal.c: In function 'myAlloc':
src/internal.c:224:16: error: 'DYNAMIC_TYPE_LIBZ' undeclared (first use in this function)
src/internal.c:224:16: note: each undeclared identifier is reported only once for each function it appears in
src/internal.c:224:16: warning: left-hand operand of comma expression has no effect
make[1]: *** [src/src_libcyassl_la-internal.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-libs/cyassl-2.4.0/work/cyassl-2.4.0'
make: *** [all] Error 2

A quick grep of the tree show that indeed it is used in src/internal.c twice, but never #define or declared.

This was hit as part of testing before adding cyassl-2.4.0 to Gentoo's repo, so there is no downstream bug.

Discussion

  • Todd Ouska

    Todd Ouska - 2012-10-17

    Thanks for the report, this has been fixed in the current HEAD at our github repository.

     
  • Todd Ouska

    Todd Ouska - 2012-10-17
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks