Article delegate-en/4705 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:<_A4704@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Delegate SSL <-> delegate <-> ftp server
09 Dec 2009 14:34:39 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


In message <_A4704@delegate-en.ML_> on 12/09/09(21:43:53)
you "Hanard Xavier (DTSBE)" <pkijabdyi-znqnbuinoylr.ml@ml.delegate.org> wrote:
 |What i launch is:
 |make -f Makefile.QSC CC=gcc CFLAGS=-O2 -DQSC  

It should be as:

 make -f Makefile.QSC CC=gcc CFLAGS="-O2 -DQSC"

at least to let -DQSC passed to gcc as a part of CFLAGS.
(but this command line option to the make command seems ignored and needless,
because the -DQSC definition seems to be passed to the gcc command, of which
reult I can't confirm from your result of make, again)

 |Result is:
 |In file included from ../include/vsocket.h:73,
 |                 from unix.c:84:
 |/usr/include/sys/socket.h:139:1: warning: this is the location of the previous definition
 |unix.c:328: error: conflicting types for 'send_file'
 |/usr/include/sys/socket.h:736: error: previous declaration of 'send_file' was here

As gcc says, "send_file()" function seems be a system's reserved function
name in AIX.  You can escape it as the enclosed patch, renaming the name
"send_file()" to "Send_file()" in rary/unix.c, rary/windows.c and src/caps.c.
(I'll do it in the next relase (9.9.7-pre5))

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller


diff -cr dist/src/delegate9.9.7-pre4/rary/unix.c ./rary/unix.c
*** dist/src/delegate9.9.7-pre4/rary/unix.c	Wed Nov 11 11:01:56 2009
--- ./rary/unix.c	Wed Dec  9 23:10:37 2009
***************
*** 325,331 ****
  	}
  	return xcode;
  }
! int send_file(int dpid,int fd,int closesrc,int inheritable){ return -1; }
  int recv_file(int desc){ return -1; }
  
  int start_service(int ac,const char *av[])
--- 325,331 ----
  	}
  	return xcode;
  }
! int Send_file(int dpid,int fd,int closesrc,int inheritable){ return -1; }
  int recv_file(int desc){ return -1; }
  
  int start_service(int ac,const char *av[])
diff -cr dist/src/delegate9.9.7-pre4/rary/windows.c ./rary/windows.c
*** dist/src/delegate9.9.7-pre4/rary/windows.c	Wed Dec  9 11:04:59 2009
--- ./rary/windows.c	Wed Dec  9 23:13:28 2009
***************
*** 4666,4672 ****
  	return rcode;
  }
  
! int send_file(int dpid,int fd,int closesrc,int inheritable){
  	HANDLE sph,ioh,soh,dph,doh;
  	int access = 0;
  	int options = DUPLICATE_SAME_ACCESS;
--- 4666,4672 ----
  	return rcode;
  }
  
! int Send_file(int dpid,int fd,int closesrc,int inheritable){
  	HANDLE sph,ioh,soh,dph,doh;
  	int access = 0;
  	int options = DUPLICATE_SAME_ACCESS;
diff -cr dist/src/delegate9.9.7-pre4/src/caps.c ./src/caps.c
*** dist/src/delegate9.9.7-pre4/src/caps.c	Sun Dec  6 15:19:03 2009
--- ./src/caps.c	Wed Dec  9 23:10:53 2009
***************
*** 49,55 ****
  int create_service(int ac,const char *av[],PCStr(port));
  void ScanFileDefs(Connection *Conn);
  int closeServPortsX(int clear);
! int send_file(int dpid,int fd,int closesrc,int inheritable);
  void put_myconf(FILE *out);
  void put_identification(FILE *out);
  int askADMIN(FILE *out,FILE *in,PVStr(admin),int size);
--- 49,55 ----
  int create_service(int ac,const char *av[],PCStr(port));
  void ScanFileDefs(Connection *Conn);
  int closeServPortsX(int clear);
! int Send_file(int dpid,int fd,int closesrc,int inheritable);
  void put_myconf(FILE *out);
  void put_identification(FILE *out);
  int askADMIN(FILE *out,FILE *in,PVStr(admin),int size);
***************
*** 317,323 ****
  	}else
  	/* stdout.log */{
  		int xd;
! 		xd = send_file(getpid(),fileno(stdout),0,1);
  		sprintf(desc,"-IO%d",xd);
  		av[ac++] = desc;
  		av[ac] = 0;
--- 317,323 ----
  	}else
  	/* stdout.log */{
  		int xd;
! 		xd = Send_file(getpid(),fileno(stdout),0,1);
  		sprintf(desc,"-IO%d",xd);
  		av[ac++] = desc;
  		av[ac] = 0;

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