{"comment":{"created_at":"2011-10-19T14:25:16Z","body":"Propably thats the cause:\r\nhttp://ubuntuforums.org/showpost.php?s=ac2400d7ddb37d95aa7a987bcfa22408&p=10100263&postcount=8\r\n\r\nCompiling with gcc and linking with ld could lead to these missing symols? How does to linker should kown when it should link this stack protection symbols?\r\n\r\nregards :)","updated_at":"2011-10-19T14:25:16Z","url":"https://api.github.com/repos/dailab/libsml/issues/comments/2456342","id":2456342,"user":{"avatar_url":"https://secure.gravatar.com/avatar/e61d95a478f906d015cbeb4e6102752d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e61d95a478f906d015cbeb4e6102752d","url":"https://api.github.com/users/stv0g","id":285829,"login":"stv0g"}},"action":"created","issue":{"number":3,"created_at":"2011-10-18T21:54:09Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi Juri,\r\n\r\nI do this:\r\n\r\ngit clone https://github.com/dailab/libsml.git\r\ncd libsml\r\nmake\r\n\r\nand I get this:\r\n\r\nmake\r\nmake[1]: Entering directory `/opt/libsml/sml'\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_file.o src/sml_file.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_attention_response.o src/sml_attention_response.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_transport.o src/sml_transport.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_octet_string.o src/sml_octet_string.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_shared.o src/sml_shared.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_number.o src/sml_number.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_message.o src/sml_message.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_time.o src/sml_time.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_list.o src/sml_list.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_status.o src/sml_status.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_value.o src/sml_value.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_tree.o src/sml_tree.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_boolean.o src/sml_boolean.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_crc16.o src/sml_crc16.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_open_request.o src/sml_open_request.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_open_response.o src/sml_open_response.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_get_list_request.o src/sml_get_list_request.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_get_list_response.o src/sml_get_list_response.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_close_request.o src/sml_close_request.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_close_response.o src/sml_close_response.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_set_proc_parameter_request.o src/sml_set_proc_parameter_request.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_get_proc_parameter_request.o src/sml_get_proc_parameter_request.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_get_proc_parameter_response.o src/sml_get_proc_parameter_response.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_get_profile_pack_request.o src/sml_get_profile_pack_request.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_get_profile_pack_response.o src/sml_get_profile_pack_response.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_get_profile_list_request.o src/sml_get_profile_list_request.c\r\ncc -I./include/ -fPIC -g -Wall   -c -o src/sml_get_profile_list_response.o src/sml_get_profile_list_response.c\r\nld -luuid -shared -soname libsml.so.1 -o lib/libsml.so.1 src/sml_file.o src/sml_attention_response.o src/sml_transport.o src/sml_octet_string.o src/sml_shared.o src/sml_number.o src/sml_message.o src/sml_time.o src/sml_list.o src/sml_status.o src/sml_value.o src/sml_tree.o src/sml_boolean.o src/sml_crc16.o src/sml_open_request.o src/sml_open_response.o src/sml_get_list_request.o src/sml_get_list_response.o src/sml_close_request.o src/sml_close_response.o src/sml_set_proc_parameter_request.o src/sml_get_proc_parameter_request.o src/sml_get_proc_parameter_response.o src/sml_get_profile_pack_request.o src/sml_get_profile_pack_response.o src/sml_get_profile_list_request.o src/sml_get_profile_list_response.o\r\nsrc/sml_transport.o: In function `sml_transport_read':\r\n/opt/libsml/sml/src/sml_transport.c:109: undefined reference to `__stack_chk_fail_local'\r\nsrc/sml_transport.o: In function `sml_transport_write':\r\n/opt/libsml/sml/src/sml_transport.c:163: undefined reference to `__stack_chk_fail_local'\r\nsrc/sml_octet_string.o: In function `sml_octet_string_init_from_hex':\r\n/opt/libsml/sml/src/sml_octet_string.c:55: undefined reference to `__stack_chk_fail_local'\r\nsrc/sml_octet_string.o: In function `sml_octet_string_generate_uuid':\r\n/opt/libsml/sml/src/sml_octet_string.c:122: undefined reference to `__stack_chk_fail_local'\r\nsrc/sml_number.o: In function `sml_number_byte_swap':\r\n/opt/libsml/sml/src/sml_number.c:106: undefined reference to `__stack_chk_fail_local'\r\nld: lib/libsml.so.1: hidden symbol `__stack_chk_fail_local' isn't defined\r\nld: final link failed: Nonrepresentable section on output\r\nmake[1]: *** [lib/libsml.so.1] Error 1\r\nmake[1]: Leaving directory `/opt/libsml/sml'\r\nmake: *** [all] Error 2\r\n\r\nI'm running Ubuntu 10.04.3 LTS using commit dd813cd5b5.\r\n\r\n\r\nFollowing http://ubuntuforums.org/showthread.php?t=352642 (thx to stv0g!) I found out that adding \"-fno-stack-protector\" to the CFLAGS helps - make runs fine, then.\r\n\r\nPlease let me know, if you need more details.\r\n\r\n\r\nRegards, J.\r\n","comments":2,"title":"Compile glibc got error `__stack_chk_fail_local' on Ubuntu","updated_at":"2011-10-19T14:25:16Z","url":"https://api.github.com/repos/dailab/libsml/issues/3","id":1977212,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/c64c1622c82244af69fb42ca56471696?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c64c1622c82244af69fb42ca56471696","url":"https://api.github.com/users/justinotherguy","id":199173,"login":"justinotherguy"},"html_url":"https://github.com/dailab/libsml/issues/3","labels":[],"state":"open"},"legacy":{"issue_id":1977212,"comment_id":2456342}}