{"action":"created","issue":{"url":"https://api.github.com/repos/cbrnrd/gpm/issues/1","repository_url":"https://api.github.com/repos/cbrnrd/gpm","labels_url":"https://api.github.com/repos/cbrnrd/gpm/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/cbrnrd/gpm/issues/1/comments","events_url":"https://api.github.com/repos/cbrnrd/gpm/issues/1/events","html_url":"https://github.com/cbrnrd/gpm/issues/1","id":365180635,"node_id":"MDU6SXNzdWUzNjUxODA2MzU=","number":1,"title":"Compilation failure: main.o undef refs in crystal openssl lib_ssl.cr","user":{"login":"Forgen","id":730747,"node_id":"MDQ6VXNlcjczMDc0Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/730747?v=4","gravatar_id":"","url":"https://api.github.com/users/Forgen","html_url":"https://github.com/Forgen","followers_url":"https://api.github.com/users/Forgen/followers","following_url":"https://api.github.com/users/Forgen/following{/other_user}","gists_url":"https://api.github.com/users/Forgen/gists{/gist_id}","starred_url":"https://api.github.com/users/Forgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Forgen/subscriptions","organizations_url":"https://api.github.com/users/Forgen/orgs","repos_url":"https://api.github.com/users/Forgen/repos","events_url":"https://api.github.com/users/Forgen/events{/privacy}","received_events_url":"https://api.github.com/users/Forgen/received_events","type":"User","site_admin":false},"labels":[{"id":1000250080,"node_id":"MDU6TGFiZWwxMDAwMjUwMDgw","url":"https://api.github.com/repos/cbrnrd/gpm/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-09-30T01:10:47Z","updated_at":"2018-10-08T04:59:29Z","closed_at":null,"author_association":"NONE","body":"**Description of the issue**:\r\nCompile failure related to lib_ssl.cr when building src/gpm/main.cr\r\n\r\n**Expected behavior**:\r\nmake install completes\r\n\r\n**Steps to reproduce**: <!-- Please provide a minimal and precise series of steps -->\r\nsudo make install\r\n\r\n**Output of `crystal env`**:\r\nCRYSTAL_CACHE_DIR=\"/home/forgen/.cache/crystal\"\r\nCRYSTAL_PATH=\"/usr/bin/../share/crystal/src:lib\"\r\nCRYSTAL_VERSION=\"0.26.1\"\r\n\r\n**OS Information**: \r\nUbuntu 18.04.1 LTS\r\nLinux aspire-e5-575 4.15.0-34-generic #37-Ubuntu SMP Mon Aug 27 15:21:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n\r\n**Additional Information**: <!-- Any additional information that may be helpful -->\r\n/usr/bin/shards\r\nFetching https://github.com/mrrooijen/commander.git\r\nUsing commander (0.3.3)\r\n/usr/bin/crystal build --release -o bin/gpm src/gpm/main.cr \r\n_main.o: In function `__crystal_main':\r\n/usr/share/crystal/src/openssl/lib_ssl.cr:213: undefined reference to `SSL_library_init'\r\n/usr/share/crystal/src/openssl/lib_ssl.cr:213: undefined reference to `SSL_load_error_strings'\r\n/usr/share/crystal/src/openssl/lib_ssl.cr:213: undefined reference to `OPENSSL_add_all_algorithms_noconf'\r\n/usr/share/crystal/src/openssl/lib_ssl.cr:213: undefined reference to `ERR_load_crypto_strings'\r\n_main.o: In function `default_method':\r\n/usr/share/crystal/src/openssl/ssl/context.cr:6: undefined reference to `SSLv23_method'\r\n_main.o: In function `matches_subject_alternative_name':\r\n/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:34: undefined reference to `sk_num'\r\n/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:35: undefined reference to `sk_value'\r\n_main.o: In function `->':\r\n/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:(.text+0x5e986): undefined reference to `sk_pop_free'\r\n_main.o: In function `matches_subject_alternative_name':\r\n/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:66: undefined reference to `sk_pop_free'\r\n_main.o: In function `validate_hostname':\r\n/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:(.text+0x5ea77): undefined reference to `sk_pop_free'\r\n_main.o: In function `matches_subject_alternative_name':\r\n/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:66: undefined reference to `sk_pop_free'\r\n_main.o: In function `->':\r\n/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:67: undefined reference to `sk_free'\r\n/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:67: undefined reference to `sk_free'\r\n/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:67: undefined reference to `sk_free'\r\n/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:67: undefined reference to `sk_free'\r\n/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:67: undefined reference to `sk_free'\r\n_main.o:/usr/share/crystal/src/openssl/ssl/hostname_validation.cr:67: more undefined references to `sk_free' follow\r\ncollect2: error: ld returned 1 exit status\r\nError: execution of command failed with code: 1: `cc \"${@}\" -o '/home/forgen/temp/gpm/bin/gpm'  -rdynamic  -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` -lpcre -lm -lgc -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`\r\nMakefile:7: recipe for target 'build' failed\r\nmake: *** [build] Error 1\r\n\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/cbrnrd/gpm/issues/comments/427722215","html_url":"https://github.com/cbrnrd/gpm/issues/1#issuecomment-427722215","issue_url":"https://api.github.com/repos/cbrnrd/gpm/issues/1","id":427722215,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzcyMjIxNQ==","user":{"login":"Forgen","id":730747,"node_id":"MDQ6VXNlcjczMDc0Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/730747?v=4","gravatar_id":"","url":"https://api.github.com/users/Forgen","html_url":"https://github.com/Forgen","followers_url":"https://api.github.com/users/Forgen/followers","following_url":"https://api.github.com/users/Forgen/following{/other_user}","gists_url":"https://api.github.com/users/Forgen/gists{/gist_id}","starred_url":"https://api.github.com/users/Forgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Forgen/subscriptions","organizations_url":"https://api.github.com/users/Forgen/orgs","repos_url":"https://api.github.com/users/Forgen/repos","events_url":"https://api.github.com/users/Forgen/events{/privacy}","received_events_url":"https://api.github.com/users/Forgen/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T04:59:29Z","updated_at":"2018-10-08T04:59:29Z","author_association":"NONE","body":"I have been installing the openssl package.  I fubar'd my ubuntu so I reinstalled Ubuntu 18, then installed the matching set of libssl, libssl-dev, and openssl to your version:\r\nlibssl1.1_1.1.0h-4_amd64.deb  \r\nlibssl-dev_1.1.0h-4_amd64.deb  \r\nopenssl_1.1.0h-1_amd64.deb\r\n\r\nIdentical result.\r\n\r\nFor completeness, here is the sequence of things that were installed from the fresh ubuntu install (in addition to the packages above):\r\n\r\n``~$ curl -fsSL https://git.io/get-gpm | sudo bash\r\nThe crystal compiler is not installed. Installing...\r\nExecuting: /tmp/apt-key-gpghome.DwqDmvlI4d/gpg.1.sh --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54\r\ngpg: key 09617FD37CC06B54: public key \"Crystal Distribution Signing <dist-sign@crystal-lang.org>\" imported\r\ngpg: Total number processed: 1\r\ngpg:               imported: 1\r\nHit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease\r\nHit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease\r\nGet:3 https://dist.crystal-lang.org/apt crystal InRelease [2,478 B]     \r\nHit:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease             \r\nHit:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease\r\nGet:6 https://dist.crystal-lang.org/apt crystal/main amd64 Packages [440 B]\r\nGet:7 https://dist.crystal-lang.org/apt crystal/main i386 Packages [447 B]\r\nFetched 3,365 B in 2s (2,130 B/s) \r\nReading package lists... Done\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nThe following additional packages will be installed:\r\n  cpp cpp-7 dpkg-dev fakeroot g++ g++-7 gcc gcc-7 gcc-7-base git git-man\r\n  libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl\r\n  libasan4 libatomic1 libc-dev-bin libc6-dev libcilkrts5 liberror-perl\r\n  libevent-core-2.1-6 libevent-dev libevent-extra-2.1-6 libevent-openssl-2.1-6\r\n  libevent-pthreads-2.1-6 libfakeroot libgcc-7-dev libitm1 liblsan0 libmpx2\r\n  libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libquadmath0\r\n  libstdc++-7-dev libtsan0 libubsan0 linux-libc-dev make manpages-dev\r\nSuggested packages:\r\n  cpp-doc gcc-7-locales libxml2-dev libgmp-dev libyaml-dev libreadline-dev\r\n  debian-keyring g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg\r\n  gcc-multilib autoconf automake libtool flex bison gcc-doc gcc-7-multilib\r\n  libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan4-dbg\r\n  liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg\r\n  libquadmath0-dbg git-daemon-run | git-daemon-sysvinit git-doc git-el\r\n  git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn glibc-doc\r\n  libstdc++-7-doc make-doc\r\nThe following NEW packages will be installed:\r\n  build-essential crystal dpkg-dev fakeroot g++ g++-7 gcc gcc-7 git git-man\r\n  libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl\r\n  libasan4 libatomic1 libc-dev-bin libc6-dev libcilkrts5 liberror-perl\r\n  libevent-core-2.1-6 libevent-dev libevent-extra-2.1-6 libevent-openssl-2.1-6\r\n  libevent-pthreads-2.1-6 libfakeroot libgcc-7-dev libitm1 liblsan0 libmpx2\r\n  libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libquadmath0\r\n  libstdc++-7-dev libtsan0 libubsan0 linux-libc-dev make manpages-dev\r\nThe following packages will be upgraded:\r\n  cpp cpp-7 gcc-7-base\r\n3 upgraded, 40 newly installed, 0 to remove and 185 not upgraded.\r\n\r\n~$ curl -fsSL https://git.io/get-gpm | sudo bash\r\n/usr/bin/crystal\r\nCloning into 'gpm'...\r\nremote: Enumerating objects: 57, done.\r\nremote: Counting objects: 100% (57/57), done.\r\nremote: Compressing objects: 100% (22/22), done.\r\nremote: Total 202 (delta 42), reused 46 (delta 35), pack-reused 145\r\nReceiving objects: 100% (202/202), 3.03 MiB | 1.34 MiB/s, done.\r\nResolving deltas: 100% (86/86), done.\r\nBuilding gpm...\r\n/usr/bin/shards\r\nFetching https://github.com/mrrooijen/commander.git\r\nInstalling commander (0.3.3)\r\n/usr/bin/crystal build --release -o bin/gpm src/gpm/main.cr \r\n/usr/bin/ld: cannot find -lz (this usually means you need to install the development package for libz)\r\ncollect2: error: ld returned 1 exit status\r\nError: execution of command failed with code: 1: `cc \"${@}\" -o '/home/forgen/gpm/bin/gpm'  -rdynamic  -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` -lpcre -lm -lgc -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`\r\nMakefile:7: recipe for target 'build' failed\r\nmake: *** [build] Error 1\r\n\r\n:~$ sudo apt install zlib1g-dev\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nThe following NEW packages will be installed:\r\n  zlib1g-dev\r\n0 upgraded, 1 newly installed, 0 to remove and 185 not upgraded.\r\n"}}
{"actor":{"display_login":"Forgen"}}