Article delegate-en/2834 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] Re: delegated crashes upon startup, but not with -f
10 Feb 2005 12:43:56 GMT Roland <>

OK, after several problems I got it to compile and run. Here are the
obstacles I encountered:

First, 8.11.0-pre1 didn't compile: :-(

         -- checking CC = cc
         -- checking CC with CFLAGS = cc -O -x c++ -DQS
##ERROR## ***
##ERROR## cc _.o -L../lib
##ERROR## _.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
##ERROR## collect2: ld returned 1 exit status
FATAL!!!!: Something wrong in the CFLAGS.

This was fixed by setting CC=g++. Then I was hit by a compiler bug:

nntp.c: In function `int permitted_group(const char*)':
nntp.c:1096: warning: cast from pointer to integer of different size
nntp.c:1101: warning: cast to pointer from integer of different size
nntp.c: In function `int nntpcc(Connection*, Session*)':
nntp.c:5168: internal compiler error: in walk_tree, at tree-inline.c:1615
Please submit a full bug report,
with preprocessed source if appropriate.

I HATE compiler bugs... :-( I worked around by modifying nntp.c:

# diff delegate8.11.0-pre1/src/nntp.c kludged-nntp.c
<       ns = &Nservers[server1()];
>       int server;
>       server = server1();
>       ns = &Nservers[server];
<                       fputs(Nservers[server1()].ns_openingmsg,tc);
>                       int server;
>                       server = server1();
>                       fputs(Nservers[server].ns_openingmsg,tc);

Anyway, there were a lot of warnings about casts from pointers to
integers of different sizes, which clearly is a 64-bit issue. So I
added "-m32" to compile for 32bits. I finally came up with a
DELEGATE_CONF that worked:

CFLAGS=-O -m32

This builds delegated OK, but not the subin/'s, I kludged there and
added "-m32" hardcoded in the Makefile. I'll leave it to you to fix
the Makefile so that the DELEGATE_CONF from src/ gets used there
too... ;-)

It started up fine and seems to run OK, I'll keep you posted.



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