Hi,
I'm trying to compile queue-fix-1.4 on RHEL 5.1 (32-bit) with no success. This is the output of the make command:
./compile error.c
./compile error_str.c
./compile error_temp.c
./makelib error.a error.o error_str.o error_temp.o
./compile substdi.c
./compile substdo.c
./makelib substdio.a substdio.o substdi.o substdo.o \
subfderr.o subfdout.o subfdouts.o subfdin.o subfdins.o \
substdio_copy.o
./compile alloc.c
alloc.c:3: warning: conflicting types for built-in function 'malloc'
./makelib alloc.a alloc.o alloc_re.o
./load queue-fix fifo.o fs.a stralloc.a getln.a open.a error.a \
substdio.a alloc.a str.a
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in queue-fix.o
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [queue-fix] Error 1
I downloaded it via
http://www.qmail.org/top.html.
I've tried applying the patch that makes it work with the big-todo patch.
After a quick bit of research the error above can apparently be fixed by replacing extern int errno with #include <errno.h> - so I did, with sed -i 's/^extern int errno;/#include <errno.h>/' error.h - but this hasn't changed anything unfortunately.
Any suggestions welcome - thanks!