Skip to content

./build_libs.sh error #62

Description

@xowns4817

Hello. After installing goquic and running the ./build_lib.sh script, I get the following error. The development environment is ubuntu18.04 LTS.

[Error Log]
ktj@ktj-Lenovo-ideapad-330-15ICH:/go/src/github.com/devsisters/goquic$ ./build_libs.sh
GOARCH: amd64
GOOS: linux
OPTION:
-- Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR) (Required is at least version "3")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ktj/go/src/github.com/devsisters/goquic/libquic/build/debug
/home/ktj/go/src/github.com/devsisters/goquic
ninja: Entering directory `libquic/build/debug'
[1/20] Building C object boringssl/decrepit/ssl/CMakeFiles/ssl_decrepit.dir/ssl_decrepit.c.o
FAILED: boringssl/decrepit/ssl/CMakeFiles/ssl_decrepit.dir/ssl_decrepit.c.o
/usr/bin/cc -DBORINGSSL_IMPLEMENTATION -DUSE_OPENSSL -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I../../src -I../../src/third_party/modp_b64 -I../../boringssl/include -I../../src/third_party/protobuf/src -I/src -I../../boringssl/decrepit/ssl/../../include -Wall -fpic -Wall -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -ggdb -fvisibility=hidden -Wmissing-prototypes -Wshadow -std=c11 -D_XOPEN_SOURCE=700 -g -MD -MT boringssl/decrepit/ssl/CMakeFiles/ssl_decrepit.dir/ssl_decrepit.c.o -MF boringssl/decrepit/ssl/CMakeFiles/ssl_decrepit.dir/ssl_decrepit.c.o.d -o boringssl/decrepit/ssl/CMakeFiles/ssl_decrepit.dir/ssl_decrepit.c.o -c ../../boringssl/decrepit/ssl/ssl_decrepit.c
../../boringssl/decrepit/ssl/ssl_decrepit.c: In function ‘OPENSSL_DIR_read’:
../../boringssl/decrepit/ssl/ssl_decrepit.c:157:3: error: ‘readdir_r’ is deprecated [-Werror=deprecated-declarations]
if (readdir_r((*ctx)->dir, &(*ctx)->dirent, &dirent) != 0 ||
^

In file included from ../../boringssl/decrepit/ssl/ssl_decrepit.c:115:0:
/usr/include/dirent.h:183:12: note: declared here
extern int readdir_r (DIR __restrict dirp,
^~~~~~~~~
cc1: all warnings being treated as errors
[7/20] Building CXX object protobuf/CMakeFiles/protobuf.dir/
/src/third_party/protobuf/src/google/protobuf/stubs/stringprintf.cc.o
../../src/third_party/protobuf/src/google/protobuf/stubs/stringprintf.cc: In function ‘std::__cxx11::string google::protobuf::StringPrintfVector(const char
, const std::vector<std::cxx11::basic_string >&)’:
../../src/third_party/protobuf/src/google/protobuf/stubs/stringprintf.cc:151:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < v.size(); ++i) {
~~^~~~~~~~~~
../../src/third_party/protobuf/src/google/protobuf/stubs/stringprintf.cc:154:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = v.size(); i < GOOGLE_ARRAYSIZE(cstr); ++i) {
[9/20] Building CXX object protobuf/CMakeFiles/protobuf.dir/
/src/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o
../../src/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc: In member function ‘virtual bool google::protobuf::io::StringOutputStream::Next(void**, int*)’:
../../src/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:164:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (old_size < target_->capacity()) {
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from ../../src/third_party/protobuf/src/google/protobuf/stubs/common.h:45:0,
from ../../src/third_party/protobuf/src/google/protobuf/io/zero_copy_stream.h:111,
from ../../src/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h:53,
from ../../src/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:35:
../../src/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc: In member function ‘virtual void google::protobuf::io::StringOutputStream::BackUp(int)’:
../../src/third_party/protobuf/src/google/protobuf/stubs/logging.h:157:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define GOOGLE_CHECK_LE(A, B) GOOGLE_CHECK((A) <= (B))
~~~~^~~~~~
../../src/third_party/protobuf/src/google/protobuf/stubs/logging.h:149:5: note: in definition of macro ‘GOOGLE_LOG_IF’
!(CONDITION) ? (void)0 : GOOGLE_LOG(LEVEL)
^~~~~~~~~
../../src/third_party/protobuf/src/google/protobuf/stubs/logging.h:157:31: note: in expansion of macro ‘GOOGLE_CHECK’
#define GOOGLE_CHECK_LE(A, B) GOOGLE_CHECK((A) <= (B))
^~~~~~~~~~~~
../../src/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:193:3: note: in expansion of macro ‘GOOGLE_CHECK_LE’
GOOGLE_CHECK_LE(count, target_->size());
^~~~~~~~~~~~~~~
[11/20] Building CXX object protobuf/CMakeFiles/protobuf.dir//src/third_party/protobuf/src/google/protobuf/stubs/int128.cc.o
../../src/third_party/protobuf/src/google/protobuf/stubs/int128.cc: In function ‘std::ostream& google::protobuf::operator<<(std::ostream&, const google::protobuf::uint128&)’:
../../src/third_party/protobuf/src/google/protobuf/stubs/int128.cc:187:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (width > rep.size()) {
~~~~~~^~~~~~~~~~~~
[12/20] Building CXX object protobuf/CMakeFiles/protobuf.dir/
/src/third_party/protobuf/src/google/protobuf/repeated_field.cc.o
In file included from ../../src/third_party/protobuf/src/google/protobuf/stubs/common.h:45:0,
from ../../src/third_party/protobuf/src/google/protobuf/stubs/casts.h:34,
from ../../src/third_party/protobuf/src/google/protobuf/repeated_field.h:56,
from ../../src/third_party/protobuf/src/google/protobuf/repeated_field.cc:37:
../../src/third_party/protobuf/src/google/protobuf/repeated_field.cc: In member function ‘void** google::protobuf::internal::RepeatedPtrFieldBase::InternalExtend(int)’:
../../src/third_party/protobuf/src/google/protobuf/stubs/logging.h:157:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define GOOGLE_CHECK_LE(A, B) GOOGLE_CHECK((A) <= (B))
~~~~^~~~~~
../../src/third_party/protobuf/src/google/protobuf/stubs/logging.h:149:5: note: in definition of macro ‘GOOGLE_LOG_IF’
!(CONDITION) ? (void)0 : GOOGLE_LOG(LEVEL)
^~~~~~~~~
../../src/third_party/protobuf/src/google/protobuf/stubs/logging.h:157:31: note: in expansion of macro ‘GOOGLE_CHECK’
#define GOOGLE_CHECK_LE(A, B) GOOGLE_CHECK((A) <= (B))
^~~~~~~~~~~~
../../src/third_party/protobuf/src/google/protobuf/repeated_field.cc:57:3: note: in expansion of macro ‘GOOGLE_CHECK_LE’
GOOGLE_CHECK_LE(new_size,
^~~~~~~~~~~~~~~
[14/20] Building CXX object protobuf/CMakeFiles/protobuf.dir/__/src/third_party/protobuf/src/google/protobuf/stubs/common.cc.o
../../src/third_party/protobuf/src/google/protobuf/stubs/common.cc: In function ‘void google::protobuf::ShutdownProtobufLibrary()’:
../../src/third_party/protobuf/src/google/protobuf/stubs/common.cc:441:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < internal::shutdown_functions->size(); i++) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions