[GH-ISSUE #604] AC: Separate libpcap flags from main flags #275

Closed
opened 2026-10-14 02:59:33 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @magnumripper on GitHub (May 26, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/604

Current autoconf script will result in john being dynamically linked with pcap (if found), even though pcap is only used with vncpcap2john and SIPdump. This is not the end of the world but it would be nicer to enumerate a separate LDFLAGS_PCAP that are only used (added) for these two targets.

OTOH we could now (at least once we ditch support for the legacy Makefile) make vncpcap2john and SIPdump symlinks to john, like most other converters. Not that I like that much.

Originally created by @magnumripper on GitHub (May 26, 2014). Original GitHub issue: https://github.com/openwall/john/issues/604 Current autoconf script will result in john being dynamically linked with pcap (if found), even though pcap is only used with vncpcap2john and SIPdump. This is not the end of the world but it would be nicer to enumerate a separate LDFLAGS_PCAP that are only used (added) for these two targets. OTOH we could now (at least once we ditch support for the legacy Makefile) make vncpcap2john and SIPdump symlinks to john, like most other converters. Not that I like that much.
bsakaguchi 2026-10-14 02:59:33 +07:00
Author
Owner

@jfoug commented on GitHub (May 26, 2014):

I thought I had mentioned the ln -s already. We did not b4 due to having no good way to tell at compile time. Now we do.

<!-- gh-comment-id:44222086 --> @jfoug commented on GitHub (May 26, 2014): I thought I had mentioned the ln -s already. We did not b4 due to having no good way to tell at compile time. Now we do.
Author
Owner

@magnumripper commented on GitHub (May 26, 2014):

We also have uaf2john, tgtsnarf, raw2dyna, mkvcalcproba, genmkvpwd, calc_stat and luks2john as candidates for symlinking (cprepair can't be, it changes unicode.c behavior through a -Dmacro). Although I really don't get why everything should be linked to john. I like separate little binaries.

<!-- gh-comment-id:44224201 --> @magnumripper commented on GitHub (May 26, 2014): We also have uaf2john, tgtsnarf, raw2dyna, mkvcalcproba, genmkvpwd, calc_stat and luks2john as candidates for symlinking (cprepair can't be, it changes unicode.c behavior through a -Dmacro). Although I really don't get why everything should be linked to john. I like separate little binaries.
Author
Owner

@jfoug commented on GitHub (May 27, 2014):

Since WE know that pcap is only used for 2 ancillrary helper files ,we certainly could keep it away from jtr CFLAGS/LDFLAGS, and add it to those 2 helper targets.

As for stand alone, I much prefer that myself, but solar appears to be under the kitchen sink model, where there is one ginormous exe file, that uses is runtime name as a argument. I personally think it is a silly concept, since there ARE dynamic libs on almost all systems now. This was pre-dyna days, when having 3 20mb disks was all you had (and that was a big system). Some have maintained that mentality, even though it really does not make sense any more. It makes for a much fatter exe file, longer load times, and makes it harder to debug.

<!-- gh-comment-id:44226496 --> @jfoug commented on GitHub (May 27, 2014): Since WE know that pcap is only used for 2 ancillrary helper files ,we certainly could keep it away from jtr CFLAGS/LDFLAGS, and add it to those 2 helper targets. As for stand alone, I much prefer that myself, but solar appears to be under the kitchen sink model, where there is one ginormous exe file, that uses is runtime name as a argument. I personally think it is a silly concept, since there ARE dynamic libs on almost all systems now. This was pre-dyna days, when having 3 20mb disks was all you had (and that was a big system). Some have maintained that mentality, even though it really does not make sense any more. It makes for a much fatter exe file, longer load times, and makes it harder to debug.
Author
Owner

@magnumripper commented on GitHub (May 27, 2014):

So we could revert it a little, to just inlining the core tools unshadow, unafs & unique and have all Jumbo helpers separate binaries. After all, this is technically a fork of Jumbo. I think we should.

<!-- gh-comment-id:44239443 --> @magnumripper commented on GitHub (May 27, 2014): So we could revert it a little, to just inlining the core tools unshadow, unafs & unique and have all Jumbo helpers separate binaries. After all, this is technically a fork of Jumbo. I think we should.
Author
Owner

@magnumripper commented on GitHub (May 27, 2014):

Another benefit of that is that if a helper tool has build problems, you'd still end up with a perfectly working john. We just have to ensure the helpers are listed last.

<!-- gh-comment-id:44239562 --> @magnumripper commented on GitHub (May 27, 2014): Another benefit of that is that if a helper tool has build problems, you'd still end up with a perfectly working john. We just have to ensure the helpers are listed last.
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#275
No description provided.