Article delegate-en/4712 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 09:53:59 GMT Antonio Hernandez Jr <payjabdyi-f4q452u2wj3r.ml@ml.delegate.org>


Hi Yutaka,

Thank you for the fast response.

I downloaded the new package and here is what I got.

Antonio "Mark" Hernandez

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

$tar zxpvf delegate9.9.7-pre8.tar.gz
...

$cd delegate9.9.7-pre8
$vi Makefile.QSC
###############################################################################
# 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          ## 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

....

In file included from udprelay.c:24:
../include/vsocket.h:100:1: warning: "recvfrom" redefined
In file included from ../include/vsocket.h:73,
                 from udprelay.c:24:
/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 ftpgw.c
        gcc -DQSC -O2             -I../gen -I../include -DQSC -O2
-c filetype.c
        rm -f ../lib/libdelegate.a
        ar cr ../lib/libdelegate.a version.o  ../srcsign.o  editconf.o
admin.o notify.o shutter.o abort.o  form2conf.o  process.o  vaddr.o conf.o
svport.o ddi.o textconv.o  script.o param.o env.o  thmain.o  syslog.o log.o
svstat.o  iotimeout.o  misc.o msg.o  yshell.o  shio.o  db.o  hostlist.o
cond.o  service.o svconf.o filter.o  master.o  qstest.o  delegate.o  caps.o
spinach.o  stls.o  tsp.o  sudo.o  gacl.o access.o ident.o dgauth.o dgsign.o
ccache.o cache.o distrib.o  bcounter.o  ipno.o  inets.o uns.o rident.o
inetd.o  thruwayd.o dget.o urlfind.o  mount.o url.o  gopher.o  icp.o
icap.o  http.o httpx.o httplog.o httphead.o  httpd.o cgi.o ssi.o htaccept.o
htccx.o  htswitch.o  htmlgen.o  nntp.o nntplist.o nntpgw.o enews.o  pop.o
smtp.o telnet.o ftp.o xferlog.o X.o wais.o whois.o  imap.o  ldap.o
smtpgate.o alias.o  domain.o  lpr.o  sftp.o  socks.o socks4.o sox.o
cuseeme.o coupler.o vsap.o tcprelay.o udprelay.o  ftpgw.o filetype.o
        /usr/bin/ranlib ../lib/libdelegate.a
        "/home/guest/delegate9.9.7-pre8/mkmake.exe" -touch
"../lib/libdelegate.a"
        gcc -DQSC -O2             -I../gen -I../include -DQSC -O2
-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 -lc ../lib/libsubst.a
ld: 0711-317 ERROR: Undefined symbol: .strcasestr
ld: 0711-317 ERROR: Undefined symbol: ThreadSigmask
ld: 0711-317 ERROR: Undefined symbol: ThreadKill
ld: 0711-317 ERROR: Undefined symbol: ThreadDestroy
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
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.7-pre8/src/mkmake.err
mkmake: ERROR LOG is left at /home/guest/delegate9.9.7-pre8/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.7-pre8/src/mkmake.err
        *** exit(2): -makeat at /home/guest/delegate9.9.7-pre8/src
        [0] make
        [1] MKMAKE_SRC=
        [2] SHELL=/usr/bin/sh
        [3] HDRDIRS=-I../gen -I../include -DQSC -O2
        [4] LIBDIRS=-L../lib
        [5] MKMAKE=/home/guest/delegate9.9.7-pre8/mkmake.exe
        [6] MKBASE=/home/guest/delegate9.9.7-pre8
        [7] MKMKMK=/home/guest/delegate9.9.7-pre8/mkmkmk.exe

        *** exit(2): -makeat at /home/guest/delegate9.9.7-pre8/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 -DQSC -O2
        [8] LIBDIRS=-L../lib

via src/delegated.conf

$make CC=gcc

...

        /usr/bin/ranlib ../lib/libdelegate.a
        "/home/guest/delegate9.9.7-pre8/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(DGCtx*, 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(DGCtx*, 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.7-pre8/src/mkmake.err
mkmake: ERROR LOG is left at /home/guest/delegate9.9.7-pre8/src/mkmake.err
make: The error code from the last command is 2.


Stop.

$ cat /home/guest/delegate9.9.7-pre8/src/mkmake.err
        *** exit(2): -makeat at /home/guest/delegate9.9.7-pre8/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.7-pre8/mkmake.exe
        [6] MKBASE=/home/guest/delegate9.9.7-pre8
        [7] MKMKMK=/home/guest/delegate9.9.7-pre8/mkmkmk.exe

        *** exit(2): -makeat at /home/guest/delegate9.9.7-pre8/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/12/16 16:16                                           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
<_A4710@delegate-en.ML_> on
12/16/09(16:03:04)
you Antonio Hernandez Jr <payjabdyi-f4q452u2wj3r.ml@ml.delegate.org> wrote:
 |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.
...
 |        gcc -DQSC -O2    -I../gen -I../include -DQSC -O2  -c unix.c -o
 |unix.o
...
 |unix.c:328: error: conflicting types for 'send_file'
 |/usr/include/sys/socket.h:749: error: previous declaration of 'send_file'
 |was here

I modified the code to escape this error in DeleGate/9.9.7-pre5
and expect it works.  (and the current version is 9.9.7-pre8)

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