[GH-ISSUE #379] FreeBSD build errors #115

Closed
opened 2026-10-14 02:53:23 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @bizonix on GitHub (Sep 28, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/379

FreeBSD 8.4-RELEASE-p4

gcc -c -Wall -Wdeclaration-after-statement -O2 -fomit-frame-pointer -I/usr/local/include `pkg-config 2>/dev/null --cflags nss` `pkg-config 2>/dev/null --exists nss && echo -DHAVE_NSS` `find 2>&1 /usr/include /usr/local/include -name "gmp.h" | grep -q "gmp.h" && echo -DHAVE_GMP` `find 2>&1 /usr/include/ /usr/local/include/ -name "krb5.h" | grep -q "krb5.h" && echo -DHAVE_KRB5`    -funroll-loops krb5-18_fmt.c -o krb5-18_fmt.o

krb5-18_fmt.c:63: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'krb5_c_string_to_key_with_params'
krb5-18_fmt.c: In function 'crypt_all':
krb5-18_fmt.c:211: warning: implicit declaration of function 'krb5_c_string_to_key_with_params'
krb5-18_fmt.c:214: error: 'krb5_keyblock' has no member named 'length'
krb5-18_fmt.c:215: error: 'krb5_keyblock' has no member named 'contents'
krb5-18_fmt.c:216: error: 'krb5_keyblock' has no member named 'contents'
krb5-18_fmt.c:217: error: 'krb5_keyblock' has no member named 'contents'
krb5-18_fmt.c:218: error: 'krb5_keyblock' has no member named 'contents'
g++  -Wall vncpcap2john.cpp -lpcap -o ../run/vncpcap2john
In file included from /usr/include/netinet/if_ether.h:37,
                 from vncpcap2john.cpp:36:
/usr/include/net/if_arp.h:88: error: field 'arp_pa' has incomplete type
/usr/include/net/if_arp.h:89: error: field 'arp_ha' has incomplete type
Originally created by @bizonix on GitHub (Sep 28, 2013). Original GitHub issue: https://github.com/openwall/john/issues/379 FreeBSD 8.4-RELEASE-p4 1) ``` gcc -c -Wall -Wdeclaration-after-statement -O2 -fomit-frame-pointer -I/usr/local/include `pkg-config 2>/dev/null --cflags nss` `pkg-config 2>/dev/null --exists nss && echo -DHAVE_NSS` `find 2>&1 /usr/include /usr/local/include -name "gmp.h" | grep -q "gmp.h" && echo -DHAVE_GMP` `find 2>&1 /usr/include/ /usr/local/include/ -name "krb5.h" | grep -q "krb5.h" && echo -DHAVE_KRB5` -funroll-loops krb5-18_fmt.c -o krb5-18_fmt.o krb5-18_fmt.c:63: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'krb5_c_string_to_key_with_params' krb5-18_fmt.c: In function 'crypt_all': krb5-18_fmt.c:211: warning: implicit declaration of function 'krb5_c_string_to_key_with_params' krb5-18_fmt.c:214: error: 'krb5_keyblock' has no member named 'length' krb5-18_fmt.c:215: error: 'krb5_keyblock' has no member named 'contents' krb5-18_fmt.c:216: error: 'krb5_keyblock' has no member named 'contents' krb5-18_fmt.c:217: error: 'krb5_keyblock' has no member named 'contents' krb5-18_fmt.c:218: error: 'krb5_keyblock' has no member named 'contents' ``` 2) ``` g++ -Wall vncpcap2john.cpp -lpcap -o ../run/vncpcap2john In file included from /usr/include/netinet/if_ether.h:37, from vncpcap2john.cpp:36: /usr/include/net/if_arp.h:88: error: field 'arp_pa' has incomplete type /usr/include/net/if_arp.h:89: error: field 'arp_ha' has incomplete type ```
Author
Owner

@bizonix commented on GitHub (Sep 28, 2013):

to fix this issue need install security/krb5 from ports and apply this patch

diff --git a/src/vncpcap2john.cpp b/src/vncpcap2john.cpp
index bb01458..ecf4667 100644
--- a/src/vncpcap2john.cpp
+++ b/src/vncpcap2john.cpp
@@ -32,6 +32,7 @@
 #include <stdexcept>
 #include <string>
 #include <vector>
+#include <sys/socket.h>
 #include <arpa/inet.h>
 #include <netinet/if_ether.h>
 #include <netinet/in.h>
<!-- gh-comment-id:25303812 --> @bizonix commented on GitHub (Sep 28, 2013): to fix this issue need install `security/krb5` from ports and apply this patch ``` diff --git a/src/vncpcap2john.cpp b/src/vncpcap2john.cpp index bb01458..ecf4667 100644 --- a/src/vncpcap2john.cpp +++ b/src/vncpcap2john.cpp @@ -32,6 +32,7 @@ #include <stdexcept> #include <string> #include <vector> +#include <sys/socket.h> #include <arpa/inet.h> #include <netinet/if_ether.h> #include <netinet/in.h> ```
Author
Owner

@kholia commented on GitHub (Sep 29, 2013):

I have added this information in commit 5a3f34791d. Thanks!

<!-- gh-comment-id:25316348 --> @kholia commented on GitHub (Sep 29, 2013): I have added this information in commit 5a3f34791d657a225208b71339b6361b70cd8e2d. Thanks!
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#115
No description provided.