Skip to content

Compile error on CentOS 6.3 #1

Description

@bqbtoan

with g++ 4.4.6 and Boost 1.53.0:

/bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME="LibKafkaConnect" -DPACKAGE_TARNAME="libkafkaconnect" -DPACKAGE_VERSION="0.1" -DPACKAGE_STRING="LibKafkaConnect\ 0.1" -DPACKAGE_BUGREPORT="" -DPACKAGE="libkafkaconnect" -DVERSION="0.1" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I/build/boost/ -g -O2 -MT producer.lo -MD -MP -MF .deps/producer.Tpo -c -o producer.lo test -f 'src/producer.cpp' || echo './'src/producer.cpp
libtool: compile: g++ -DPACKAGE_NAME="LibKafkaConnect" -DPACKAGE_TARNAME="libkafkaconnect" -DPACKAGE_VERSION="0.1" "-DPACKAGE_STRING="LibKafkaConnect 0.1"" -DPACKAGE_BUGREPORT="" -DPACKAGE="libkafkaconnect" -DVERSION="0.1" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I/build/boost/ -g -O2 -MT producer.lo -MD -MP -MF .deps/producer.Tpo -c src/producer.cpp -fPIC -DPIC -o .libs/producer.o
src/producer.cpp:8:34: error: boost/lexical_cast.hpp: No such file or directory
In file included from src/producer.cpp:10:
src/producer.hpp:14:27: error: boost/array.hpp: No such file or directory
src/producer.hpp:15:26: error: boost/asio.hpp: No such file or directory
src/producer.hpp:16:26: error: boost/bind.hpp: No such file or directory
src/producer.hpp:17:30: error: boost/function.hpp: No such file or directory
In file included from src/producer.hpp:20,
from src/producer.cpp:10:
src/encoder.hpp:11:29: error: boost/foreach.hpp: No such file or directory
In file included from src/encoder.hpp:12,
from src/producer.hpp:20,
from src/producer.cpp:10:
src/encoder_helper.hpp:15:25: error: boost/crc.hpp: No such file or directory
In file included from src/encoder.hpp:12,
from src/producer.hpp:20,
from src/producer.cpp:10:
src/encoder_helper.hpp: In static member function ‘static std::ostream& kafkaconnect::encoder_helper::message(std::ostream&, std::string)’:
src/encoder_helper.hpp:43: error: ‘boost’ has not been declared
src/encoder_helper.hpp:43: error: expected ‘;’ before ‘result’
src/encoder_helper.hpp:44: error: ‘result’ was not declared in this scope
In file included from src/producer.hpp:20,
from src/producer.cpp:10:
src/encoder.hpp: In function ‘void kafkaconnect::encode(std::ostream&, const std::string&, uint32_t, const T&)’:
src/encoder.hpp:21: error: expected primary-expression before ‘const’
src/encoder.hpp:22: error: expected ‘;’ before ‘{’ token
src/encoder.hpp:41: error: expected primary-expression before ‘const’
src/encoder.hpp:42: error: expected ‘;’ before ‘{’ token
In file included from src/producer.cpp:10:
src/producer.hpp: At global scope:
src/producer.hpp:29: error: ‘boost’ has not been declared
src/producer.hpp:29: error: ISO C++ forbids declaration of ‘function’ with no type
src/producer.hpp:29: error: typedef name may not be a nested-name-specifier
src/producer.hpp:29: error: expected ‘;’ before ‘<’ token
src/producer.hpp:31: error: ‘boost’ has not been declared
src/producer.hpp:31: error: expected ‘)’ before ‘&’ token
In file included from src/producer.cpp:10:
src/producer.hpp:72: error: ‘boost’ has not been declared
src/producer.hpp:72: error: ISO C++ forbids declaration of ‘resolver’ with no type
src/producer.hpp:72: error: expected ‘;’ before ‘_resolver’
src/producer.hpp:73: error: ‘boost’ has not been declared
src/producer.hpp:73: error: ISO C++ forbids declaration of ‘socket’ with no type
src/producer.hpp:73: error: expected ‘;’ before ‘_socket’
src/producer.hpp:74: error: ‘error_handler_function’ does not name a type
src/producer.hpp:76: error: ISO C++ forbids declaration of ‘boost’ with no type
src/producer.hpp:76: error: expected ‘,’ or ‘...’ before ‘::’ token
src/producer.hpp:77: error: ISO C++ forbids declaration of ‘boost’ with no type
src/producer.hpp:77: error: expected ‘,’ or ‘...’ before ‘::’ token
src/producer.hpp:78: error: ISO C++ forbids declaration of ‘boost’ with no type
src/producer.hpp:78: error: expected ‘,’ or ‘...’ before ‘::’ token
src/producer.hpp:90: error: ISO C++ forbids declaration of ‘boost’ with no type
src/producer.hpp:90: error: expected ‘,’ or ‘...’ before ‘::’ token
src/producer.hpp: In member function ‘bool kafkaconnect::producer::send(const std::string&, const std::string&, uint32_t)’:
src/producer.hpp:42: error: ‘boost’ has not been declared
src/producer.hpp:42: error: expected primary-expression before ‘,’ token
src/producer.hpp:42: error: ‘messages’ was not declared in this scope
src/producer.hpp:42: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
src/producer.hpp: In member function ‘bool kafkaconnect::producer::send(const List&, const std::string&, uint32_t)’:
src/producer.hpp:56: error: ‘boost’ has not been declared
src/producer.hpp:56: error: ‘buffer’ was not declared in this scope
src/producer.hpp:56: error: expected type-specifier before ‘boost’
src/producer.hpp:56: error: expected ‘;’ before ‘boost’
src/producer.hpp:61: error: ‘boost’ has not been declared
src/producer.hpp:62: error: ‘_socket’ was not declared in this scope
src/producer.hpp:63: error: ‘boost’ has not been declared
src/producer.hpp:63: error: ‘boost’ has not been declared
src/producer.hpp: In member function ‘void kafkaconnect::producer::fail_fast_error_handler(int)’:
src/producer.hpp:92: error: ‘_error_handler’ was not declared in this scope
src/producer.hpp:92: error: ‘boost’ is not a class or namespace
src/producer.hpp:92: error: ‘error_code’ was not declared in this scope
src/producer.hpp:93: error: ‘error_code’ was not declared in this scope
src/producer.cpp: At global scope:
src/producer.cpp:14: error: ‘boost’ has not been declared
src/producer.cpp:14: error: expected ‘)’ before ‘&’ token
src/producer.cpp: In member function ‘void kafkaconnect::producer::connect(const std::string&, uint16_t)’:
src/producer.cpp:29: error: ‘boost’ has not been declared
src/producer.cpp:29: error: expected primary-expression before ‘>’ token
src/producer.cpp: In member function ‘void kafkaconnect::producer::connect(const std::string&, const std::string&)’:
src/producer.cpp:34: error: ‘boost’ has not been declared
src/producer.cpp:34: error: expected ‘;’ before ‘query’
src/producer.cpp:35: error: ‘_resolver’ was not declared in this scope
src/producer.cpp:36: error: ‘query’ was not declared in this scope
src/producer.cpp:37: error: ‘boost’ has not been declared
src/producer.cpp:39: error: ‘boost’ has not been declared
src/producer.cpp:39: error: ‘boost’ has not been declared
src/producer.cpp: In member function ‘void kafkaconnect::producer::close()’:
src/producer.cpp:47: error: ‘_socket’ was not declared in this scope
src/producer.cpp: At global scope:
src/producer.cpp:56: error: ISO C++ forbids declaration of ‘boost’ with no type
src/producer.cpp:56: error: expected ‘,’ or ‘...’ before ‘::’ token
src/producer.cpp: In member function ‘void kafkaconnect::producer::handle_resolve(int)’:
src/producer.cpp:58: error: ‘error_code’ was not declared in this scope
src/producer.cpp:60: error: ‘boost’ is not a class or namespace
src/producer.cpp:60: error: expected ‘;’ before ‘endpoint’
src/producer.cpp:61: error: ‘_socket’ was not declared in this scope
src/producer.cpp:62: error: ‘endpoint’ was not declared in this scope
src/producer.cpp:63: error: ‘boost’ is not a class or namespace
src/producer.cpp:65: error: ‘boost’ is not a class or namespace
src/producer.cpp:65: error: ‘endpoints’ was not declared in this scope
src/producer.cpp: At global scope:
src/producer.cpp:72: error: ISO C++ forbids declaration of ‘boost’ with no type
src/producer.cpp:72: error: expected ‘,’ or ‘...’ before ‘::’ token
src/producer.cpp: In member function ‘void kafkaconnect::producer::handle_connect(int)’:
src/producer.cpp:74: error: ‘error_code’ was not declared in this scope
src/producer.cpp:79: error: ‘endpoints’ was not declared in this scope
src/producer.cpp:79: error: ‘boost’ is not a class or namespace
src/producer.cpp:84: error: ‘_socket’ was not declared in this scope
src/producer.cpp:85: error: ‘boost’ is not a class or namespace
src/producer.cpp: At global scope:
src/producer.cpp:90: error: ISO C++ forbids declaration of ‘boost’ with no type
src/producer.cpp:90: error: expected ‘,’ or ‘...’ before ‘::’ token
src/producer.cpp: In member function ‘void kafkaconnect::producer::handle_write_request(int)’:
src/producer.cpp:92: error: ‘error_code’ was not declared in this scope
src/producer.cpp:97: error: ‘buffer’ was not declared in this scope
make: *** [producer.lo] Error 1

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions