{"action":"closed","issue":{"url":"https://api.github.com/repos/skilion/onedrive/issues/19","repository_url":"https://api.github.com/repos/skilion/onedrive","labels_url":"https://api.github.com/repos/skilion/onedrive/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/skilion/onedrive/issues/19/comments","events_url":"https://api.github.com/repos/skilion/onedrive/issues/19/events","html_url":"https://github.com/skilion/onedrive/issues/19","id":126862142,"number":19,"title":"x86_64-suse-linux/bin/ld: cannot find -lphobos2","user":{"login":"colourful-land","id":548435,"avatar_url":"https://avatars.githubusercontent.com/u/548435?v=3","gravatar_id":"","url":"https://api.github.com/users/colourful-land","html_url":"https://github.com/colourful-land","followers_url":"https://api.github.com/users/colourful-land/followers","following_url":"https://api.github.com/users/colourful-land/following{/other_user}","gists_url":"https://api.github.com/users/colourful-land/gists{/gist_id}","starred_url":"https://api.github.com/users/colourful-land/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colourful-land/subscriptions","organizations_url":"https://api.github.com/users/colourful-land/orgs","repos_url":"https://api.github.com/users/colourful-land/repos","events_url":"https://api.github.com/users/colourful-land/events{/privacy}","received_events_url":"https://api.github.com/users/colourful-land/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-01-15T12:17:24Z","updated_at":"2016-06-27T12:24:13Z","closed_at":"2016-06-27T12:24:13Z","body":"Behaviour:\r\n\r\n    > make\r\n    dmd -O -release -inline -boundscheck=off -ofonedrive -L-lcurl -L-lsqlite3 -L-ldl patch/etc_c_curl.d patch/std_net_curl.d src/config.d src/itemdb.d src/main.d src/monitor.d src/onedrive.d src/sqlite.d src/sync.d src/upload.d src/util.d\r\n    /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lphobos2\r\n    collect2: error: ld returned 1 exit status\r\n    --- errorlevel 1\r\n    Makefile:20: recipe for target 'onedrive' failed\r\n    make: *** [onedrive] Error 1\r\n\r\nWhat I did check:\r\n\r\nCheck1: libphobos is mentioned in DFLAGS and the paths exists\r\n```\r\n$ cat /etc/dmd.conf\r\n[Environment64]\r\nDFLAGS=-I/usr/include/dlang/dmd-2.069.2/phobos -I/usr/include/dlang/dmd-2.069.2/druntime -L-L/usr/lib64 -L--export-dynamic\r\n```\r\nCheck2: the .so files exists and in the right place:\r\n\r\n```\r\n$ ls /usr/lib64/*phobos*\r\n/usr/lib64/libphobos2-ldc-debug.so.2.0.67  /usr/lib64/libphobos2-ldc.so.67  /usr/lib64/libphobos2.so.0.69.2\r\n/usr/lib64/libphobos2-ldc-debug.so.67      /usr/lib64/libphobos2.so\r\n/usr/lib64/libphobos2-ldc.so.2.0.67        /usr/lib64/libphobos2.so.0.69\r\n```\r\nCheck3: changed Makefile from\r\n```\r\nDFLAGS = -ofonedrive -L-lcurl -L-lsqlite3 -L-ldl\r\n```\r\nto:\r\n```\r\nDFLAGS = -v -ofonedrive -L-lcurl -L-lsqlite3 -L-ldl\r\n```\r\nRun make again to observe that the linker commandline is:\r\n```\r\ngcc onedrive.o -o onedrive -m64 -lcurl -lsqlite3 -ldl -L/usr/lib64 -Xlinker --export-dynamic -Xlinker -Bstatic -lphobos2 -Xlinker -Bdynamic -lpthread -lm -lrt -ldl\r\n```\r\nThis is to confirm that -L/usr/lib64 is used in linker.\r\n\r\n\r\nAny hint? Strange enough, there was no error about not finding -lcurl or -lsqlite3, but curl/sqlite3 libraries are in /usr/lib64 just like -lphobos2"}}
{"actor":{"display_login":"skilion"}}