[GH-ISSUE #1750] Issues compiling gpg2john on Linux #1159

Closed
opened 2026-10-14 03:37:26 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @gpguser on GitHub (Sep 11, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1750

I just installed the latest version of JohnTheRipper from this repository on a clean Ubuntu machine. I followed the exact installation instructions from INSTALL-UBUNTU and managed to compile JTR without any issues. However I would like to compile gpg2john but this fails with:

mpicc -g  -L/usr/local/lib  -DHAVE_MPI  gpg2john.o   -o gpg2john
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 21
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_line): relocation 0 has invalid symbol index 2
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
gpg2john.o: In function `inflate_gzip':
/home/tom/john/src/gpg2john.c:2709: undefined reference to `inflate'
/home/tom/john/src/gpg2john.c:2722: undefined reference to `inflateEnd'
gpg2john.o: In function `encrypted_Secret_Key':
/home/tom/john/src/gpg2john.c:2344: undefined reference to `strnzcpy'
/home/tom/john/src/gpg2john.c:2339: undefined reference to `jtr_basename'
/home/tom/john/src/gpg2john.c:2339: undefined reference to `strip_suffixes'
/home/tom/john/src/gpg2john.c:2340: undefined reference to `strnzcpy'
gpg2john.o: In function `Compressed_Data_Packet':
/home/tom/john/src/gpg2john.c:2876: undefined reference to `inflateInit_'
/home/tom/john/src/gpg2john.c:2871: undefined reference to `inflateInit2_'
gpg2john.o: In function `plain_Secret_Key':
/home/tom/john/src/gpg2john.c:2260: undefined reference to `strnzcpy'
/home/tom/john/src/gpg2john.c:2261: undefined reference to `jtr_basename'
gpg2john.o: In function `gpg2john':
/home/tom/john/src/gpg2john.c:357: undefined reference to `strnzcpy'
/home/tom/john/src/gpg2john.c:354: undefined reference to `jtr_basename'
/home/tom/john/src/gpg2john.c:354: undefined reference to `strip_suffixes'
/home/tom/john/src/gpg2john.c:355: undefined reference to `strnzcpy'
collect2: error: ld returned 1 exit status
make: *** [gpg2john] Error 1

I configured the compilation with ./configure and ./configure --enable-mpi and in both cases it failed.

Originally created by @gpguser on GitHub (Sep 11, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1750 I just installed the latest version of JohnTheRipper from this repository on a clean Ubuntu machine. I followed the exact installation instructions from `INSTALL-UBUNTU` and managed to compile JTR without any issues. However I would like to compile `gpg2john` but this fails with: ``` mpicc -g -L/usr/local/lib -DHAVE_MPI gpg2john.o -o gpg2john /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 21 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_line): relocation 0 has invalid symbol index 2 /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' gpg2john.o: In function `inflate_gzip': /home/tom/john/src/gpg2john.c:2709: undefined reference to `inflate' /home/tom/john/src/gpg2john.c:2722: undefined reference to `inflateEnd' gpg2john.o: In function `encrypted_Secret_Key': /home/tom/john/src/gpg2john.c:2344: undefined reference to `strnzcpy' /home/tom/john/src/gpg2john.c:2339: undefined reference to `jtr_basename' /home/tom/john/src/gpg2john.c:2339: undefined reference to `strip_suffixes' /home/tom/john/src/gpg2john.c:2340: undefined reference to `strnzcpy' gpg2john.o: In function `Compressed_Data_Packet': /home/tom/john/src/gpg2john.c:2876: undefined reference to `inflateInit_' /home/tom/john/src/gpg2john.c:2871: undefined reference to `inflateInit2_' gpg2john.o: In function `plain_Secret_Key': /home/tom/john/src/gpg2john.c:2260: undefined reference to `strnzcpy' /home/tom/john/src/gpg2john.c:2261: undefined reference to `jtr_basename' gpg2john.o: In function `gpg2john': /home/tom/john/src/gpg2john.c:357: undefined reference to `strnzcpy' /home/tom/john/src/gpg2john.c:354: undefined reference to `jtr_basename' /home/tom/john/src/gpg2john.c:354: undefined reference to `strip_suffixes' /home/tom/john/src/gpg2john.c:355: undefined reference to `strnzcpy' collect2: error: ld returned 1 exit status make: *** [gpg2john] Error 1 ``` I configured the compilation with `./configure` and `./configure --enable-mpi` and in both cases it failed.
Author
Owner

@magnumripper commented on GitHub (Sep 12, 2015):

What version of Ubuntu is this?

<!-- gh-comment-id:139690769 --> @magnumripper commented on GitHub (Sep 12, 2015): What version of Ubuntu is this?
Author
Owner

@gpguser commented on GitHub (Sep 12, 2015):

I am using Ubuntu 14.04

Actually I just realized that when I typed

make

it also compiled gpg2john. The error above just occurs when typing make gpg2john

<!-- gh-comment-id:139739883 --> @gpguser commented on GitHub (Sep 12, 2015): I am using Ubuntu 14.04 Actually I just realized that when I typed ``` make ``` it also compiled `gpg2john`. The error above just occurs when typing `make gpg2john`
Author
Owner

@magnumripper commented on GitHub (Sep 12, 2015):

Oh, OK. That's simply not supported.

<!-- gh-comment-id:139744217 --> @magnumripper commented on GitHub (Sep 12, 2015): Oh, OK. That's simply not supported.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1159
No description provided.