paros22 / skipfish

Automatically exported from code.google.com/p/skipfish
0 stars 0 forks source link

Can't make on Mac OS X 10.6.2 #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Instead of compiling i see this:

verigon:skipfish test$ sudo make
Password:
cc skipfish.c -o skipfish -Wall -funsigned-char -g -ggdb
-D_FORTIFY_SOURCE=0 -O3 -Wno-format http_client.c database.c crawler.c
analysis.c report.c -lcrypto -lssl -lidn -lz
http_client.c:38:18: error: idna.h: No such file or directory
http_client.c: In function ‘parse_url’:
http_client.c:275: warning: implicit declaration of function 
‘idna_to_ascii_8z’
http_client.c:275: error: ‘IDNA_SUCCESS’ undeclared (first use in this
function)
http_client.c:275: error: (Each undeclared identifier is reported only once
http_client.c:275: error: for each function it appears in.)
report.c: In function ‘copy_static_code’:
report.c:744: warning: passing argument 3 of ‘scandir’ from incompatible
pointer type
make: *** [skipfish] Error 1

What version of the product are you using? On what operating system?

Developer Information:

  Version:  3.2 (10M2003)
  Location: /Developer
  Applications:
  Xcode:    3.2.1 (1613)
  Interface Builder:    3.2.1 (740)
  Instruments:  2.0.1 (1096)
  Dashcode: 3.0 (328)
  SDKs:
  Mac OS X:
  10.5: (9J61)
  10.6: (10M2003)

Original issue reported on code.google.com by frag...@gmail.com on 20 Mar 2010 at 10:44

GoogleCodeExporter commented 9 years ago
Compile libidn from source (http://ftp.gnu.org/gnu/libidn/libidn-1.18.tar.gz).

Original comment by adml...@gmail.com on 20 Mar 2010 at 1:54

GoogleCodeExporter commented 9 years ago
i have done it, before i tried to compile skipfish

Original comment by frag...@gmail.com on 20 Mar 2010 at 1:56

GoogleCodeExporter commented 9 years ago
I have same problem on 10.6.2 and after compliling libidn-1.18 from source:

  $report.c:744: warning: passing argument 3 of ‘scandir’ from incompatible pointer type

Original comment by mkapy...@gmail.com on 20 Mar 2010 at 2:43

GoogleCodeExporter commented 9 years ago
Please compile and *install* libidn from source. Please confirm that idna.h is 
in the 
include path. This is not a problem in skipfish.

Original comment by lcam...@gmail.com on 20 Mar 2010 at 3:20

GoogleCodeExporter commented 9 years ago
In report.c, change line 711:

static int copy_asset(const struct dirent* d) {
to
static int copy_asset(struct dirent* d) {

Compile with:
CC=/usr/bin/gcc make

Original comment by patrick....@terreactive.ch on 22 Mar 2010 at 12:28

GoogleCodeExporter commented 9 years ago
everything is ok, thank you. i've just compiled this version of libdn
http://ftp.gnu.org/gnu/libidn/libidn-1.18.tar.gz

Original comment by frag...@gmail.com on 22 Mar 2010 at 8:29

GoogleCodeExporter commented 9 years ago
I had this problem consistently when compiling this on my Mac OS X 10.6.2 now 
10.6.3, until I did what 
Comment 5 (by Patrick) suggested.

1. CnP the line with: static int copy_asset(const struct dirent* d) {
2. Comment out the line: /*static int copy_asset(const struct dirent* d) {*/
3. Remove 'const' from the copied line to: static int copy_asset(struct dirent* 
d) {
4. make clean all

Original comment by rava...@gmail.com on 2 Apr 2010 at 3:46

GoogleCodeExporter commented 9 years ago
I made the change suggested in comment 5 and the installation worked fine.
Thanks for the tip!

Original comment by simondo...@gmail.com on 29 Jul 2010 at 3:50