30 Jun 20:46
scheme48-1.8 and --as-needed, DESTDIR, -D_GNU_SOURCE
From: Panagiotis Christopoulos <pchrist <at> gentoo.org>
Subject: scheme48-1.8 and --as-needed, DESTDIR, -D_GNU_SOURCE
Newsgroups: gmane.lisp.scheme.scheme48
Date: 2008-06-30 18:49:00 GMT
Subject: scheme48-1.8 and --as-needed, DESTDIR, -D_GNU_SOURCE
Newsgroups: gmane.lisp.scheme.scheme48
Date: 2008-06-30 18:49:00 GMT
Hi scheme48's developers, Recently, in gentoo, after upgrading to glibc-2.8, we experienced some bugs in compilation time of scheme48-1.8. The first had to do with headers: <cut> i686-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"i686-pc-linux-gnu\" -I ./c -I./c -I./c/bibop -O2 -march=i686 -pipe -pthread -o c/unix/socket.o c/unix/socket.c c/unix/socket.c: In function ‘gethostbyname_thread’: c/unix/socket.c:354: error: ‘struct hostent’ has no member named ‘h_addr’ c/unix/socket.c: In function ‘s48_get_host_by_name’: c/unix/socket.c:385: error: ‘struct hostent’ has no member named ‘h_addr’ make: *** [c/unix/socket.o] Error 1 make: *** Waiting for unfinished jobs.... </cut> This happens because the new header /usr/include/netdb.h does now: #if defined __USE_MISC || defined __USE_GNU # define h_addr h_addr_list[0] /* Address, for backward # compatibility.*/ #endif and to be __USE_GNU defined, "-D_GNU_SOURCE" must be added to the default $(DEFS).(Continue reading)
RSS Feed