awslabs / aws-c-http

C99 implementation of the HTTP/1.1 and HTTP/2 specifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0.7.4 tests fail: ld: error: libaws-c-http.so.1.0.0: undefined reference to aws_utf8_decoder_..

nunotexbsd opened this issue · comments

FreeBSD/Clang

===>  Testing for aws-c-http-0.7.4
-- attempting to use sanitizer list address;undefined
-- LibCrypto Include Dir: /usr/include
-- LibCrypto Shared Lib:  /usr/lib/libcrypto.so
-- LibCrypto Static Lib:  /usr/lib/libcrypto.a
-- S2N found target: AWS::crypto
-- crypto Include Dir: /usr/include
-- Performing Test HAS_WNO_STRINGOP_OVERFLOW
-- Performing Test HAS_WNO_STRINGOP_OVERFLOW - Failed
-- attempting to use sanitizer list address;undefined
INFO elasticurl will be built with shared libs, but you may need to set LD_LIBRARY_PATH=/usr/local/lib to run the application
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/home/nunotex/Work/freebsd/ports/main/devel/aws-c-http/work/.build
(...)
[ 76% 29/30] : && /usr/bin/cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fstack-protector-strong     -Wl,--ex
clude-libs,libcrypto.a bin/elasticurl/CMakeFiles/elasticurl.dir/main.c.o -o bin/elasticurl/elasticurl  -Wl,-rpath,/usr/home/nunotex/Work/freebsd/ports/main/devel/aws-c-http/work/.build:/usr/l
ocal/lib:  libaws-c-http.so.1.0.0  /usr/local/lib/libaws-c-io.so.1.0.0  /usr/local/lib/libs2n.so.1.0.0  /usr/local/lib/libaws-c-cal.so.1.0.0  /usr/lib/libcrypto.so  /usr/local/lib/libaws-c-co
mpression.so.1.0.0  /usr/local/lib/libaws-c-common.so.1.0.0  -lthr  -lexecinfo  -lm  -ldl && :
FAILED: bin/elasticurl/elasticurl
: && /usr/bin/cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -fstack-protector-strong     -Wl,--exclude-libs,li
bcrypto.a bin/elasticurl/CMakeFiles/elasticurl.dir/main.c.o -o bin/elasticurl/elasticurl  -Wl,-rpath,/usr/home/nunotex/Work/freebsd/ports/main/devel/aws-c-http/work/.build:/usr/local/lib:  li
baws-c-http.so.1.0.0  /usr/local/lib/libaws-c-io.so.1.0.0  /usr/local/lib/libs2n.so.1.0.0  /usr/local/lib/libaws-c-cal.so.1.0.0  /usr/lib/libcrypto.so  /usr/local/lib/libaws-c-compression.so.
1.0.0  /usr/local/lib/libaws-c-common.so.1.0.0  -lthr  -lexecinfo  -lm  -ldl && :
ld: error: libaws-c-http.so.1.0.0: undefined reference to aws_utf8_decoder_new [--no-allow-shlib-undefined]
ld: error: libaws-c-http.so.1.0.0: undefined reference to aws_utf8_decoder_destroy [--no-allow-shlib-undefined]
ld: error: libaws-c-http.so.1.0.0: undefined reference to aws_utf8_decoder_update [--no-allow-shlib-undefined]
ld: error: libaws-c-http.so.1.0.0: undefined reference to aws_utf8_decoder_finalize [--no-allow-shlib-undefined]
cc: error: linker command failed with exit code 1 (use -v to see invocation)
(...)

Any clues?

Fixed by updating aws-c-common to latest version. I've missed it.

Thanks