Opened 3 weeks ago

#1432 new defect

Build error on Cygwin after randomness merge

Reported by: evhan Owned by:
Priority: major Milestone: 5.0
Component: compiler Version: 5.0
Keywords: randomness, cygwin, windows Cc:
Estimated difficulty:


Some include headers are missing on Cygwin, causing this error during the build process:

gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -c -Os -fomit-frame-pointer  -DC_BUILDING_LIBCHICKEN runtime.c -o runtime-static.o -I. -I./
runtime.c: In function random_urandom:
runtime.c:12553:10: warning: implicit declaration of function open [-Wimplicit-function-declaration]
     fd = open("/dev/urandom", O_RDONLY);
runtime.c:12553:31: error: O_RDONLY undeclared (first use in this function)
     fd = open("/dev/urandom", O_RDONLY);
runtime.c:12553:31: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [rules.make:125: runtime-static.o] Error 1
make[1]: Leaving directory '/home/evhan/chicken-5-cygwin-x86'
make: *** [rules.make:986: boot-chicken] Error 2

Output of uname -a (same happens on x86):

CYGWIN_NT-6.1-WOW windows 2.6.1(0.305/5/3) 2016-12-16 11:50 i686 Cygwin

Change History (0)

Note: See TracTickets for help on using tickets.