Article delegate-en/4710 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
16 Dec 2009 07:03:14 GMT Antonio Hernandez Jr <payjabdyi-re5dixqzuhtr.ml@ml.delegate.org>


Hello Yutaka,

Thank for your response.
I used gcc and I tried to recompile again and stops at
rary and if I use the file src/delegated.conf to compile I am receiving
Undefined Symbols.

Regards,

Antonio "Mark" Hernandez, Jr.

*************************************::

$tar zxvpf delegate9.9.6.tar.gz
...

$ cd delegate9.9.6
$ ls
CHANGES        Makefile.QSC   cksums         include        mkmkmk.c
srcfiles
COPYRIGHT      README         dgcaps.h       lib            pds
srcsign.c
CREDITS        README.5-6     doc            link-wince.sh  putsigned.c
srcvrfy
DG9note.html   README.7-8     filters        make-fin.sh    rary
subin
INSTALL        README.MAKE    fsx            make-init.sh   resolvy
teleport
IPv6NOTE.txt   bench          gen            maker          src
Makefile       bin            id.shtml       mimekit        src-srcsign.c

$ make -f Makefile.QSC
        make -f Makefile  CC="cc"  CFLAGS="-DQSC -O2          "
CFLAGSPLUS=""  LDOPTS=""
        cc -DMKMKMK -DDEFCC=\"cc\" -I../gen -I../include -DQSC -O2
-L../lib mkmkmk.c -o mkmkmk.exe
/usr/bin/sh: cc:  not found
make: The error code from the last command is 127.


Stop.
make: The error code from the last command is 2.


Stop.
$ ls
CHANGES        Makefile.QSC   cksums         include        mkmkmk.c
srcfiles
COPYRIGHT      README         dgcaps.h       lib            pds
srcsign.c
CREDITS        README.5-6     doc            link-wince.sh  putsigned.c
srcvrfy
DG9note.html   README.7-8     filters        make-fin.sh    rary
subin
INSTALL        README.MAKE    fsx            make-init.sh   resolvy
teleport
IPv6NOTE.txt   bench          gen            maker          src
Makefile       bin            id.shtml       mimekit        src-srcsign.c


$ vi Makefile.QSC
"Makefile.QSC" 19 lines, 909 characters
###############################################################################
# Making DeleGate without C++ but retaining "QS" capability
#                                                                091123
Y.Sato
###############################################################################

# if your MAKE program does not take definitions from the command line,
# the following definitions need to be written into "src/DELEGATE_CONF".
CC = gcc
CFLAGS = -DQSC -O2 -m64 -DSTAT64         ## add "-MD" for icc, "-m64" for
64bits CPU,
                            ##     "-DSTAT64" for huge file support on
Linux
LDOPTS =                    ## add "-MD" for icc, "-m64" for 64bits CPU
CFLAGSPLUS =                ## to be empty

all:;make -f Makefile \
        CC="$(CC)" \
        CFLAGS="$(CFLAGS)" \
        CFLAGSPLUS="$(CFLAGSPLUS)" \
        LDOPTS="$(LDOPTS)"
###############################################################################

$make -f Makefile.QSC
......

  gcc -DQSC -O2    -I../gen -I../include -DQSC -O2  -c hostaddr.c -o
hostaddr.o
In file included from ../include/vsocket.h:74,
                 from hostaddr.c:22:
../include/ysocket.h:69:1: warning: "accept" redefined
In file included from ../include/vsocket.h:73,
                 from hostaddr.c:22:
/usr/include/sys/socket.h:140:1: warning: this is the location of the
previous definition
In file included from hostaddr.c:22:
../include/vsocket.h:98:1: warning: "getsockname" redefined
In file included from ../include/vsocket.h:73,
                 from hostaddr.c:22:
/usr/include/sys/socket.h:142:1: warning: this is the location of the
previous definition
In file included from hostaddr.c:22:
../include/vsocket.h:99:1: warning: "getpeername" redefined
In file included from ../include/vsocket.h:73,
                 from hostaddr.c:22:
/usr/include/sys/socket.h:141:1: warning: this is the location of the
previous definition
In file included from hostaddr.c:22:
../include/vsocket.h:100:1: warning: "recvfrom" redefined
In file included from ../include/vsocket.h:73,
                 from hostaddr.c:22:
/usr/include/sys/socket.h:139:1: warning: this is the location of the
previous definition
        gcc -DQSC -O2    -I../gen -I../include -DQSC -O2  -c socks5.c -o
