HTTrack Website Copier
Free software offline browser - FORUM
Subject: OSX Compile problem & soln
Author: Ken Luke
Date: 03/29/2006 20:48
 
I ran into the following compile error while compiling httrack 3.40.1 on Mac
OSX 10.4.5:

In file included from htsweb.c:67:
htsserver.h: In function 'linputsoc':
htsserver.h:125: warning: implicit declaration of function 'recv'
htsserver.h:125: warning: nested extern declaration of 'recv'
In file included from /usr/include/netinet/in.h:78,
                 from /usr/include/netdb.h:86,
                 from htsnet.h:56,
                 from htslib.h:48,
                 from htscore.h:75,
                 from htsweb.h:41,
                 from htsweb.c:68:
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:566: error: conflicting types for 'recv'
htsserver.h:125: error: previous implicit declaration of 'recv' was here
htsweb.c: In function 'main':
htsweb.c:185: warning: pointer targets in passing argument 1 of 'domd5mem'
differ in signedness
htsweb.c:185: warning: pointer targets in passing argument 3 of 'domd5mem'
differ in signedness
make[2]: *** [htsweb.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2





To fix this, I just added:
#include <sys/socket.h>

to file htsserver.h and the compile was successful.


 
Reply


All articles

Subject Author Date
OSX Compile problem & soln

03/29/2006 20:48




9

Created with FORUM 2.0.11