Article delegate-en/4718 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]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Delegate - AIX 6.1 Compilation Errors
17 Dec 2009 04:54:22 GMT Antonio Hernandez Jr <payjabdyi-6cfuxbvnso3r.ml@ml.delegate.org>


Hi Yutaka,

I think we have successfully compiled it!
Wonderful!
Please se the result snippets.

################
        ./dg.exe -Fver
--
DeleGate/9.9.7-pre8 (December 16, 2009)
AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165, H18PRO-443
Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI
Copyright (c) 2001-2009 National Institute of Advanced Industrial Science
and Technology (AIST)
--
FTP: <URL:ftp://ftp.delegate.org/pub/DeleGate/>
WWW: <URL:http://www.delegate.org/>
Mail:<URL:mailto:feedback@delegate.org>
     <URL:http://www.delegate.org/feedback/>
Config: AIX/1; FileSize-Bits=32/64,32/32,32,32; socket=16384/16384;
sockpair=16384/16384,1016++u; char=unsigned; thread=PThread/pthread,72/128;
pam=1; stty=tcsetattr; addr=A/20012BB8/2FF08FF8
ADMIN=guest@Server
DGROOT=/home/guest/delegate
-- ERROR: can't link the SSL/Crypto library.
-- Hint: use -vl option to trace the required library,
--- find it (ex. libssl.so.X.Y.Z) under /usr/lib or /lib,
--- then set the library version as DYLIB='+,lib*.so.X.Y.Z'
Usage: add -vv option to trace the library search
--
################
        "/home/guest/delegate9.9.7-pre8/mkmake.exe" -cksum Makefile  auth.h
hostlist.h  param.h  param.h  service.h  filter.h
        "/home/guest/delegate9.9.7-pre8/mkmake.exe"
-cksum ../maker/mkmake.c
[/home/guest/delegate9.9.7-pre8/src]cksum(../maker/mkmake.c)
        cp -f -p dg.exe delegated.sign
        ./dg.exe -Fesign -s -w delegated.sign
-- ERROR: can't link the SSL/Crypto library.
-- Hint: use -vl option to trace the required library,
--- find it (ex. libssl.so.X.Y.Z) under /usr/lib or /lib,
--- then set the library version as DYLIB='+,lib*.so.X.Y.Z'
-- src Sign? 9.9.7-pre8:20091216101438
+0900:e6b8163b9f92edf2:Author@DeleGate.ORG
-- bld Sign> 9.9.7-pre8 000000000X f66f20f25b8b3ccf (guest@Server)
** NG, this executable is not built from the original code
-- File MD5: 3fe4e810a13aa1e77cfde6f5288ba3dd
old> 9.9.7-pre8 2009121713 0000000000000000 (none@nowhere)
new> 9.9.7-pre8 2000000000 Xfe4e810a13aa1e7 (guest@Server)
-rwx------  1 guest Server  5117177 Dec 17 13:36 delegated.sign
        mv -f delegated.sign delegated
Target "start2" is up to date.
================
        "src/dg.exe" "-Fsrcmd5" -f srcfiles -type f
source MD5 = f66f20f25b8b3ccfb518d3ffb22e8d3d
*** BAD, spoofed or forged, not original code by DeleGate.ORG
        "src/dg.exe" "-Fcksum" -x -c -f srcfiles
Total-file-line-byte-csum: 499 264645 6767477 1EE013E2 Server
================
        sh make-fin.sh
/home/guest/delegate/pid/8715 not found
PIDFILE AIX Server
$
$ cd src
$ ./delegated
Warning: unknown parameter: CFLAGS
Warning: unknown parameter: LDOPTS
Warning: unknown parameter: CFLAGSPLUS
DeleGate/9.9.7-pre8 (December 16, 2009)
AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165, H18PRO-443
Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI
Copyright (c) 2001-2009 National Institute of Advanced Industrial Science
and Technology (AIST)
--
FTP: <URL:ftp://ftp.delegate.org/pub/DeleGate/>
WWW: <URL:http://www.delegate.org/>
Mail:<URL:mailto:feedback@delegate.org>
     <URL:http://www.delegate.org/feedback/>
Config: AIX/1; FileSize-Bits=32/64,32/32,32,32; socket=16384/16384;
sockpair=16384/16384,1016++u; char=unsigned; thread=PThread/pthread,72/128;
pam=1; stty=tcsetattr; addr=A/20012BB8/2FF02B58
--
DGROOT=/home/guest/delegate
Do configuration ? y / [n] :

$

Thank you very much!

Antonio "Mark" Hernandez, Jr.



                                                                           
             feedback@delegate                                             
             .org (Yutaka                                                  
             Sato)                                                      To 
                                       feedback@delegate.org               
             2009/12/17 11:38                                           cc 
                                       Antonio Hernandez                   
                                       Jr/Japan/Contr/IBM@IBMJP            
             Please respond to                                     Subject 
             feedback@delegate         Re: [DeleGate-En] Delegate - AIX    
                   .org                6.1 Compilation Errors              
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hi,