socks5.o
In file included from ../include/vsocket.h:74,
                 from socks5.c:27:
../include/ysocket.h:69:1: warning: "accept" redefined
In file included from ../include/vsocket.h:73,
                 from socks5.c:27:
/usr/include/sys/socket.h:140:1: warning: this is the location of the
previous definition
In file included from socks5.c:27:
../include/vsocket.h:98:1: warning: "getsockname" redefined
In file included from ../include/vsocket.h:73,
                 from socks5.c:27:
/usr/include/sys/socket.h:142:1: warning: this is the location of the
previous definition
In file included from socks5.c:27:
../include/vsocket.h:99:1: warning: "getpeername" redefined
In file included from ../include/vsocket.h:73,
                 from socks5.c:27:
/usr/include/sys/socket.h:141:1: warning: this is the location of the
previous definition
In file included from socks5.c:27:
../include/vsocket.h:100:1: warning: "recvfrom" redefined
In file included from ../include/vsocket.h:73,
                 from socks5.c:27:
/usr/include/sys/socket.h:139:1: warning: this is the location of the
previous definition
        gcc -DQSC -O2    -I../gen -I../include -DQSC -O2  -c cfilib.c -o
cfilib.o
        gcc -DQSC -O2    -I../gen -I../include -DQSC -O2  -c wince.c -o
wince.o
        gcc -DQSC -O2    -I../gen -I../include -DQSC -O2  -c winmo.c -o
winmo.o
        gcc -DQSC -O2    -I../gen -I../include -DQSC -O2  -c winsspi.c -o
winsspi.o
        gcc -DQSC -O2    -I../gen -I../include -DQSC -O2  -c winnat.c -o
winnat.o
        gcc -DQSC -O2    -I../gen -I../include -DQSC -O2  -c unix.c -o
unix.o
In file included from unix.c:84:
../include/vsocket.h:98:1: warning: "getsockname" redefined
In file included from ../include/vsocket.h:73,
                 from unix.c:84:
/usr/include/sys/socket.h:142:1: warning: this is the location of the
previous definition
In file included from unix.c:84:
../include/vsocket.h:99:1: warning: "getpeername" redefined
In file included from ../include/vsocket.h:73,
                 from unix.c:84:
/usr/include/sys/socket.h:141:1: warning: this is the location of the
previous definition
In file included from unix.c:84:
../include/vsocket.h:100:1: warning: "recvfrom" redefined
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:749: error: previous declaration of 'send_file'
was here
In file included from unix.c:685:
windows0.c: In function 'signedChar':
windows0.c:245: warning: comparison is always false due to limited range of
data type
make: The error code from the last command is 1.


Stop.
make: The error code from the last command is 2.


Stop.
mkmake: ERROR LOG is left at /home/guest/delegate9.9.6/rary/mkmake.err
mkmake: ERROR LOG is left at /home/guest/delegate9.9.6/rary/mkmake.err
make: The error code from the last command is 2.


Stop.
make: The error code from the last command is 2.


Stop.
mkmake: ERROR LOG is left at /home/guest/delegate9.9.6/src/mkmake.err
mkmake: ERROR LOG is left at /home/guest/delegate9.9.6/src/mkmake.err
make: The error code from the last command is 2.


Stop.
make: The error code from the last command is 2.


Stop.

$

$ cat /home/guest/delegate9.9.6/rary/mkmake.err
        *** exit(2): -makeat at /home/guest/delegate9.9.6/rary
        [0] make
        [1] libx
        [2] MAKE=/usr/bin/make
        [3] SHELL=/usr/bin/sh
        [4] CC=gcc
        [5] CFLAGS=-DQSC -O2
        [6] HDRDIR=-I../gen -I../include -DQSC -O2
        [7] RANLIB=/usr/bin/ranlib
        [8] LDFLAGS= -L../lib
        [9] LIBDIR=-L../lib
        [10] NETLIB=-lnsl -ldl -lpthread -lpam
        [11] AR=ar
        [12] TAR=tar
        [13] MKMAKE=/home/guest/delegate9.9.6/mkmake.exe
        [14] MKBASE=/home/guest/delegate9.9.6
        [15] MKMKMK=/home/guest/delegate9.9.6/mkmkmk.exe

        *** exit(2): -makeat at /home/guest/delegate9.9.6/rary
        [0] /home/guest/delegate9.9.6/mkmake.exe
        [1] ../lib/library.a
        [2] ../rary
        [3] library.a
        [4] make
        [5] libx
        [6] MAKE=make
        [7] SHELL=/usr/bin/sh
        [8] CC=gcc
        [9] CFLAGS=-DQSC -O2
        [10] HDRDIR=-I../gen -I../include -DQSC -O2
        [11] RANLIB=/usr/bin/ranlib
        [12] LDFLAGS= -L../lib
        [13] LIBDIR=-L../lib
        [14] NETLIB=-lnsl -ldl -lpthread -lpam
        [15] AR=ar
        [16] TAR=tar

