Hi, First of all, thank you for the help. :) The new package is on the mentors site.
2016-01-17 14:09 GMT+01:00 Mattia Rizzolo <mat...@debian.org>: > > but most importantly, I couldn't get eclipse-titan build today. > First it failed with > > /usr/bin/ld: LoggerPlugin_dynamic.o: undefined reference to symbol > 'dlclose@@GLIBC_2.2.5' > //lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from > command line > collect2: error: ld returned 1 exit status > Makefile:307: recipe for target 'libttcn3-dynamic.so' failed > > > Then, I added -ldl to LDFLAGS and retried, just to have > > Parallel_main.o: In function `main': > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:203: undefined reference > to `TCov::close_file()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:208: undefined reference > to `TTCN_Runtime::install_signal_handlers()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:209: undefined reference > to `TTCN_Snapshot::initialize()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:210: undefined reference > to `TTCN_Logger::initialize_logger()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:211: undefined reference > to `TTCN_Logger::set_executable_name(char const*)' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:212: undefined reference > to `TTCN_Logger::set_start_time()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:218: undefined reference > to `Module_List::pre_init_modules()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:219: undefined reference > to `TTCN_Runtime::hc_main(char const*, char const*, unsigned short)' > Parallel_main.o: In function `TTCN_Runtime::is_hc()': > /build/eclipse-titan-5.4.1/core/Runtime.hh:92: undefined reference to > `TTCN_Runtime::executor_state' > Parallel_main.o: In function `main': > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:246: undefined reference > to `TTCN_Runtime::restore_signal_handlers()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:247: undefined reference > to `TTCN_Logger::close_file()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:248: undefined reference > to `TCov::close_file()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:251: undefined reference > to `TTCN_Logger::clear_parameters()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:252: undefined reference > to `PORT::clear_parameters()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:253: undefined reference > to `COMPONENT::clear_component_names()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:254: undefined reference > to `TTCN_EncDec::clear_error()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:256: undefined reference > to `TTCN_Logger::terminate_logger()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:257: undefined reference > to `TTCN_Snapshot::terminate()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:223: undefined reference > to `COMPONENT::clear_component_names()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:226: undefined reference > to `TTCN_Logger::close_file()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:227: undefined reference > to `TCov::close_file()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:229: undefined reference > to `TTCN_Logger::set_start_time()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:233: undefined reference > to `TTCN_Runtime::ptc_main()' > Parallel_main.o: In function `process_options': > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:136: undefined reference > to `TTCN_Runtime::install_signal_handlers()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:137: undefined reference > to `TTCN_Logger::initialize_logger()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:138: undefined reference > to `Module_List::pre_init_modules()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:139: undefined reference > to `Module_List::list_testcases()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:143: undefined reference > to `TTCN_Logger::terminate_logger()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:157: undefined reference > to `Module_List::print_version()' > Parallel_main.o: In function `main': > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:231: undefined reference > to `TTCN_Runtime::mtc_main()' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:235: undefined reference > to `TTCN_error(char const*, ...)' > /build/eclipse-titan-5.4.1/core/Parallel_main.cc:242: undefined reference > to `TTCN_Logger::log_str(TTCN_Logger::Severity, char const*)' > Parallel_main.o: In function `__static_initialization_and_destruction_0': > /build/eclipse-titan-5.4.1/core/../common/version.h:94: undefined > reference to `reffer::reffer(char const*)' > Parallel_main.o: In function `JSON_Tokenizer::JSON_Tokenizer(bool)': > /build/eclipse-titan-5.4.1/core/../common/JSON_Tokenizer.hh:115: undefined > reference to `JSON_Tokenizer::init(char const*, unsigned long)' > Parallel_main.o: In function `__static_initialization_and_destruction_0': > /build/eclipse-titan-5.4.1/core/../common/JSON_Tokenizer.hh:164: undefined > reference to `JSON_Tokenizer::~JSON_Tokenizer()' > collect2: error: ld returned 1 exit status > Makefile:292: recipe for target 'parallel-dynamic' failed > make[2]: *** [parallel-dynamic] Error 1 > make[2]: *** Waiting for unfinished jobs.... > Single_main.o: In function `signal_handler(int)': > /build/eclipse-titan-5.4.1/core/Single_main.cc:58: undefined reference to > `TTCN_Logger::close_file()' > Single_main.o: In function `main': > /build/eclipse-titan-5.4.1/core/Single_main.cc:94: undefined reference to > `Module_List::single_control_part()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:176: undefined reference to > `self' > /build/eclipse-titan-5.4.1/core/Single_main.cc:176: undefined reference to > `COMPONENT::operator=(int)' > Single_main.o: In function > `TTCN_Runtime::set_state(TTCN_Runtime::executor_state_enum)': > /build/eclipse-titan-5.4.1/core/Runtime.hh:86: undefined reference to > `TTCN_Runtime::executor_state' > Single_main.o: In function `main': > /build/eclipse-titan-5.4.1/core/Single_main.cc:178: undefined reference to > `TTCN_Runtime::install_signal_handlers()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:179: undefined reference to > `TTCN_Snapshot::initialize()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:180: undefined reference to > `TTCN_Logger::initialize_logger()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:181: undefined reference to > `TTCN_Logger::set_executable_name(char const*)' > /build/eclipse-titan-5.4.1/core/Single_main.cc:182: undefined reference to > `TTCN_Logger::set_start_time()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:186: undefined reference to > `TTCN_Logger::log_executor_runtime(int)' > /build/eclipse-titan-5.4.1/core/Single_main.cc:187: undefined reference to > `Module_List::pre_init_modules()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:192: undefined reference to > `TTCN_Logger::log_configdata(int, char const*)' > /build/eclipse-titan-5.4.1/core/Single_main.cc:195: undefined reference to > `TTCN_Snapshot::check_fd_setsize()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:198: undefined reference to > `process_config_file(char const*)' > /build/eclipse-titan-5.4.1/core/Single_main.cc:199: undefined reference to > `TTCN_Runtime::load_logger_plugins()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:201: undefined reference to > `TTCN_Runtime::set_logger_parameters()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:202: undefined reference to > `TTCN_Logger::open_file()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:203: undefined reference to > `TTCN_Logger::write_logger_settings(bool)' > /build/eclipse-titan-5.4.1/core/Single_main.cc:204: undefined reference to > `execute_list_len' > /build/eclipse-titan-5.4.1/core/Single_main.cc:204: undefined reference to > `execute_list' > /build/eclipse-titan-5.4.1/core/Single_main.cc:278: undefined reference to > `TTCN_Runtime::restore_signal_handlers()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:279: undefined reference to > `TTCN_Runtime::log_verdict_statistics()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:281: undefined reference to > `TTCN_Logger::log_executor_runtime(int)' > /build/eclipse-titan-5.4.1/core/Single_main.cc:282: undefined reference to > `TTCN_Logger::close_file()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:283: undefined reference to > `TCov::close_file()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:287: undefined reference to > `TTCN_Logger::clear_parameters()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:288: undefined reference to > `PORT::clear_parameters()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:289: undefined reference to > `COMPONENT::clear_component_names()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:290: undefined reference to > `TTCN_EncDec::clear_error()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:293: undefined reference to > `Free' > /build/eclipse-titan-5.4.1/core/Single_main.cc:294: undefined reference to > `Free' > /build/eclipse-titan-5.4.1/core/Single_main.cc:296: undefined reference to > `Free' > /build/eclipse-titan-5.4.1/core/Single_main.cc:298: undefined reference to > `TTCN_Logger::terminate_logger()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:299: undefined reference to > `TTCN_Snapshot::terminate()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:124: undefined reference to > `TCov::close_file()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:129: undefined reference to > `TTCN_Logger::initialize_logger()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:130: undefined reference to > `Module_List::pre_init_modules()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:131: undefined reference to > `Module_List::list_testcases()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:135: undefined reference to > `TTCN_Logger::terminate_logger()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:136: undefined reference to > `TCov::close_file()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:149: undefined reference to > `Module_List::print_version()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:150: undefined reference to > `TCov::close_file()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:211: undefined reference to > `execute_list_len' > /build/eclipse-titan-5.4.1/core/Single_main.cc:211: undefined reference to > `execute_list' > /build/eclipse-titan-5.4.1/core/Single_main.cc:212: undefined reference to > `Free' > /build/eclipse-titan-5.4.1/core/Single_main.cc:213: undefined reference to > `Free' > /build/eclipse-titan-5.4.1/core/Single_main.cc:218: undefined reference to > `Realloc' > /build/eclipse-titan-5.4.1/core/Single_main.cc:221: undefined reference to > `memptystr' > /build/eclipse-titan-5.4.1/core/Single_main.cc:234: undefined reference to > `mcopystr' > /build/eclipse-titan-5.4.1/core/Single_main.cc:224: undefined reference to > `mputstr' > /build/eclipse-titan-5.4.1/core/Single_main.cc:225: undefined reference to > `mputc' > /build/eclipse-titan-5.4.1/core/Single_main.cc:233: undefined reference to > `mcopystr' > /build/eclipse-titan-5.4.1/core/Single_main.cc:240: undefined reference to > `TTCN_Logger::log_configdata(int, char const*)' > /build/eclipse-titan-5.4.1/core/Single_main.cc:241: undefined reference to > `Free' > /build/eclipse-titan-5.4.1/core/Single_main.cc:249: undefined reference to > `Malloc' > /build/eclipse-titan-5.4.1/core/Single_main.cc:249: undefined reference to > `execute_list' > /build/eclipse-titan-5.4.1/core/Single_main.cc:250: undefined reference to > `mcopystr' > /build/eclipse-titan-5.4.1/core/Single_main.cc:255: undefined reference to > `Module_List::log_param()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:256: undefined reference to > `Module_List::post_init_modules()' > /build/eclipse-titan-5.4.1/core/Single_main.cc:258: undefined reference to > `execute_list' > /build/eclipse-titan-5.4.1/core/Single_main.cc:263: undefined reference to > `Module_List::execute_all_testcases(char const*)' > /build/eclipse-titan-5.4.1/core/Single_main.cc:266: undefined reference to > `Module_List::execute_testcase(char const*, char const*)' > /build/eclipse-titan-5.4.1/core/Single_main.cc:260: undefined reference to > `Module_List::execute_control(char const*)' > /build/eclipse-titan-5.4.1/core/Single_main.cc:260: undefined reference to > `execute_list' > /build/eclipse-titan-5.4.1/core/Single_main.cc:198: undefined reference to > `execute_list_len' > /build/eclipse-titan-5.4.1/core/Single_main.cc:269: undefined reference to > `TTCN_warning(char const*, ...)' > /build/eclipse-titan-5.4.1/core/Single_main.cc:269: undefined reference to > `execute_list' > /build/eclipse-titan-5.4.1/core/Single_main.cc:275: undefined reference to > `TTCN_Logger::log_str(TTCN_Logger::Severity, char const*)' > /build/eclipse-titan-5.4.1/core/Single_main.cc:273: undefined reference to > `execute_list_len' > /build/eclipse-titan-5.4.1/core/Single_main.cc:276: undefined reference to > `execute_list' > Single_main.o: In function `__static_initialization_and_destruction_0': > /build/eclipse-titan-5.4.1/core/../common/version.h:94: undefined > reference to `reffer::reffer(char const*)' > Single_main.o: In function `JSON_Tokenizer::JSON_Tokenizer(bool)': > /build/eclipse-titan-5.4.1/core/../common/JSON_Tokenizer.hh:115: undefined > reference to `JSON_Tokenizer::init(char const*, unsigned long)' > Single_main.o: In function `__static_initialization_and_destruction_0': > /build/eclipse-titan-5.4.1/core/../common/JSON_Tokenizer.hh:164: undefined > reference to `JSON_Tokenizer::~JSON_Tokenizer()' > collect2: error: ld returned 1 exit status > Makefile:286: recipe for target 'single-dynamic' failed > make[2]: *** [single-dynamic] Error 1 > > > uh? > > I fixed this with exporting the build flags in the debian/rules file: export DEB_BUILD_MAINT_OPTIONS = hardening=+all export CPPFLAGS=$(shell dpkg-buildflags --get CPPFLAGS) export CFLAGS=$(shell dpkg-buildflags --get CFLAGS) export CXXFLAGS=$(shell dpkg-buildflags --get CXXFLAGS) export LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS) export CCFLAGS=$(shell dplg-buildflags --get CFLAGS) Now the code compiles perfectly, but I still can't see any hardening on the binaries. Lintian still throws hardening-no-fortify-functions and hardening-no-relro... What is wrong with that? :( BR, Gergely