{"action":"created","issue":{"url":"https://api.github.com/repos/GaloisInc/ppaml-cp4/issues/2","labels_url":"https://api.github.com/repos/GaloisInc/ppaml-cp4/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/GaloisInc/ppaml-cp4/issues/2/comments","events_url":"https://api.github.com/repos/GaloisInc/ppaml-cp4/issues/2/events","html_url":"https://github.com/GaloisInc/ppaml-cp4/issues/2","id":63136721,"number":2,"title":"Makefile for csolve.c","user":{"login":"probinso","id":1081871,"avatar_url":"https://avatars.githubusercontent.com/u/1081871?v=3","gravatar_id":"","url":"https://api.github.com/users/probinso","html_url":"https://github.com/probinso","followers_url":"https://api.github.com/users/probinso/followers","following_url":"https://api.github.com/users/probinso/following{/other_user}","gists_url":"https://api.github.com/users/probinso/gists{/gist_id}","starred_url":"https://api.github.com/users/probinso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/probinso/subscriptions","organizations_url":"https://api.github.com/users/probinso/orgs","repos_url":"https://api.github.com/users/probinso/repos","events_url":"https://api.github.com/users/probinso/events{/privacy}","received_events_url":"https://api.github.com/users/probinso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-20T01:53:25Z","updated_at":"2015-03-20T03:16:21Z","closed_at":null,"body":"The source code doesn't seem to have a main function, and is calling out to python libraries that I don't seem to have. Until there is documentation, including system requirements, I don''t believe I know how to help. A makefile of what commands work on your system would be vary helpful.\r\n\r\n```scrypt\r\npeval@localhost:~$  gcc csolve.c -I/usr/include/python2.7\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 12\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 21\r\n/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_line): relocation 0 has invalid symbol index 2\r\n/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function `_start':\r\n(.text+0x20): undefined reference to `main'\r\n/tmp/ccCgkbfG.o: In function `read_float_attr':\r\ncsolve.c:(.text+0x1f): undefined reference to `PyObject_GetAttrString'\r\ncsolve.c:(.text+0x2f): undefined reference to `PyFloat_AsDouble'\r\n/tmp/ccCgkbfG.o: In function `read_list_float_attr':\r\ncsolve.c:(.text+0xa2): undefined reference to `PyObject_GetAttrString'\r\ncsolve.c:(.text+0xb2): undefined reference to `PySequence_Size'\r\ncsolve.c:(.text+0xe8): undefined reference to `PySequence_GetItem'\r\ncsolve.c:(.text+0x10d): undefined reference to `PyFloat_AsDouble'\r\n/tmp/ccCgkbfG.o: In function `read_sta_list':\r\ncsolve.c:(.text+0x56f): undefined reference to `PySequence_Size'\r\ncsolve.c:(.text+0x5b2): undefined reference to `PySequence_GetItem'\r\ncsolve.c:(.text+0x631): undefined reference to `PyArg_ParseTuple'\r\n/tmp/ccCgkbfG.o: In function `read_det_list':\r\ncsolve.c:(.text+0x6b9): undefined reference to `PySequence_Size'\r\ncsolve.c:(.text+0x700): undefined reference to `PySequence_GetItem'\r\ncsolve.c:(.text+0x7be): undefined reference to `PyArg_ParseTuple'\r\n/tmp/ccCgkbfG.o: In function `make_event_obj':\r\ncsolve.c:(.text+0x888): undefined reference to `Py_BuildValue'\r\n/tmp/ccCgkbfG.o: In function `make_assoc_obj':\r\ncsolve.c:(.text+0x8a3): undefined reference to `PyList_New'\r\ncsolve.c:(.text+0x8e7): undefined reference to `Py_BuildValue'\r\ncsolve.c:(.text+0x8fe): undefined reference to `PyList_Append'\r\n/tmp/ccCgkbfG.o: In function `compute_distance':\r\ncsolve.c:(.text+0xc56): undefined reference to `sin'\r\ncsolve.c:(.text+0xc75): undefined reference to `cos'\r\ncsolve.c:(.text+0xc94): undefined reference to `sin'\r\ncsolve.c:(.text+0xcb3): undefined reference to `cos'\r\ncsolve.c:(.text+0xce1): undefined reference to `cos'\r\ncsolve.c:(.text+0xd00): undefined reference to `sin'\r\ncsolve.c:(.text+0xd73): undefined reference to `sqrt'\r\ncsolve.c:(.text+0xd8f): undefined reference to `atan2'\r\n/tmp/ccCgkbfG.o: In function `compute_azimuth':\r\ncsolve.c:(.text+0xe7b): undefined reference to `sin'\r\ncsolve.c:(.text+0xe9a): undefined reference to `cos'\r\ncsolve.c:(.text+0xeb1): undefined reference to `tan'\r\ncsolve.c:(.text+0xed1): undefined reference to `sin'\r\ncsolve.c:(.text+0xee8): undefined reference to `cos'\r\ncsolve.c:(.text+0xf1e): undefined reference to `atan2'\r\ncsolve.c:(.text+0xf6b): undefined reference to `fmod'\r\n/tmp/ccCgkbfG.o: In function `invert_dist_azimuth':\r\ncsolve.c:(.text+0x1031): undefined reference to `sin'\r\ncsolve.c:(.text+0x1048): undefined reference to `cos'\r\ncsolve.c:(.text+0x1068): undefined reference to `cos'\r\ncsolve.c:(.text+0x107f): undefined reference to `sin'\r\ncsolve.c:(.text+0x109f): undefined reference to `cos'\r\ncsolve.c:(.text+0x10ae): undefined reference to `asin'\r\ncsolve.c:(.text+0x10cd): undefined reference to `cos'\r\ncsolve.c:(.text+0x10e4): undefined reference to `sin'\r\ncsolve.c:(.text+0x10fb): undefined reference to `sin'\r\ncsolve.c:(.text+0x1120): undefined reference to `sin'\r\ncsolve.c:(.text+0x1137): undefined reference to `sin'\r\ncsolve.c:(.text+0x1157): undefined reference to `cos'\r\ncsolve.c:(.text+0x1166): undefined reference to `atan2'\r\n/tmp/ccCgkbfG.o: In function `compute_degdiff':\r\ncsolve.c:(.text+0x11f6): undefined reference to `fmod'\r\n/tmp/ccCgkbfG.o: In function `logistic':\r\ncsolve.c:(.text+0x125a): undefined reference to `exp'\r\n/tmp/ccCgkbfG.o: In function `laplace_ppf':\r\ncsolve.c:(.text+0x130d): undefined reference to `log'\r\ncsolve.c:(.text+0x133e): undefined reference to `log'\r\n/tmp/ccCgkbfG.o: In function `laplace_logpdf':\r\ncsolve.c:(.text+0x1388): undefined reference to `log'\r\n/tmp/ccCgkbfG.o: In function `norm_logpdf':\r\ncsolve.c:(.text+0x13f0): undefined reference to `log'\r\n/tmp/ccCgkbfG.o: In function `cauchy_logpdf':\r\ncsolve.c:(.text+0x1477): undefined reference to `log'\r\n/tmp/ccCgkbfG.o:csolve.c:(.text+0x14ad): more undefined references to `log' follow\r\n/tmp/ccCgkbfG.o: In function `csolve_solve_episode':\r\ncsolve.c:(.text+0x229f): undefined reference to `PyArg_ParseTuple'\r\ncsolve.c:(.text+0x2328): undefined reference to `PyList_New'\r\ncsolve.c:(.text+0x2336): undefined reference to `PyList_New'\r\ncsolve.c:(.text+0x23b4): undefined reference to `Py_BuildValue'\r\ncsolve.c:(.text+0x23f7): undefined reference to `PyList_Append'\r\ncsolve.c:(.text+0x2452): undefined reference to `PyList_Append'\r\n/tmp/ccCgkbfG.o: In function `initcsolve':\r\ncsolve.c:(.text+0x24bf): undefined reference to `Py_InitModule4_64'\r\ncollect2: error: ld returned 1 exit status"},"comment":{"url":"https://api.github.com/repos/GaloisInc/ppaml-cp4/issues/comments/83869514","html_url":"https://github.com/GaloisInc/ppaml-cp4/issues/2#issuecomment-83869514","issue_url":"https://api.github.com/repos/GaloisInc/ppaml-cp4/issues/2","id":83869514,"user":{"login":"slater-ppaml","id":10967738,"avatar_url":"https://avatars.githubusercontent.com/u/10967738?v=3","gravatar_id":"","url":"https://api.github.com/users/slater-ppaml","html_url":"https://github.com/slater-ppaml","followers_url":"https://api.github.com/users/slater-ppaml/followers","following_url":"https://api.github.com/users/slater-ppaml/following{/other_user}","gists_url":"https://api.github.com/users/slater-ppaml/gists{/gist_id}","starred_url":"https://api.github.com/users/slater-ppaml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slater-ppaml/subscriptions","organizations_url":"https://api.github.com/users/slater-ppaml/orgs","repos_url":"https://api.github.com/users/slater-ppaml/repos","events_url":"https://api.github.com/users/slater-ppaml/events{/privacy}","received_events_url":"https://api.github.com/users/slater-ppaml/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T03:16:21Z","updated_at":"2015-03-20T03:16:21Z","body":"The source code is meant to be used as a Python extension. The \nreadme.txt file has the relevant info, including the build instructions:\n\npython setup.py build_ext --inplace\n\nMichael\n\nOn 3/19/2015 6:53 PM, Philip Robinson wrote:\n>\n> The source code doesn't seem to have a main function, and is calling \n> out to python libraries that I don't seem to have. Until there is \n> documentation, including system requirements, I don''t believe I know \n> how to help. A makefile of what commands work on your system would be \n> vary helpful.\n>\n> |peval@localhost:~$  gcc csolve.c -I/usr/include/python2.7\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 12\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 21\n> /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_line): relocation 0 has invalid symbol index 2\n> /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function `_start':\n> (.text+0x20): undefined reference to `main'\n> /tmp/ccCgkbfG.o: In function `read_float_attr':\n> csolve.c:(.text+0x1f): undefined reference to `PyObject_GetAttrString'\n> csolve.c:(.text+0x2f): undefined reference to `PyFloat_AsDouble'\n> /tmp/ccCgkbfG.o: In function `read_list_float_attr':\n> csolve.c:(.text+0xa2): undefined reference to `PyObject_GetAttrString'\n> csolve.c:(.text+0xb2): undefined reference to `PySequence_Size'\n> csolve.c:(.text+0xe8): undefined reference to `PySequence_GetItem'\n> csolve.c:(.text+0x10d): undefined reference to `PyFloat_AsDouble'\n> /tmp/ccCgkbfG.o: In function `read_sta_list':\n> csolve.c:(.text+0x56f): undefined reference to `PySequence_Size'\n> csolve.c:(.text+0x5b2): undefined reference to `PySequence_GetItem'\n> csolve.c:(.text+0x631): undefined reference to `PyArg_ParseTuple'\n> /tmp/ccCgkbfG.o: In function `read_det_list':\n> csolve.c:(.text+0x6b9): undefined reference to `PySequence_Size'\n> csolve.c:(.text+0x700): undefined reference to `PySequence_GetItem'\n> csolve.c:(.text+0x7be): undefined reference to `PyArg_ParseTuple'\n> /tmp/ccCgkbfG.o: In function `make_event_obj':\n> csolve.c:(.text+0x888): undefined reference to `Py_BuildValue'\n> /tmp/ccCgkbfG.o: In function `make_assoc_obj':\n> csolve.c:(.text+0x8a3): undefined reference to `PyList_New'\n> csolve.c:(.text+0x8e7): undefined reference to `Py_BuildValue'\n> csolve.c:(.text+0x8fe): undefined reference to `PyList_Append'\n> /tmp/ccCgkbfG.o: In function `compute_distance':\n> csolve.c:(.text+0xc56): undefined reference to `sin'\n> csolve.c:(.text+0xc75): undefined reference to `cos'\n> csolve.c:(.text+0xc94): undefined reference to `sin'\n> csolve.c:(.text+0xcb3): undefined reference to `cos'\n> csolve.c:(.text+0xce1): undefined reference to `cos'\n> csolve.c:(.text+0xd00): undefined reference to `sin'\n> csolve.c:(.text+0xd73): undefined reference to `sqrt'\n> csolve.c:(.text+0xd8f): undefined reference to `atan2'\n> /tmp/ccCgkbfG.o: In function `compute_azimuth':\n> csolve.c:(.text+0xe7b): undefined reference to `sin'\n> csolve.c:(.text+0xe9a): undefined reference to `cos'\n> csolve.c:(.text+0xeb1): undefined reference to `tan'\n> csolve.c:(.text+0xed1): undefined reference to `sin'\n> csolve.c:(.text+0xee8): undefined reference to `cos'\n> csolve.c:(.text+0xf1e): undefined reference to `atan2'\n> csolve.c:(.text+0xf6b): undefined reference to `fmod'\n> /tmp/ccCgkbfG.o: In function `invert_dist_azimuth':\n> csolve.c:(.text+0x1031): undefined reference to `sin'\n> csolve.c:(.text+0x1048): undefined reference to `cos'\n> csolve.c:(.text+0x1068): undefined reference to `cos'\n> csolve.c:(.text+0x107f): undefined reference to `sin'\n> csolve.c:(.text+0x109f): undefined reference to `cos'\n> csolve.c:(.text+0x10ae): undefined reference to `asin'\n> csolve.c:(.text+0x10cd): undefined reference to `cos'\n> csolve.c:(.text+0x10e4): undefined reference to `sin'\n> csolve.c:(.text+0x10fb): undefined reference to `sin'\n> csolve.c:(.text+0x1120): undefined reference to `sin'\n> csolve.c:(.text+0x1137): undefined reference to `sin'\n> csolve.c:(.text+0x1157): undefined reference to `cos'\n> csolve.c:(.text+0x1166): undefined reference to `atan2'\n> /tmp/ccCgkbfG.o: In function `compute_degdiff':\n> csolve.c:(.text+0x11f6): undefined reference to `fmod'\n> /tmp/ccCgkbfG.o: In function `logistic':\n> csolve.c:(.text+0x125a): undefined reference to `exp'\n> /tmp/ccCgkbfG.o: In function `laplace_ppf':\n> csolve.c:(.text+0x130d): undefined reference to `log'\n> csolve.c:(.text+0x133e): undefined reference to `log'\n> /tmp/ccCgkbfG.o: In function `laplace_logpdf':\n> csolve.c:(.text+0x1388): undefined reference to `log'\n> /tmp/ccCgkbfG.o: In function `norm_logpdf':\n> csolve.c:(.text+0x13f0): undefined reference to `log'\n> /tmp/ccCgkbfG.o: In function `cauchy_logpdf':\n> csolve.c:(.text+0x1477): undefined reference to `log'\n> /tmp/ccCgkbfG.o:csolve.c:(.text+0x14ad): more undefined references to `log' follow\n> /tmp/ccCgkbfG.o: In function `csolve_solve_episode':\n> csolve.c:(.text+0x229f): undefined reference to `PyArg_ParseTuple'\n> csolve.c:(.text+0x2328): undefined reference to `PyList_New'\n> csolve.c:(.text+0x2336): undefined reference to `PyList_New'\n> csolve.c:(.text+0x23b4): undefined reference to `Py_BuildValue'\n> csolve.c:(.text+0x23f7): undefined reference to `PyList_Append'\n> csolve.c:(.text+0x2452): undefined reference to `PyList_Append'\n> /tmp/ccCgkbfG.o: In function `initcsolve':\n> csolve.c:(.text+0x24bf): undefined reference to `Py_InitModule4_64'\n> collect2: error: ld returned 1 exit status\n> |\n>\n> —\n> Reply to this email directly or view it on GitHub \n> <https://github.com/GaloisInc/ppaml-cp4/issues/2>.\n>\n\n"}}