**********************

via src/delegated.conf

$vi src/delegated.conf
## delegated.conf
ADMIN=guest@localhost
CFLAGS=-02 -DQSC
LDOPTS=
CFLAGSPLUS=
-vQ
-vq
TIMEOUT=shutout:60
~

$make CC=gcc


....

       /usr/bin/ranlib ../lib/libdelegate.a
        "/home/guest/delegate9.9.6/mkmake.exe" -touch
"../lib/libdelegate.a"
        gcc -O2 -x c++ -DQS  -I../gen -I../include -O -c embed.c
-DADMINPASS=\"\" -DADMIN=\"guest@Server\"  -DIMPSIZE=10000
        gcc  -L../lib -o ./embed embed.o
version.o ../srcsign.o  ../lib/library.a ../lib/libcfi.a ../lib/libmimekit.a ../lib/libmd5.a
  -lnsl -ldl -lpthread -lpam -lstdc++ -lc ../lib/libsubst.a
ld: 0711-224 WARNING: Duplicate symbol: .sigblock
ld: 0711-224 WARNING: Duplicate symbol: .sigsetmask
ld: 0711-224 WARNING: Duplicate symbol: _gotOOB
ld: 0711-224 WARNING: Duplicate symbol: .connRESETbypeer()
ld: 0711-224 WARNING: Duplicate symbol: .connHUP()
ld: 0711-224 WARNING: Duplicate symbol: .PollIn_HUP(int)
ld: 0711-224 WARNING: Duplicate symbol: .PollInsOuts(int, int, int*, int*,
int*)
ld: 0711-224 WARNING: Duplicate symbol: .PollOut(int, int)
ld: 0711-224 WARNING: Duplicate symbol: .withOOB(int)
ld: 0711-224 WARNING: Duplicate symbol: .PollIns(int, int, int*, int*)
ld: 0711-224 WARNING: Duplicate symbol: .PollIn1(int, int)
ld: 0711-224 WARNING: Duplicate symbol: .Uname(char const*, int, char
const*, int, char const*)
ld: 0711-224 WARNING: Duplicate symbol: .alloca_call(AllocaArg*)
ld: 0711-224 WARNING: Duplicate symbol: .INHERENT_alloca()
ld: 0711-224 WARNING: Duplicate symbol: .Usleep(int)
ld: 0711-224 WARNING: Duplicate symbol: .spawnvp(int, char const*, char
const* const*)
ld: 0711-224 WARNING: Duplicate symbol: .pam_authenticate
ld: 0711-224 WARNING: Duplicate symbol: .dlopen
ld: 0711-224 WARNING: Duplicate symbol: .dlsym
ld: 0711-224 WARNING: Duplicate symbol: .dlclose
ld: 0711-224 WARNING: Duplicate symbol: .dlerror
ld: 0711-224 WARNING: Duplicate symbol: .pam_end
ld: 0711-224 WARNING: Duplicate symbol: .pam_start
ld: 0711-224 WARNING: Duplicate symbol: .yp_get_default_domain
ld: 0711-224 WARNING: Duplicate symbol: .yp_match
ld: 0711-224 WARNING: Duplicate symbol: .inet_aton
ld: 0711-224 WARNING: Duplicate symbol: inGzip
ld: 0711-224 WARNING: Duplicate symbol: FL_F_Gzip
ld: 0711-224 WARNING: Duplicate symbol: FL_L_Gzip
ld: 0711-224 WARNING: Duplicate symbol: .UNlock(int)
ld: 0711-224 WARNING: Duplicate symbol: .EXlockNB(int)
ld: 0711-224 WARNING: Duplicate symbol: .EXlockB(int)
ld: 0711-224 WARNING: Duplicate symbol: .SHlockNB(int)
ld: 0711-224 WARNING: Duplicate symbol: .SHlockB(int)
ld: 0711-224 WARNING: Duplicate symbol: .INHERENT_fchmod()
ld: 0711-224 WARNING: Duplicate symbol: .strdup
ld: 0711-224 WARNING: Duplicate symbol: .setferror(char const*, int, FILE*)
ld: 0711-224 WARNING: Duplicate symbol: .INHERENT_fchown()
ld: 0711-224 WARNING: Duplicate symbol: .INHERENT_link()
ld: 0711-224 WARNING: Duplicate symbol: .strfRusage(char const*, int, char
const*, int, char const*, char const*, int, char const*)
ld: 0711-224 WARNING: Duplicate symbol: lock_ext
ld: 0711-224 WARNING: Duplicate symbol: .Ftello(FILE*)
ld: 0711-224 WARNING: Duplicate symbol: .Fseeko(FILE*, long long, int)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
ld: 0711-317 ERROR: Undefined symbol: .bcopy(void const*, void*, unsigned
long)
ld: 0711-317 ERROR: Undefined symbol: .Xgetsockname(int, sockaddr*, int*)
ld: 0711-317 ERROR: Undefined symbol: .bcmp(void const*, void const*,
unsigned long)
ld: 0711-317 ERROR: Undefined symbol: .Xgetpeername(int, sockaddr*, int*)
ld: 0711-317 ERROR: Undefined symbol: .Xgetsockopt(int, int, int, void*,
int*)
ld: 0711-317 ERROR: Undefined symbol: .flock
ld: 0711-317 ERROR: Undefined symbol: .Xaccept(int, sockaddr*, int*)
ld: 0711-317 ERROR: Undefined symbol: .RES_gethostbyaddr(char const*, int,
int)
ld: 0711-317 ERROR: Undefined symbol: .RES_gethostbyname(char const*)
ld: 0711-317 ERROR: Undefined symbol: .Xrecvfrom(int, void*, unsigned long,
int, sockaddr*, int*)
ld: 0711-317 ERROR: Undefined symbol: .SRCIFfor(DGCtx*, char const*, char
const*, int, char const*, int, char const*, int, char const*, int*)
ld: 0711-317 ERROR: Undefined symbol: .gethostaddrX(char const*)
ld: 0711-317 ERROR: Undefined symbol: .CTX_auth(DGCtx*, char const*, char
const*)
ld: 0711-317 ERROR: Undefined symbol: .GetViaSocks(DGCtx*, char const*,
int)
ld: 0711-317 ERROR: Undefined symbol: .bindViaSocks(DGCtx*, char const*,
int, char const*, int, char const*, int, char const*, int*)
ld: 0711-317 ERROR: Undefined symbol: .acceptViaSocks(int, char const*,
int, char const*, int, char const*, int*)
ld: 0711-317 ERROR: Undefined symbol: .serverPid()
ld: 0711-317 ERROR: Undefined symbol: .VSA_getViaSocksX(DGCtx*, char
const*, int, VSAddr*, AuthInfo03*, VSAddr*)
ld: 0711-317 ERROR: Undefined symbol: MIME_setPosterMasks
ld: 0711-317 ERROR: Undefined symbol: MIME_makeAdminKey
ld: 0711-317 ERROR: Undefined symbol: MIME_mapPosterAddr
ld: 0711-317 ERROR: Undefined symbol: MIME_makeEmailCX
ld: 0711-317 ERROR: Undefined symbol: MIME_makeEmailFP
ld: 0711-317 ERROR: Undefined symbol: MIME_mapMessageId
ld: 0711-317 ERROR: Undefined symbol: .sv1log(char const*, ...)
ld: 0711-317 ERROR: Undefined symbol: .builtin_filter(char const*, char
const*, FILE*, FILE*, FILE*, FILE*)
ld: 0711-317 ERROR: Undefined symbol: .systemFilter(char const*, FILE*,
FILE*)
ld: 0711-317 ERROR: Undefined symbol: .sv1vlog(char const*, ...)
ld: 0711-317 ERROR: Undefined symbol: .simple_relayf(FILE*, FILE*)
ld: 0711-317 ERROR: Undefined symbol: .Gunzip(char const*, FILE*)
ld: 0711-317 ERROR: Undefined symbol: .system_CGI(char const*, char const*,
char const*, char const*, int, char const*, int, char const*, char const*,
FILE*, FILE*)
ld: 0711-317 ERROR: Undefined symbol: .genheadf(char const*, char const*,
int, char const*, int, char const*, int)
ld: 0711-317 ERROR: Undefined symbol: .HTTP_putMIMEmsg(DGCtx*, FILE*,
FILE*)
ld: 0711-317 ERROR: Undefined symbol: .dirfopen(char const*, char const*,
int, char const*, int, char const*, char const*)
ld: 0711-317 ERROR: Undefined symbol: .reverseMOUNT(DGCtx*, char const*,
int, char const*, int, char const*, int)
ld: 0711-317 ERROR: Undefined symbol: .gotSIGPIPE()
ld: 0711-317 ERROR: Undefined symbol: .fgetBuffered(char const*, int, char
const*, int, char const*, int, FILE*)
ld: 0711-317 ERROR: Undefined symbol: .str_isStr(FILE*)
ld: 0711-317 ERROR: Undefined symbol: .malloc(int)
ld: 0711-317 ERROR: Undefined symbol: .free(void*)
ld: 0711-317 ERROR: Undefined symbol: .kill(int, int)
ld: 0711-317 ERROR: Undefined symbol: .open(char*, int)
ld: 0711-317 ERROR: Undefined symbol: .close(int)
ld: 0711-317 ERROR: Undefined symbol: .getpid()
ld: 0711-317 ERROR: Undefined symbol: .setgid(int)
ld: 0711-317 ERROR: Undefined symbol: .setuid(int)
ld: 0711-317 ERROR: Undefined symbol: .strlen(char const*)
ld: 0711-317 ERROR: Undefined symbol: .strncmp(char const*, char const*,
unsigned int)
ld: 0711-317 ERROR: Undefined symbol: .fork()
ld: 0711-317 ERROR: Undefined symbol: .wait4(int, int*, int, void*)
collect2: ld returned 8 exit status
make: The error code from the last command is 1.


