Building fails: ntlmssp.cc: undefined reference to `ntlm_create_hash(...`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- c
- Domain
- build-system
Research direction
Start by tracing the ntlm_create_hash reference from ntlmssp.cc and checking which source file should provide its definition and whether that file is included in the link command shown in the report. Reproduce the build on Raspbian 9 if possible and compare the relevant build configuration. Done when the build links successfully and the reported undefined reference is resolved.
Written by the indexing model from the issue text.
Description
Build fails on raspbian 9 (stretch) with the followiing error:
ntlmssp.o: In function `ntlmssp_generate_blob(auth_data*, unsigned char*, int, unsigned char**, unsigned short*)':
ntlmssp.cc:(.text+0x19c): undefined reference to `ntlm_create_hash(char const*, unsigned char*)'
Any ideas what could be the problem?
full log:
~/ncrack/ncrack-0.7 $ make
Compiling libnbase
cd nbase && make
make[1]: Entering directory '/home/pi/ncrack/ncrack-0.7/nbase'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/pi/ncrack/ncrack-0.7/nbase'
Compiling libnsock
cd nsock/src && make
make[1]: Entering directory '/home/pi/ncrack/ncrack-0.7/nsock/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/pi/ncrack/ncrack-0.7/nsock/src'
Compiling modules
cd modules && make
make[1]: Entering directory '/home/pi/ncrack/ncrack-0.7/modules'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/pi/ncrack/ncrack-0.7/modules'
make ncrack
make[1]: Entering directory '/home/pi/ncrack/ncrack-0.7'
Compiling Ncrack...
rm -f ncrack
g++ -Lnbase -Lnsock/src -o ncrack ncrack.o utils.o TargetGroup.o Target.o targets.o NcrackOps.o Service.o ServiceGroup.o Connection.o services.o timing.o ncrack_error.o output.o ncrack_tty.o Buf.o NcrackOutputTable.o ncrack_input.o ncrack_resume.o crypto.o http.o http_digest.o xml.o ntlmssp.o modules/ncrack_ftp.o modules/ncrack_telnet.o modules/ncrack_http.o modules/ncrack_pop3.o modules/ncrack_vnc.o modules/ncrack_redis.o modules/ncrack_owa.o modules/ncrack_imap.o modules/ncrack_cassandra.o modules/ncrack_mssql.o modules/ncrack_cvs.o modules/ncrack_wordpress.o modules/ncrack_joomla.o modules/ncrack_dicom.o modules/ncrack_mqtt.o -lnsock -lnbase
ntlmssp.o: In function `ntlmssp_generate_blob(auth_data*, unsigned char*, int, unsigned char**, unsigned short*)':
ntlmssp.cc:(.text+0x19c): undefined reference to `ntlm_create_hash(char const*, unsigned char*)'
collect2: error: ld returned 1 exit status
Makefile:67: recipe for target 'ncrack' failed
make[1]: *** [ncrack] Error 1
make[1]: Leaving directory '/home/pi/ncrack/ncrack-0.7'
Makefile:64: recipe for target 'all' failed
make: *** [all] Error 2
- Dominant language
- C
- Stars
- 1.2k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nmap/ncrack
-
13/03/2006Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
Build failure with OpenSSL 4.0Possibly taken @vmpyr claimed this 121 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
' Hydra brute force a Wordpress admin login hydra -L usernames.txt -P passwords.txt $ip smb -V -fOpen
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
error C3861Open
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Similar issues
-
severity: low
Difficulty 1/5 Under an hour Newbie friendliness 72/100
luainkernel/lunatik#2727 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 6 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bot-triaged module: cuda module: memory usage module: pybind module: tensor creation triaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pytorch/pytorch#206707 · 1 comment ·
Maintainers usually reply within 1 day
-
area/build-framework kind/enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
yugabyte/yugabyte-db#39342 ·
Maintainers usually reply within 1 day