Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14965
| Path | csiph.com!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Peng Yu <pengyu.ut@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | How to compile hashlib.c for testing? |
| Date | Wed, 26 Dec 2018 15:31:03 -0600 |
| Lines | 27 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.6332.1545859883.1284.bug-bash@gnu.org> (permalink) |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| X-Trace | usenet.stanford.edu 1545859884 23312 208.118.235.17 (26 Dec 2018 21:31:24 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash <bug-bash@gnu.org> |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=oGUA7wMsr6NXINgmQg3vr/jHl7dmcMLne+Ft39jhaus=; b=U8DpxY5SGLXqkAwtwg3OnEWclgalOHH05OUnU3Dfv4ARSsMEQNMytmRM4Nb/TDDGQN z4GW6K3w4pX0m+t2wyLXiFW3O+1w6WEfEXlDV7c2Ntbn/s8f4OjQ2F7AH3X3CednuhF2 pc48fksRkMcfqxUboKK1lyd7bK7VZ4AeXHxUQsnWTQo+gtpuL4/rg3KHninCOQhjb+2b i0i99PfZubpBp/2cNyUXNmIv314WxQiKFA9XfSLrh6dBVzbhWNpnsDtFEqqcjGL7j4rT qvz37OYZFFpKtah5ncEcNxuB2ov8cmBWcKgQQIGG05uoocdHNdg9o7WCFnoak5+5Y2N7 sFhA== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=oGUA7wMsr6NXINgmQg3vr/jHl7dmcMLne+Ft39jhaus=; b=MCDSGNw7hl/knNYIrLqRttxQDiQE2ZXeRZbcwVOhh8/dnNtWDhza75Qy6gZD2/RNE2 oB016PgVz/0W/qTkbIezr0I8MXfkA3LXjoYVCPDbGdh8osbTS2QEDzfNjAoGcmuMmUHu USaf3BatykDkK4UwbhRVhXOsNlxMyj96CC/F6GC5P7lwAlbtbKIqxuHcoSdGbEuYM6Dm N5Q0jpqm7dha3bJA7hFcwvKDF+3v4BzNcCUHYJ47Zq7gTnibLroKdtjFdAVO7I5ssSb6 /nWtsQND/mzReHrQyrszLZ7e0XsaGWy1qipiWEu7i/BEs+4oAPY5wXTb3FuO0y1cC+Qe HOJw== |
| X-Gm-Message-State | AJcUukcqW5AszBwKEYuWDzQKhZsd4vGr37YVn1Dem8Jmc3DB+G/kWbea FfajtDY5WKLVpJFI/Gv4roLXJui3RQHJymaZoYczE18r |
| X-Google-Smtp-Source | ALg8bN4QTF/6awwDxx2XCwiymA/61VzeQ/z7P8/A7IhV6FDPUnu5xZxBUDmwiar8F4t+WxuVjz7mHWJvlUJFKE1E608= |
| X-Received | by 2002:a6b:c948:: with SMTP id z69mr15976217iof.161.1545859877493; Wed, 26 Dec 2018 13:31:17 -0800 (PST) |
| X-detected-operating-system | by eggs.gnu.org: Genre and OS details not recognized. |
| X-Received-From | 2607:f8b0:4864:20::d34 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash/> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:14965 |
Show key headers only | View raw
Hi,
I'd like to compile hashlib.c to try its main(). But I got the
following error. What is the correct commands to compile it? Thanks.
$ gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"'
-DCONF_OSTYPE='"darwin17.7.0"'
-DCONF_MACHTYPE='"x86_64-apple-darwin17.7.0"' -DCONF_VENDOR='"apple"'
-DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL
-DTEST_HASHING -DHAVE_CONFIG_H -DMACOSX -I. -I. -I./include -I./lib
-I./lib/intl -I/Users/pengy/Downloads/bash-4.4/lib/intl -g -O2
-Wno-parentheses -Wno-format-security -c hashlib.c
$ gcc -c hashlib.o hashlib.exe
Undefined symbols for architecture x86_64:
"_xmalloc", referenced from:
_hash_create in hashlib.o
_hash_copy in hashlib.o
_hash_search in hashlib.o
_hash_insert in hashlib.o
_main in hashlib.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--
Regards,
Peng
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
How to compile hashlib.c for testing? Peng Yu <pengyu.ut@gmail.com> - 2018-12-26 15:31 -0600
csiph-web