In message
<_A4716@delegate-en.ML_> on
12/17/09(11:28:49)
you Antonio Hernandez Jr <payjabdyi-6cfuxbvnso3r.ml@ml.delegate.org> wrote:
 |Hi Yutaka,,
 |
 |It says of "conflicting types for 'thread_wait'".
 |
 |
 |$ nm -A maker/*.o | grep Thread
 |maker/nothread.o: .getThreadIds        T           0
 |maker/nothread.o: ThreadExit           D          76
 |maker/nothread.o: ThreadFork           D          60
 |maker/nothread.o: ThreadId             D          68
 |maker/nothread.o: ThreadWait           D          72
 |maker/nothread.o: ThreadYield          D          64
 |maker/nothread.o: WithThread           D          56
 |maker/nothread.o: getThreadIds         D          44
 |maker/nothread.o: getThreadIds         d          44          12
 |
 |
 |$ gcc -c -O2 -DQSC -Igen -Iinclude maker/__pthread_create.c
 |maker/__pthread_create.c:147: error: conflicting types for 'thread_wait'
 |/usr/include/sys/thread.h:1002: error: previous declaration of
 |'thread_wait' was here
 |
 |$ gcc -c -O2 -DQSC -Igen -Iinclude maker/__pthread_kill.c
 |maker/__pthread_kill.c:22: error: conflicting types for 'thread_kill'
 |/usr/include/sys/thread.h:972: error: previous declaration of
'thread_kill'
 |was here

Oh, I see.
Then renaming "thread_wait" to "_thread_wait" in __pthread_create.c and
"thread_kill" to "_thread_kill" in __ptheread_kill.c will fix the error.

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 -c
dist/src/delegate9.9.7-pre8/maker/__pthread_create.c ./maker/__pthread_create.c

*** dist/src/delegate9.9.7-pre8/maker/__pthread_create.c           Tue Aug
25 19:24:12 2009
--- ./maker/__pthread_create.c             Thu Dec 17 11:34:22 2009
***************
*** 144,150 ****
  /*
  static int thread_wait(pthread_t tid,int timeout){
  */
! static int thread_wait(int tid,int timeout){
             pthread_t tha;
             int ser;
             int err;
--- 144,150 ----
  /*
  static int thread_wait(pthread_t tid,int timeout){
  */
! static int _thread_wait(int tid,int timeout){
             pthread_t tha;
             int ser;
             int err;
***************
*** 187,196 ****
  const char *WithThread = "PThread";
  /*
  pthread_t (*ThreadFork)(int,const char*,IFUNCP,...) = thread_fork;
! int (*ThreadWait)(int,int) = (int(*)(int,int))thread_wait;
  */
  int (*ThreadFork)(int,const char*,IFUNCP,...) = thread_fork;
! int (*ThreadWait)(int,int) = thread_wait;
  int (*ThreadYield)() = thread_yield;
  void (*ThreadExit)(void *code) = thread_exit;

--- 187,196 ----
  const char *WithThread = "PThread";
  /*
  pthread_t (*ThreadFork)(int,const char*,IFUNCP,...) = thread_fork;
! int (*ThreadWait)(int,int) = (int(*)(int,int))_thread_wait;
  */
  int (*ThreadFork)(int,const char*,IFUNCP,...) = thread_fork;
! int (*ThreadWait)(int,int) = _thread_wait;
  int (*ThreadYield)() = thread_yield;
  void (*ThreadExit)(void *code) = thread_exit;

diff -c
dist/src/delegate9.9.7-pre8/maker/__pthread_kill.c ./maker/__pthread_kill.c
*** dist/src/delegate9.9.7-pre8/maker/__pthread_kill.c             Mon Aug
17 14:12:45 2009
--- ./maker/__pthread_kill.c         Thu Dec 17 11:35:03 2009
***************
*** 1,7 ****
  #include "ystring.h"
  #include "sysconf.h"
  #include "log.h"
! #if defined(__cplusplus) && !defined(DG_WITH_PTHREAD)
             // and if -lpthread is not confirmed to be available
             // then this module should not be included
             // (as in small installation of FreeBSD 4)
--- 1,7 ----
  #include "ystring.h"
  #include "sysconf.h"
  #include "log.h"
! #if defined(__cplusplus) && !defined(DG_WITH_PTHREAD) && !defined
(__CYGWIN__)
             // and if -lpthread is not confirmed to be available
             // then this module should not be included
             // (as in small installation of FreeBSD 4)
***************
*** 19,25 ****
   */
  const void *toThd(int tid,int del,int *ser);

! static int thread_kill(unsigned int tidi,int sig){
             pthread_t tid;
             /*
             tid = (pthread_t)tidi;
--- 19,25 ----
   */
  const void *toThd(int tid,int del,int *ser);

! static int _thread_kill(unsigned int tidi,int sig){
             pthread_t tid;
             /*
             tid = (pthread_t)tidi;
***************
*** 39,48 ****
             }
             return pthread_kill(tid,sig);
  }
! int (*ThreadKill)(int,int) = (int(*)(int,int))thread_kill;

  static int thread_destroy(unsigned int tidi){
!            return thread_kill(tidi,999);
  }
  int (*ThreadDestroy)(int) = (int(*)(int))thread_destroy;

--- 39,48 ----
             }
             return pthread_kill(tid,sig);
  }
! int (*ThreadKill)(int,int) = (int(*)(int,int))_thread_kill;

  static int thread_destroy(unsigned int tidi){
!            return _thread_kill(tidi,999);
  }
  int (*ThreadDestroy)(int) = (int(*)(int))thread_destroy;




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