Re: problem compiling s48 on x86_64 Linux

Ivan Shmakov <[email protected]>
Newsgroups gmane.lisp.scheme.scheme48
Message-ID <[email protected]>
>>>>> Michael Sperber <[email protected]> writes:

 >> I am compiling on archlinux, here's the output of make.

 >> <<< make
 >> gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__
 >> -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I./c
 >> -I./c/bibop -g -O2 -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: exit 2
 >> make: *** [c/unix/socket.o] Error 1

 > Try compiling via

 > make CPPFLAGS=-D_GNU_SOURCE

	While it should work, I think that setting the parameters like
	CPPFLAGS above is more justified at configure-time, e. g.:

$ .../configure CPPFLAGS=-D_GNU_SOURCE ...
...
$ make 
...
$ 

	This way, no potential inconsistency between the environment in
	which the configure tests are run and the compilation
	environment could arise.

-- 
FSF associate member #7257
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.