Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make on Mac OS X 10.6.2 #6

Closed
GoogleCodeExporter opened this issue Mar 17, 2015 · 8 comments
Closed

Can't make on Mac OS X 10.6.2 #6

GoogleCodeExporter opened this issue Mar 17, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

i have done it, before i tried to compile skipfish

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant