apple / ccs-calendarserver

The Calendar and Contacts Server.
https://www.calendarserver.org
Apache License 2.0
484 stars 136 forks source link

Compile error at ./bin/develop #512

Open meera opened 6 years ago

meera commented 6 years ago

I am trying to run

./bin/develop

I am getting following error message. I am using Python 2.7

...... .....

config.status: executing libtool commands /Library/Developer/CommandLineTools/usr/bin/make all-recursive Making all in . /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./compat -I./include -I./include -I/Users/myhome/CalendarServer/ccs-calendarserver/.develop/roots/libevent/include -g -O2 -Wall -fno-strict-aliasing -Wno-deprecated-declarations -MT http.lo -MD -MP -MF .deps/http.Tpo -c -o http.lo http.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./compat -I./include -I./include -I/Users/myhome/CalendarServer/ccs-calendarserver/.develop/roots/libevent/include -g -O2 -Wall -fno-strict-aliasing -Wno-deprecated-declarations -MT http.lo -MD -MP -MF .deps/http.Tpo -c http.c -fno-common -DPIC -o .libs/http.o http.c:500:13: error: variable has incomplete type 'struct tm' struct tm cur; ^ http.c:500:10: note: forward declaration of 'struct tm' struct tm cur; ^ http.c:503:14: warning: implicit declaration of function 'time' is invalid in C99 [-Wimplicit-function-declaration] time_t t = time(NULL); ^ http.c:507:3: warning: implicit declaration of function 'gmtime_r' is invalid in C99 [-Wimplicit-function-declaration] gmtime_r(&t, &cur); ^ http.c:510:7: warning: implicit declaration of function 'strftime' is invalid in C99 [-Wimplicit-function-declaration] if (strftime(date, sizeof(date), ^ 3 warnings and 1 error generated. make[2]: [http.lo] Error 1 make[1]: [all-recursive] Error 1 make: *** [all] Error 2