{"action":"closed","issue":{"url":"https://api.github.com/repos/jpakkane/meson/issues/60","labels_url":"https://api.github.com/repos/jpakkane/meson/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/jpakkane/meson/issues/60/comments","events_url":"https://api.github.com/repos/jpakkane/meson/issues/60/events","html_url":"https://github.com/jpakkane/meson/issues/60","id":63558758,"number":60,"title":"tests/objc-nsstring: linker error","user":{"login":"ignatenkobrain","id":2866862,"avatar_url":"https://avatars.githubusercontent.com/u/2866862?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatenkobrain","html_url":"https://github.com/ignatenkobrain","followers_url":"https://api.github.com/users/ignatenkobrain/followers","following_url":"https://api.github.com/users/ignatenkobrain/following{/other_user}","gists_url":"https://api.github.com/users/ignatenkobrain/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatenkobrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatenkobrain/subscriptions","organizations_url":"https://api.github.com/users/ignatenkobrain/orgs","repos_url":"https://api.github.com/users/ignatenkobrain/repos","events_url":"https://api.github.com/users/ignatenkobrain/events{/privacy}","received_events_url":"https://api.github.com/users/ignatenkobrain/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-22T17:53:21Z","updated_at":"2015-03-22T19:08:04Z","closed_at":"2015-03-22T19:08:04Z","body":"```\r\nbash-4.3# ../../../../meson.py ..\r\nThe Meson build system\r\nVersion: 0.23.0-research\r\nSource dir: /root/slave/runtests/build/test cases/objc/2 nsstring\r\nBuild dir: /root/slave/runtests/build/test cases/objc/2 nsstring/build\r\nBuild type: native build\r\nProject name: nsstring\r\nNative objc compiler: cc (gcc 4.9.2)\r\nDependency GnuStep found: YES\r\nBuild targets in project: 1\r\nbash-4.3# ninja-build -v\r\n[1/2] cc '-Wall' '-Wpedantic' '-Winvalid-pch' '-g' '-Istringprog.dir' '-I../' '-I.' '-MMD' '-MQ' stringprog.dir/stringprog.m.o '-MF' 'stringprog.dir/stringprog.m.o.d' -o stringprog.dir/stringprog.m.o -c ../stringprog.m\r\n[2/2] cc   -o stringprog stringprog.dir/stringprog.m.o  \r\nFAILED: cc   -o stringprog stringprog.dir/stringprog.m.o  \r\nstringprog.dir/stringprog.m.o: In function `main':\r\n/root/slave/runtests/build/test cases/objc/2 nsstring/build/../stringprog.m:5: undefined reference to `objc_get_class'\r\n/root/slave/runtests/build/test cases/objc/2 nsstring/build/../stringprog.m:5: undefined reference to `objc_msg_lookup'\r\n/root/slave/runtests/build/test cases/objc/2 nsstring/build/../stringprog.m:6: undefined reference to `objc_msg_lookup'\r\n/root/slave/runtests/build/test cases/objc/2 nsstring/build/../stringprog.m:7: undefined reference to `objc_msg_lookup'\r\nstringprog.dir/stringprog.m.o: In function `__objc_gnu_init':\r\n/root/slave/runtests/build/test cases/objc/2 nsstring/build/../stringprog.m:9: undefined reference to `__objc_exec_class'\r\nstringprog.dir/stringprog.m.o:(.data+0x80): undefined reference to `__objc_class_name_NSString'\r\ncollect2: error: ld returned 1 exit status\r\nninja: build stopped: subcommand failed.\r\n```\r\n\r\nbut when I'm doing `cc -lgnustep-base -lobjc ../stringprog.m  -o out` no linker error and it works as expected"}}