I was building a tool called Sipcrack today from source and ran into some problems. The platform I was using was ubuntu 10.04 LTS but if you are getting this error on any Ubuntu platform the solution is most likely going to be the same.
When issuing the make command to build the package I received the following error:
- root@bt:~/SIPcrack-0.3pre# make
- * Building sipcrack...
- gcc -O3 -o sipcrack wrap.o debug.o SIPcrack.c -lcrypto
- SIPcrack.c:17:26: error: openssl/md5.h: No such file or directory
- SIPcrack.c: In function ‘crack_login_data’:
- SIPcrack.c:222: error: ‘MD5_CTX’ undeclared (first use in this function)
- SIPcrack.c:222: error: (Each undeclared identifier is reported only once
- SIPcrack.c:222: error: for each function it appears in.)
- SIPcrack.c:222: error: expected ‘;’ before ‘md5_ctx’
- SIPcrack.c:257: error: ‘md5_ctx’ undeclared (first use in this function)
- make: *** [default] Error 1
The issue is that we need the development libraries for openssl.
To fix this simply:
- root@bt:~/SIPcrack-0.3pre# apt-get install libssl-dev
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following NEW packages will be installed:
- 0 upgraded, 1 newly installed, 0 to remove and 41 not upgraded.
- Need to get 0B/2,007kB of archives.
- After this operation, 5,829kB of additional disk space will be used.
- Selecting previously deselected package libssl-dev.
- (Reading database ... 69684 files and directories currently installed.)
- Unpacking libssl-dev (from .../libssl-dev_0.9.8k-7ubuntu8.6_i386.deb) ...
- Processing triggers for man-db ...
- Setting up libssl-dev (0.9.8k-7ubuntu8.6) ...
After that your source should compile if that is the only dependency that it needs.