Package: rageircd
Version: 2.0.0-2

Hi

I've checked the build logs for rageircd 2.0.0-2 in unstable and have noticed that the actual rageircd binary doesn't build on the s390 architecture. Hence I am reporting it here.

The compile failure is in src/ircsprintf.c as follows.

cc  -g -Wall -O2 -export-dynamic -I../adns -I../include -I../zlib  -c ircsprintf.c
ircsprintf.c: In function `ircvsprintf':
ircsprintf.c:29: error: incompatible types in assignment
ircsprintf.c: In function `ircvsnprintf':
ircsprintf.c:123: error: incompatible types in assignment
make[2]: *** [ircsprintf.o] Error 1

As I don't have access to a s390 system I cannot confirm the below bug fix. However, I believe the VA_COPY macro is the problem. Line 60 of include/common.h is:

#elif defined(__x86_64)

I believe if this is changed to the following statement, it will compile fine on s390.

#elif defined(__x86_64) || defined(__s390)

All other architectures appear to compile successfully.

I'm mailing the fix rather than providing a new version of rageircd 2.0 as I don't think the problem really calls for a new version just yet. I can't see many people with an s390 running RageIRCd. However, the fix is already in rageircd 2.0.1-alpha. Perhaps the Debian source will be patched and compile tested? If so I would appreciate feedback accordingly.

Regards
Alasdair
RageIRCd

Reply via email to