gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I../include -I../tap/src -o test_timeperiods test_timeperiods.c ../base/utils.o ../base/config.o ../base/macros-base.o ../base/objects-base.o ../base/skiplist.o ../base/xobjects-base.o ../tap/src/tap.o  -Wl,-export-dynamic   -lm  -lpthread -lltdl 
../base/utils.o: In function `query_update_api':
/home/mgagne/git/nagios/base/utils.c:4055: undefined reference to `strip'
../base/utils.o: In function `parse_check_output':
/home/mgagne/git/nagios/base/utils.c:2680: undefined reference to `my_strtok'
/home/mgagne/git/nagios/base/utils.c:2687: undefined reference to `my_strtok'
/home/mgagne/git/nagios/base/utils.c:2757: undefined reference to `strip'
/home/mgagne/git/nagios/base/utils.c:2759: undefined reference to `strip'
../base/utils.o: In function `process_check_result_file':
/home/mgagne/git/nagios/base/utils.c:2277: undefined reference to `mmap_fopen'
/home/mgagne/git/nagios/base/utils.c:2292: undefined reference to `mmap_fgets_multiline'
/home/mgagne/git/nagios/base/utils.c:2324: undefined reference to `my_strtok'
/home/mgagne/git/nagios/base/utils.c:2326: undefined reference to `my_strtok'
/home/mgagne/git/nagios/base/utils.c:2420: undefined reference to `mmap_fclose'
../base/utils.o: In function `compare_strings':
/home/mgagne/git/nagios/base/utils.c:2956: undefined reference to `compare_hashdata'
../base/config.o: In function `pre_flight_object_check':
/home/mgagne/git/nagios/base/config.c:1779: undefined reference to `my_strtok'
/home/mgagne/git/nagios/base/config.c:1797: undefined reference to `my_strtok'
/home/mgagne/git/nagios/base/config.c:1950: undefined reference to `my_strtok'
/home/mgagne/git/nagios/base/config.c:1971: undefined reference to `my_strtok'
/home/mgagne/git/nagios/base/config.c:2175: undefined reference to `my_strtok'
../base/config.o:/home/mgagne/git/nagios/base/config.c:2200: more undefined references to `my_strtok' follow
../base/config.o: In function `read_resource_file':
/home/mgagne/git/nagios/base/config.c:1402: undefined reference to `mmap_fopen'
/home/mgagne/git/nagios/base/config.c:1416: undefined reference to `mmap_fgets_multiline'
/home/mgagne/git/nagios/base/config.c:1425: undefined reference to `strip'
/home/mgagne/git/nagios/base/config.c:1428: undefined reference to `my_strtok'
/home/mgagne/git/nagios/base/config.c:1439: undefined reference to `my_strtok'
/home/mgagne/git/nagios/base/config.c:1467: undefined reference to `mmap_fclose'
/home/mgagne/git/nagios/base/config.c:1467: undefined reference to `mmap_fclose'
/home/mgagne/git/nagios/base/config.c:1467: undefined reference to `mmap_fclose'
../base/config.o: In function `read_main_config_file':
/home/mgagne/git/nagios/base/config.c:265: undefined reference to `mmap_fopen'
/home/mgagne/git/nagios/base/config.c:273: undefined reference to `strip'
/home/mgagne/git/nagios/base/config.c:284: undefined reference to `mmap_fgets_multiline'
/home/mgagne/git/nagios/base/config.c:289: undefined reference to `strip'
/home/mgagne/git/nagios/base/config.c:296: undefined reference to `my_strtok'
/home/mgagne/git/nagios/base/config.c:308: undefined reference to `my_strtok'
/home/mgagne/git/nagios/base/config.c:318: undefined reference to `strip'
/home/mgagne/git/nagios/base/config.c:319: undefined reference to `strip'
/home/mgagne/git/nagios/base/config.c:1370: undefined reference to `mmap_fclose'
/home/mgagne/git/nagios/base/config.c:1379: undefined reference to `strip'
/home/mgagne/git/nagios/base/config.c:419: undefined reference to `strip'
/home/mgagne/git/nagios/base/config.c:447: undefined reference to `strip'
/home/mgagne/git/nagios/base/config.c:881: undefined reference to `strip'
../base/macros-base.o: In function `grab_datetime_macro':
/home/mgagne/git/nagios/base/../common/macros.c:1493: undefined reference to `get_datetime_string'
/home/mgagne/git/nagios/base/../common/macros.c:1472: undefined reference to `get_datetime_string'
/home/mgagne/git/nagios/base/../common/macros.c:1479: undefined reference to `get_datetime_string'
/home/mgagne/git/nagios/base/../common/macros.c:1486: undefined reference to `get_datetime_string'
../base/xobjects-base.o: In function `xodtemplate_add_servicegroup_members_to_memberlist':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:12908: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:12908: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:12911: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_add_hostgroup_members_to_memberlist':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:12536: undefined reference to `strip'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:12533: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_add_contactgroup_members_to_memberlist':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:12195: undefined reference to `strip'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:12192: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_register_hostescalation':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:9228: undefined reference to `strip'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:9242: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_register_service':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:9119: undefined reference to `strip'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:9134: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_register_host':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:9042: undefined reference to `strip'
../base/xobjects-base.o:/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:9056: more undefined references to `strip' follow
../base/xobjects-base.o: In function `xodtemplate_get_time_ranges':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:8674: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:8679: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:8684: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:8692: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:8697: undefined reference to `my_strsep'
../base/xobjects-base.o:/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:8702: more undefined references to `my_strsep' follow
../base/xobjects-base.o: In function `xodtemplate_register_timeperiod':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:8647: undefined reference to `strip'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:8624: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:8624: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_expand_services':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:12761: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_resolve_serviceextinfo':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:7471: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_resolve_hostextinfo':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:7370: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_resolve_hostescalation':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:7297: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:7297: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_resolve_hostdependency':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:7224: undefined reference to `my_strsep'
../base/xobjects-base.o:/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:7224: more undefined references to `my_strsep' follow
../base/xobjects-base.o: In function `xodtemplate_expand_hosts':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:12414: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_expand_contacts':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:12072: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_resolve_serviceescalation':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6519: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6519: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_resolve_servicedependency':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6441: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6441: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_get_servicegroup_names':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:13369: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_expand_servicegroups':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:12624: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_recombobulate_servicegroup_subgroups':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:8116: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_recombobulate_servicegroups':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:8025: undefined reference to `strip'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:8026: undefined reference to `strip'
../base/xobjects-base.o:/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:7953: more undefined references to `strip' follow
../base/xobjects-base.o: In function `xodtemplate_resolve_servicegroup':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6374: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6374: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_get_hostgroup_names':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:13017: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_expand_hostgroups':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:12293: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_recombobulate_hostgroup_subgroups':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:7881: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_recombobulate_hostgroups':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:7757: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_resolve_hostgroup':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6305: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6305: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_get_contactgroup_names':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:13193: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_expand_contactgroups':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:11951: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_recombobulate_contactgroup_subgroups':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:7669: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_recombobulate_contactgroups':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:7568: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_resolve_contactgroup':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6251: undefined reference to `my_strsep'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6251: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_resolve_command':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6201: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_resolve_timeperiod':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6106: undefined reference to `my_strsep'
../base/xobjects-base.o: In function `xodtemplate_resolve_contact':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6598: undefined reference to `my_strsep'
../base/xobjects-base.o:/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:6598: more undefined references to `my_strsep' follow
../base/xobjects-base.o: In function `xodtemplate_add_object_property':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:1238: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_process_config_file':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:675: undefined reference to `mmap_fopen'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:687: undefined reference to `mmap_fgets_multiline'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:704: undefined reference to `strip'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:833: undefined reference to `mmap_fclose'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:833: undefined reference to `mmap_fclose'
../base/xobjects-base.o: In function `xodtemplate_grab_config_info':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:508: undefined reference to `mmap_fopen'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:518: undefined reference to `mmap_fgets_multiline'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:522: undefined reference to `strip'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:544: undefined reference to `mmap_fclose'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:560: undefined reference to `strip'
../base/xobjects-base.o: In function `xodtemplate_read_config_data':
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:244: undefined reference to `mmap_fopen'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:261: undefined reference to `mmap_fgets_multiline'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:265: undefined reference to `strip'
/home/mgagne/git/nagios/base/../xdata/xodtemplate.c:323: undefined reference to `mmap_fclose'
collect2: ld returned 1 exit status
make: *** [test_timeperiods] Error 1
