Revision 1426 does not compile on Cygwin

Bug #205988 reported by leppie
2
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Fix Committed
Medium
Abdulaziz Ghuloum

Bug Description

make[3]: Entering directory `/home/leppie/ikarus.dev/src'
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -DNDEBUG -O3 -Wall -m32 -MT ikarus-io.o -MD -MP -MF .deps/ikarus-io.Tpo -c -o ikarus-io.o ikarus-io.c
ikarus-io.c: In function `ikrt_listen':
ikarus-io.c:225: error: storage size of 'servaddr' isn't known
ikarus-io.c:226: error: invalid application of `sizeof' to incomplete type `sockaddr_in'
ikarus-io.c:228: warning: implicit declaration of function `htonl'
ikarus-io.c:228: error: `INADDR_ANY' undeclared (first use in this function)
ikarus-io.c:228: error: (Each undeclared identifier is reported only once
ikarus-io.c:228: error: for each function it appears in.)
ikarus-io.c:229: warning: implicit declaration of function `htons'
ikarus-io.c:225: warning: unused variable `servaddr'
make[3]: *** [ikarus-io.o] Error 1
make[3]: Leaving directory `/home/leppie/ikarus.dev/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/leppie/ikarus.dev/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/leppie/ikarus.dev'
make: *** [all] Error 2

More hints:
configure:8798: checking for getaddrinfo
configure:8854: gcc -o conftest.exe -g -O2 -DNDEBUG -O3 -Wall -m32 -Wl,-E -Wl,--export-all-symbols -m32 conftest.c -lgmp -lgmp >&5
/cygdrive/c/Users/leppie/AppData/Local/Temp/cc7UpBOi.o: In function `main':
/home/leppie/ikarus.dev/conftest.c:98: undefined reference to `_getaddrinfo'
collect2: ld returned 1 exit status
configure:8860: $? = 1
configure: failed program was:

Revision history for this message
leppie (leppie) wrote :
Revision history for this message
leppie (leppie) wrote :

./configure seems to not see this as a fatal error, and carried on creating makefiles.

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Fixed in 1427. There was a missing #include <netinet/in.h> in ikarus-io.h.

Changed in ikarus:
assignee: nobody → aghuloum
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

BTW, autoconf does not signal errors by default. It only records the things it cannot find so that you can work around them using #ifdefs if you want. You can make it signal an error if you want to. In this case, there was just a missing header file, so, nothing serious was needed.

Changed in ikarus:
milestone: none → 0.0.4
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.