Article delegate-en/656 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A655@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: 5.9.10 compile error
10 Dec 1999 12:15:35 GMT ysato@etl.go.jp (Yutaka Sato)


In message <_A655@delegate-en.ML_> on 12/10/99(20:23:06)
you Hans-Joachim Baader <pr4babdyi-bfkmiccn6c3r.ml@ml.delegate.org> wrote:
 |5.9.10 is the first version ever that fails to compile correctly here...
 |My system is Linux 2.0.36, libc5.
 |include/yselect.h attempts to include <sys/select.h> which doesn't
 |exist. I commented it out, but later the link failed with
 |../lib/libdelegate.a(thruwayd.o): In function `bsocks_init':
 |thruwayd.o(.text+0xad9): undefined reference to `expand_fdset'

Older Linux seems to need <sys/time.h> for FD_SETSIZE, thus the
enclosed patch for "include/yselect.h" will do.
Please do make from scrach, otherwise before redoing make, remove
"lib/libsubst.a" and object file "*/*.o" of which source file
include "yselect.h" 

Cheers,
Yutaka
--
Yutaka Sato <ysato@etl.go.jp> http://www.etl.go.jp/~ysato/   @ @ 
Computer Science Division, Electrotechnical Laboratory      ( - )
1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan            _<   >_


*** yselect.h.orig	Thu Dec  2 17:43:03 1999
--- yselect.h	Fri Dec 10 08:09:36 1999
***************
*** 7,13 ****
--- 7,16 ----
  #ifdef _MSC_VER
  #include <winsock.h>
  #else
+ #include <sys/time.h>
+ #ifndef FD_SETSIZE
  #include <sys/select.h>
+ #endif
  #endif
  #endif
  #endif

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V