{"action":"created","issue":{"url":"https://api.github.com/repos/OPM/opm-core/issues/780","labels_url":"https://api.github.com/repos/OPM/opm-core/issues/780/labels{/name}","comments_url":"https://api.github.com/repos/OPM/opm-core/issues/780/comments","events_url":"https://api.github.com/repos/OPM/opm-core/issues/780/events","html_url":"https://github.com/OPM/opm-core/issues/780","id":67385200,"number":780,"title":"symbol lookup error ecl_grid_alloc_dx_dy_dz_tops with wells_example.cpp","user":{"login":"TobiasRitschel","id":8339643,"avatar_url":"https://avatars.githubusercontent.com/u/8339643?v=3","gravatar_id":"","url":"https://api.github.com/users/TobiasRitschel","html_url":"https://github.com/TobiasRitschel","followers_url":"https://api.github.com/users/TobiasRitschel/followers","following_url":"https://api.github.com/users/TobiasRitschel/following{/other_user}","gists_url":"https://api.github.com/users/TobiasRitschel/gists{/gist_id}","starred_url":"https://api.github.com/users/TobiasRitschel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TobiasRitschel/subscriptions","organizations_url":"https://api.github.com/users/TobiasRitschel/orgs","repos_url":"https://api.github.com/users/TobiasRitschel/repos","events_url":"https://api.github.com/users/TobiasRitschel/events{/privacy}","received_events_url":"https://api.github.com/users/TobiasRitschel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-09T15:21:52Z","updated_at":"2015-04-10T12:00:23Z","closed_at":null,"body":"I have been trying to compile and run the `wells_example.cpp` from opm-core. I created a `data.data` file where I specify the RUNSPEC and GRID sections. It compiles fine but when I run it I get the following error:\r\n```\r\ninputdeck not found. Using default value 'data.data'.\r\nnum_psteps not found. Using default value '1'.\r\nstepsize_days not found. Using default value '1'.\r\n./wells_example: symbol lookup error: ./wells_example: undefined symbol: ecl_grid_alloc_dx_dy_dz_tops\r\n```\r\nThe first three lines seems fine to me, but searching for this symbol on the last line on Google gives 3 hits of which 2 are other issues. One says to update ERT and the other is related to opm-autodiff.\r\n\r\nI installed ERT, opm parser, opm core and opm autodiff during the last two weeks so I guess it's not an update issue (and it also seems to be solved?)\r\n\r\nand since `wells_example.cpp` is located in opm-core I don't believe it is an issue with autodiff. The last hit is `EclipseGrid.cpp` itself.\r\n\r\nI'm quite new to OPM and also have limited experience with Linux systems. Searching for \"symbol lookup error\" I found some advice (http://benohead.com/linux-c-lookup-error-undefined-symbol/) that I tried out:\r\n```\r\nldd wells_example\r\n```\r\ndoes not yield any \"not found\" so I guess I'm not missing any libraries.\r\n```\r\nldd -r -d wells_example\r\n```\r\ngives the libraries and\r\n```\r\nundefined symbol: ecl_grid_init_actnum_data\t(./wells_example)\r\nundefined symbol: ecl_grid_get_zcorn_size\t(./wells_example)\r\nundefined symbol: ecl_grid_init_mapaxes_data_double\t(./wells_example)\r\nundefined symbol: ecl_grid_alloc_copy\t(./wells_example)\r\nundefined symbol: ecl_grid_reset_actnum\t(./wells_example)\r\nundefined symbol: ecl_grid_alloc_dxv_dyv_dzv_depthz\t(./wells_example)\r\nundefined symbol: ecl_grid_init_coord_data_double\t(./wells_example)\r\nundefined symbol: ecl_grid_init_zcorn_data_double\t(./wells_example)\r\nundefined symbol: ecl_grid_get_coord_size\t(./wells_example)\r\nundefined symbol: ecl_grid_alloc_dx_dy_dz_tops\t(./wells_example)\r\nundefined symbol: ecl_grid_use_mapaxes\t(./wells_example)\r\n```\r\nso I guess it isn't just `ecl_grid_alloc_dx_dy_dz_tops` that's missing. I don't know how to further debug the problem and any help or advice would be much appreciated. I guess you would need some information about my installation, so please let me know"},"comment":{"url":"https://api.github.com/repos/OPM/opm-core/issues/comments/91532572","html_url":"https://github.com/OPM/opm-core/issues/780#issuecomment-91532572","issue_url":"https://api.github.com/repos/OPM/opm-core/issues/780","id":91532572,"user":{"login":"joakim-hove","id":1321665,"avatar_url":"https://avatars.githubusercontent.com/u/1321665?v=3","gravatar_id":"","url":"https://api.github.com/users/joakim-hove","html_url":"https://github.com/joakim-hove","followers_url":"https://api.github.com/users/joakim-hove/followers","following_url":"https://api.github.com/users/joakim-hove/following{/other_user}","gists_url":"https://api.github.com/users/joakim-hove/gists{/gist_id}","starred_url":"https://api.github.com/users/joakim-hove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joakim-hove/subscriptions","organizations_url":"https://api.github.com/users/joakim-hove/orgs","repos_url":"https://api.github.com/users/joakim-hove/repos","events_url":"https://api.github.com/users/joakim-hove/events{/privacy}","received_events_url":"https://api.github.com/users/joakim-hove/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T12:00:23Z","updated_at":"2015-04-10T12:00:23Z","body":">As far as I know I have both a binary and a source installation if that's possible. Could this be a problem? \r\n\r\nYes - I am quite certain that is the problem. What I think happens is that your build process works (more or less) as it should; but at runtime the old (i.e. coming from the binary package) versions of the shared libraries are  located - and in those old versions of e.g. `libecl.so` the symbol you have quoted in the title is missing - it makes sense.\r\n\r\nI would strongly recommend that you start with uninstalling the binary packages; and then reconfigure and build."}}