Stop.
make: The error code from the last command is 2.


Stop.
mkmake: ERROR LOG is left at /home/guest/delegate9.9.6/src/mkmake.err
mkmake: ERROR LOG is left at /home/guest/delegate9.9.6/src/mkmake.err
make: The error code from the last command is 2.


Stop.

$vi /home/guest/delegated9.9.6/src/mkmake.err

        *** exit(2): -makeat at /home/guest/delegate9.9.6/src
        [0] make
        [1] MKMAKE_SRC=
        [2] SHELL=/usr/bin/sh
        [3] HDRDIRS=-I../gen -I../include -O
        [4] LIBDIRS=-L../lib
        [5] MKMAKE=/home/guest/delegate9.9.6/mkmake.exe
        [6] MKBASE=/home/guest/delegate9.9.6
        [7] MKMKMK=/home/guest/delegate9.9.6/mkmkmk.exe

        *** exit(2): -makeat at /home/guest/delegate9.9.6/src
        [0] ./mkmake.exe
        [1]
        [2] src
        [3] dg.exe
        [4] make
        [5] MKMAKE_SRC=
        [6] SHELL=/usr/bin/sh
        [7] HDRDIRS=-I../gen -I../include -O
        [8] LIBDIRS=-L../lib







                                                                           
             feedback@delegate                                             
             .org (Yutaka                                                  
             Sato)                                                      To 
                                       feedback@delegate.org               
             2009/11/23 16:47                                           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
