[Ecls-list] Re: sockets interface

R. Mattes rm at mh-freiburg.de
Wed Feb 9 03:29:35 UTC 2005


On Mon, 07 Feb 2005 20:32:40 +0100, Julian Stecklina wrote:

> Hello,
> 
> here is the proposed port of sb-bsd-sockets. It is not complete yet.
> There are some sockopt-* functions missing, and there is no support for
> local (unix file) sockets. It also needs heavy cleanup. ;)
> 
> But if anyone wants to try: Please do so and share your experience.
> 
> (And be warned that your code will leak file descriptors if you do not
> call socket-close or close...)

Ok, here's the error report of a first shot at compiling your code:

 ;;; Calling the C compiler...
 ;;; Invoking external command: gcc -g -O2 -fPIC -D_THREAD_SAFE
 -fstrict-aliasing -Dlinux -O "-I/usr/local/lib/ecl//h" -w -c
 "ecl-sockets.c" -o "ecl-sockets.o"
 ecl-sockets.c: In function `L56':
 ecl-sockets.c:1625: error: `SO_REUSEPORT' undeclared (first use in this
 function) ecl-sockets.c:1625: error: (Each undeclared identifier is
 reported only once ecl-sockets.c:1625: error: for each function it
 appears
 in.) ecl-sockets.c: In function `L57': ecl-sockets.c:1637: error:
 `SO_REUSEPORT' undeclared (first use in this function)

SO_REUSEPORT seems to be BSD-specific. As a quick fix i suggest the
following:

- (define-sockopt sockopt-reuse-port "SO_REUSEPORT" bool)
+ #-LINUX(define-sockopt sockopt-reuse-port "SO_REUSEPORT" bool)
 


 cheers Ralf Mattes
> Regards,






More information about the ecl-devel mailing list