{"action":"opened","issue":{"url":"https://api.github.com/repos/lsds/TaLoS/issues/7","repository_url":"https://api.github.com/repos/lsds/TaLoS","labels_url":"https://api.github.com/repos/lsds/TaLoS/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/lsds/TaLoS/issues/7/comments","events_url":"https://api.github.com/repos/lsds/TaLoS/issues/7/events","html_url":"https://github.com/lsds/TaLoS/issues/7","id":303936622,"number":7,"title":"Undefined reference","user":{"login":"gmatesunny","id":17284495,"avatar_url":"https://avatars0.githubusercontent.com/u/17284495?v=4","gravatar_id":"","url":"https://api.github.com/users/gmatesunny","html_url":"https://github.com/gmatesunny","followers_url":"https://api.github.com/users/gmatesunny/followers","following_url":"https://api.github.com/users/gmatesunny/following{/other_user}","gists_url":"https://api.github.com/users/gmatesunny/gists{/gist_id}","starred_url":"https://api.github.com/users/gmatesunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmatesunny/subscriptions","organizations_url":"https://api.github.com/users/gmatesunny/orgs","repos_url":"https://api.github.com/users/gmatesunny/repos","events_url":"https://api.github.com/users/gmatesunny/events{/privacy}","received_events_url":"https://api.github.com/users/gmatesunny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-09T18:28:52Z","updated_at":"2018-03-09T18:28:52Z","closed_at":null,"author_association":"NONE","body":"My /home/roshan/talos/src/nginx-1.11.0/objs/makefile (full version: https://gist.github.com/gmatesunny/ae600c1d4183c12a0a99387923828cab) \r\n\r\n\r\n\t$(LINK) -o objs/nginx \\\r\n\tobjs/src/core/nginx.o \\\r\n\tobjs/src/core/ngx_log.o \\\r\n         ----------------------\r\n         ---------------------\r\n\t-ldl -lpthread /home/roshan/sgxsdk/sdk_libs/libsgx_uae_service_sim.so /home/roshan/sgxsdk/sdk_libs/libsgx_urts_sim.so -lcrypt -lpcre /home/roshan/talos/src/libressl-2.4.1/lib/libssl.a /home/roshan/talos/src/libressl-2.4.1/lib/libcrypto.a -ldl -lz \\\r\n\t-Wl,-E\r\n\r\nI have also set: /etc/ld.so.conf.d/sgxlibs.conf to\r\n/home/roshan/sgxsdk/lib64/    \r\nAlso, set the PATH variable to /home/roshan/sgxsdk/lib64/\r\n\r\nI am trying to build Nginx and on doing make at /home/roshan/talos/src/nginx-1.11.0\r\n\r\n\r\nStep of the readme.md where I got stuck:\r\n```\r\non step 3. in `objs/nginx`, for the LINK phase, update the following line with the\r\n   correct path to `libssl.a` and `libcrypto.a` and add `-lsgx_urts\r\n   -lsgx_uae_service`. Depending on how you compiled TaLoS, you may want to\r\n   change `-lsgx_urts -lsgx_uae_service` (real hardware) to `-lsgx_urts_sim\r\n   -lsgx_uae_service_sim` (simulator).\r\n\r\nThe code is ready to be compiled:\r\n$ make\r\n```\r\n\r\nI am keep getting errors like:\r\n/home/roshan/talos/src/libressl-2.4.1/crypto/enclave_u.c:2101: undefined reference to `sgx_ecall'\r\n/home/roshan/talos/src/libressl-2.4.1/lib/libssl.a(enclave_u.o): In function `ecall_SSL_library_init':\r\n/home/roshan/talos/src/libressl-2.4.1/crypto/enclave_u.c:2109: undefined reference to `sgx_ecall'\r\n/home/roshan/talos/src/libressl-2.4.1/lib/libssl.a(enclave_u.o): In function `ecall_SSL_get_ex_new_index':\r\n/home/roshan/talos/src/libressl-2.4.1/crypto/enclave_u.c:2137: undefined reference to `sgx_ecall'\r\n/home/roshan/talos/src/libressl-2.4.1/lib/libssl.a(enclave_u.o): In function `ecall_SSL_CTX_get_ex_new_index':\r\n/home/roshan/talos/src/libressl-2.4.1/crypto/enclave_u.c:2151: undefined reference to `sgx_ecall'\r\n/home/roshan/talos/src/libressl-2.4.1/lib/libssl.a(enclave_u.o):/home/roshan/talos/src/libressl-2.4.1/crypto/enclave_u.c:2165: more undefined references to `sgx_ecall' follow\r\n\r\n\r\n"}}
{"actor":{"display_login":"gmatesunny"}}