Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-10-2009, 10:09 AM   #1
LQ Newbie
Registered: Oct 2006
Location: Brighton, UK
Posts: 18

Rep: Reputation: 0
Problem compiling queue-fix-1.4 for qmail


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 \
./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/ section .tbss mismatches non-TLS reference in queue-fix.o
/lib/ could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [queue-fix] Error 1

I downloaded it via
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!
Old 06-10-2009, 02:41 PM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 15,903

Rep: Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021
EL 5.x , CentOS 5.x.
Replacing the internal seems not to be needed, but the line
#include <errno.h>
will have to be added to :
alloc.c , queue-fix.c , substdo.c , substdi.c .

... Then ... no errors.
Old 06-11-2009, 10:49 AM   #3
LQ Newbie
Registered: Oct 2006
Location: Brighton, UK
Posts: 18

Original Poster
Rep: Reputation: 0
Brilliant - thanks.


qmail, rhel

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Qmail queue permission problem kelvinyasu Linux - Software 3 10-25-2013 03:26 AM
qmail queue problem nostromo Linux - Server 1 01-29-2008 05:09 AM
qmail +qmail-qfilter + problem countcobolt Linux - Networking 0 07-08-2004 12:29 PM
Deleted qmail queue /var/qmail/queue tris Linux - Software 0 10-25-2003 12:52 AM
qmail queue problem ka_alucard Slackware 0 05-28-2003 09:09 PM

All times are GMT -5. The time now is 06:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration