LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



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

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


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!
 
Old 06-10-2009, 02:41 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
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
jim0112
LQ Newbie
 
Registered: Oct 2006
Location: Brighton, UK
Posts: 18

Original Poster
Rep: Reputation: 0
Brilliant - thanks.
 
  


Reply

Tags
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 + qmail-scanner-queue+qmail-user-masq.pl 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 04:04 PM.

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