<_A4614@delegate-en.ML_> on
10/24/09(17:47:49)
you Antonio Hernandez Jr <payjabdyi-re5dixqzuhtr.ml@ml.delegate.org> wrote:
 |We like to install the latest Delegate on our
 |new AIX servers 6.1(oslevel 6100-00-00-000X),
 |64bit Hardware and Kernel having
 |both C compilers XL C/C++ 10.1.04 and GNU gcc-4.2.4-1.
 |
 |We followed the correspondence in the mailing list
(mail-lists.delegate-en)
 |with subject:
 |Compilation Error on AIX 5.3 (#4520 up to #4528)
 |Date: 08/05 - 08/07
 |
 |We almost have the same compiler message results.
 |It seems we are stopping at this point whatever compiler we use(gxlc++,
 |gcc, g++)
...
 |We have downloaded the latest STABLE and pre versions(9.5.5, 9.5.6) and
 |recompiled but we always stop at the
 |"embed" portion. Maybe you could teach us some configuration we missed.

Since most of porting problem of DeleGate (on HP-UX, AIX and SPARC) are
caused by linkage problem in C++, I made a new version of DeleGate
(9.9.6-pre6) that can be build without C++.
I hope that it is useful on AIX and can be build just as follows:

  % make -f Makefile.QSC

Or if your make does not support getting definitions from the command
line, it can be done as follows:

  [the content of src/DELEGATE_CONF]
  ADMIN=foo@bar
  CFLAGS=-O2 -DQSC
  LDOPTS=
  CFLAGSPLUS=

  % make

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



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