Article delegate-en/3837 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] delegate 7.9.2 - link problems.
01 Oct 2007 14:32:27 GMT Priit Randla <>


While trying to 'make sslway' I encountered two problems:
cc -O2 -x c++ -DQS -I../gen -I../src -I../include -c sslway.c -o sslway.o
echo Makefile bdtee.c bdthru.c fcl.c mkstab.c dl.c gzip.c htview.c cfi.c 
cfi.conf reclog.c expired.c cafe.c cafemain.c sslway.c backup.c swft.c 
pdft.c dglogs.c dping.c ciicgi.c htwrap.c netzip.c | xargs -n 1 
/home/priitr/delegate/delegate9.7.2/mkmake.exe -cksum
##   SSLEAY=../../SSL   ... the directory of SSLeay
##   LIBSSL=-lcrypto -lssl -lcrypt    ... the SSLeay library
cc -L../lib -o sslway sslway.o -L../../SSL -lcrypto -lssl -lcrypt  -lnsl 
-ldl -lutil -lpthread -lpam -lstdc++  ../lib/libcfi.a ../lib/library.a 
../lib/libmimekit.a ../lib/libmd5.a ../lib/libsubst.a ../lib/libsubstx.a 
-lcrypto -lssl -lcrypt  -lnsl -ldl -lutil -lpthread -lpam -lstdc++
../lib/library.a(dglibs.o): In function `dl_library(char const*, DLMap*, 
char const*)':
dglibs.c:(.text+0x50): multiple definition of `dl_library(char const*, 
DLMap*, char const*)'
../lib/libcfi.a(dl.o):dl.c:(.text+0xa20): first defined here
/usr/bin/ld: Warning: size of symbol `dl_library(char const*, DLMap*, 
char const*)' changed from 68 in ../lib/libcfi.a(dl.o) to 10 in 
../lib/libcfi.a(dl.o): In function `dl_libraryX(char const*, DLMap*, 
char const*)':
dl.c:(.text+0x427): undefined reference to `fullpathDYLIB(char const*, 
char const*, char const*, int, char const*, int, char const*)'
collect2: ld returned 1 exit status
make[2]: [sslway] Error 1 (ignored)

Fair enough, dl_library is defined both in filters/dl.c and also in 
rary/dglibs.c and these seem to conflict.
The second error is actually quite strange  - dl_libraryX in 
filters/dl.c seems to use fullpathDYLIBS(char const *, char const*, char 
const*) - maybe some strange macro expansions taking place and adding 

I'm compiling on Centos4 box (a RedHat Enterprise Linux 4 clone).
Priit Randla

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