{"action":"created","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/1684","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/1684/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/1684/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/1684/events","html_url":"https://github.com/conan-io/conan/issues/1684","id":253933779,"number":1684,"title":"How can I have libstdc++ version and glibc version in profile","user":{"login":"oblique","id":194040,"avatar_url":"https://avatars2.githubusercontent.com/u/194040?v=4","gravatar_id":"","url":"https://api.github.com/users/oblique","html_url":"https://github.com/oblique","followers_url":"https://api.github.com/users/oblique/followers","following_url":"https://api.github.com/users/oblique/following{/other_user}","gists_url":"https://api.github.com/users/oblique/gists{/gist_id}","starred_url":"https://api.github.com/users/oblique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblique/subscriptions","organizations_url":"https://api.github.com/users/oblique/orgs","repos_url":"https://api.github.com/users/oblique/repos","events_url":"https://api.github.com/users/oblique/events{/privacy}","received_events_url":"https://api.github.com/users/oblique/received_events","type":"User","site_admin":false},"labels":[{"id":293864766,"url":"https://api.github.com/repos/conan-io/conan/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-30T09:26:34Z","updated_at":"2017-08-31T08:40:36Z","closed_at":"2017-08-31T08:40:36Z","author_association":"NONE","body":"Consider this code:\r\n\r\n```\r\n#include <stdio.h>\r\n\r\nint main() {\r\n    char buf[100];\r\n    FILE *f = fmemopen(buf, sizeof(buf), \"r\");\r\n    fclose(f);\r\n}\r\n```\r\n\r\nIf you compile this on ArchLinux and then try to run it on Centos 7 you will get\r\n\r\n```\r\na.out: /lib64/libc.so.6: version `GLIBC_2.22' not found (required by a.out)\r\n```\r\n\r\nArchLinux now has GCC version 7.1. This version can be installed in Centos 7 manually.\r\nAlso most of the time distributions have different glibc versions and you can have this kind of error.\r\n\r\nIn my development environment I have this issue. I can workaround it if I manually clone all my dependencies and add to them `package_id`.\r\n\r\nI don't like the above workaround, so I'm trying to do it by editing only my consumers' `conanfile.py`. I couldn't find any way to inform my dependencies about the new `self.info.settings.compiler.version`. Also I couldn't find a way to add this in profile instead.\r\n\r\nThe same goes with libstdc++. You can get their versions with:\r\n\r\n```\r\nstrings /usr/lib/libc.so.6 | grep '^GLIBC_\\([0-9.]\\)' | sort -u -V | tail -n1\r\nstrings /usr/lib/libstdc++.so | grep '^GLIBCXX_\\([0-9.]\\)' | sort -u -V | tail -n1\r\n```\r\n\r\nAny suggestions?"},"comment":{"url":"https://api.github.com/repos/conan-io/conan/issues/comments/326230210","html_url":"https://github.com/conan-io/conan/issues/1684#issuecomment-326230210","issue_url":"https://api.github.com/repos/conan-io/conan/issues/1684","id":326230210,"user":{"login":"oblique","id":194040,"avatar_url":"https://avatars2.githubusercontent.com/u/194040?v=4","gravatar_id":"","url":"https://api.github.com/users/oblique","html_url":"https://github.com/oblique","followers_url":"https://api.github.com/users/oblique/followers","following_url":"https://api.github.com/users/oblique/following{/other_user}","gists_url":"https://api.github.com/users/oblique/gists{/gist_id}","starred_url":"https://api.github.com/users/oblique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblique/subscriptions","organizations_url":"https://api.github.com/users/oblique/orgs","repos_url":"https://api.github.com/users/oblique/repos","events_url":"https://api.github.com/users/oblique/events{/privacy}","received_events_url":"https://api.github.com/users/oblique/received_events","type":"User","site_admin":false},"created_at":"2017-08-31T08:40:36Z","updated_at":"2017-08-31T08:40:36Z","author_association":"NONE","body":"Cool! Thanks a lot."}}
{"actor":{"display_login":"oblique"}}