Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14968 > unrolled thread
| Started by | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| First post | 2018-12-27 13:27 -0500 |
| Last post | 2018-12-27 13:27 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How to compile hashlib.c for testing? Chet Ramey <chet.ramey@case.edu> - 2018-12-27 13:27 -0500
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Date | 2018-12-27 13:27 -0500 |
| Subject | Re: How to compile hashlib.c for testing? |
| Message-ID | <mailman.6404.1545935256.1284.bug-bash@gnu.org> |
On 12/26/18 4:31 PM, Peng Yu wrote: > 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. Think about the error message: > "_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 So you need a definition for xmalloc. The easiest thing to do is to add an xmalloc function in the TEST_HASHING block, or you could follow the directions in the comment there. Sooner or later, you're going to have to pick this stuff up on your own. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Back to top | Article view | gnu.bash.bug
csiph-web