Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: atrpms: users

Help rebuilding Exim 4.72 src rpm from EL5 for EL4

 

 

atrpms users RSS feed   Index | Next | Previous | View Threaded


cs at ridgers

Jan 12, 2011, 3:16 AM

Post #1 of 11 (1577 views)
Permalink
Help rebuilding Exim 4.72 src rpm from EL5 for EL4

Hi there,
One of the email servers I look after runs EL4 (Centos 4.8) with Exim 4.69 installed from atrpms (exim-4.69-37.el4.i386.rpm & exim-greylist-4.69-37.el4.i386.rpm).

As you may be aware there is a root exploit in Exim 4.69 and earlier versions that has now just been patched by Redhat & others. Details here:
http://www.theregister.co.uk/2010/12/11/exim_code_execution_peril/

Obviously this issue affects Exim 4.69 so to avoid my server being rooted I have followed the short term fix detailed here: http://www.exim.org/lurker/message/20101210.164935.385e04d0.en.html
I need to run the atrpms 4.69 version because I need the greylisting facilities.

My questions are:

1. Is the Exim 4.69 version on atrpms vulnerable to the above exploit or has it been patched ?
2. Subject to the above, how do I rebuild the latest Exim 4.72 src rpm from the EL5 section to run on EL4 i386 ?
3. The exim-greylist package doesn't seem to have an equivalent .src package - is it just a matter of copying the greylisting config files ?

I have found a thread here: http://lists.atrpms.net/pipermail/atrpms-users/2007-February/006856.html
regarding a similar question for Dovecot. However having followed the instructions regarding the .rpmmacros file modification & running the command as below:

rpmbuild --rebuild --without inotify --with pam_stack --with forcequota2 exim-4.72-41.src.rpm

(I have tried the above command without the inotify --with pam_stack --with forcequota2 switches with the same result).

I just get (this is the bit of output I think is relevant):

--
In file included from spool_in.c:14:
exim.h:430:18: pcre.h: No such file or directory
In file included from exim.h:440,
from spool_in.c:14:
globals.h:78: error: syntax error before '*' token
globals.h:78: warning: data definition has no type or storage class
globals.h:591: error: syntax error before '*' token
globals.h:591: warning: data definition has no type or storage class
globals.h:592: error: syntax error before '*' token
globals.h:592: warning: data definition has no type or storage class
globals.h:593: error: syntax error before '*' token
globals.h:593: warning: data definition has no type or storage class
globals.h:594: error: syntax error before '*' token
globals.h:594: warning: data definition has no type or storage class
globals.h:595: error: syntax error before '*' token
globals.h:595: warning: data definition has no type or storage class
globals.h:596: error: syntax error before '*' token
globals.h:596: warning: data definition has no type or storage class
globals.h:597: error: syntax error before '*' token
globals.h:597: warning: data definition has no type or storage class
globals.h:598: error: syntax error before '*' token
globals.h:598: warning: data definition has no type or storage class
In file included from exim.h:441,
from spool_in.c:14:
functions.h:230: error: syntax error before '*' token
functions.h:231: error: syntax error before '*' token
functions.h:231: warning: data definition has no type or storage class
make[1]: *** [util-spool_in.o] Error 1
make[1]: Leaving directory `/home/rpmbuild/rpm/BUILD/exim-4.72/build-Linux-i386'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.68350 (%build)

RPM build errors:
only V3 signatures can be verified, skipping V4 signature
Bad exit status from /var/tmp/rpm-tmp.68350 (%build)
--

Any help much appreciated.
Although I have rebuilt RPMs before I don't do it often so don't have much experience (but I'm not building as root & I have created the RPM build dirs in my home dir :-)

Seems silly to have to buy a new server (can't afford any major down time) & rebuild from scratch on EL5 & copy all data over just to get one RPM to work - but that's what it looks like I'm going to have to do at the moment.


Many thanks in advance,

Mike.





_______________________________________________
atrpms-users mailing list
atrpms-users [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-users


cs at ridgers

Jan 12, 2011, 3:20 AM

Post #2 of 11 (1527 views)
Permalink
Help rebuilding Exim 4.72 src rpm from EL5 for EL4 [In reply to]

Hi there,
One of the email servers I look after runs EL4 (Centos 4.8) with Exim 4.69 installed from atrpms (exim-4.69-37.el4.i386.rpm & exim-greylist-4.69-37.el4.i386.rpm).

As you may be aware there is a root exploit in Exim 4.69 and earlier versions that has now just been patched by Redhat & others. Details here:
http://www.theregister.co.uk/2010/12/11/exim_code_execution_peril/

Obviously this issue affects Exim 4.69 so to avoid my server being rooted I have followed the short term fix detailed here: http://www.exim.org/lurker/message/20101210.164935.385e04d0.en.html
I need to run the atrpms 4.69 version because I need the greylisting facilities.

My questions are:

1. Is the Exim 4.69 version on atrpms vulnerable to the above exploit or has it been patched ?
2. Subject to the above, how do I rebuild the latest Exim 4.72 src rpm from the EL5 section to run on EL4 i386 ?
3. The exim-greylist package doesn't seem to have an equivalent .src package - is it just a matter of copying the greylisting config files ?

I have found a thread here: http://lists.atrpms.net/pipermail/atrpms-users/2007-February/006856.html
regarding a similar question for Dovecot. However having followed the instructions regarding the .rpmmacros file modification & running the command as below:

rpmbuild --rebuild --without inotify --with pam_stack --with forcequota2 exim-4.72-41.src.rpm

(I have tried the above command without the inotify --with pam_stack --with forcequota2 switches with the same result).

I just get (this is the bit of output I think is relevant):

--
In file included from spool_in.c:14:
exim.h:430:18: pcre.h: No such file or directory In file included from exim.h:440,
from spool_in.c:14:
globals.h:78: error: syntax error before '*' token
globals.h:78: warning: data definition has no type or storage class
globals.h:591: error: syntax error before '*' token
globals.h:591: warning: data definition has no type or storage class
globals.h:592: error: syntax error before '*' token
globals.h:592: warning: data definition has no type or storage class
globals.h:593: error: syntax error before '*' token
globals.h:593: warning: data definition has no type or storage class
globals.h:594: error: syntax error before '*' token
globals.h:594: warning: data definition has no type or storage class
globals.h:595: error: syntax error before '*' token
globals.h:595: warning: data definition has no type or storage class
globals.h:596: error: syntax error before '*' token
globals.h:596: warning: data definition has no type or storage class
globals.h:597: error: syntax error before '*' token
globals.h:597: warning: data definition has no type or storage class
globals.h:598: error: syntax error before '*' token
globals.h:598: warning: data definition has no type or storage class In file included from exim.h:441,
from spool_in.c:14:
functions.h:230: error: syntax error before '*' token
functions.h:231: error: syntax error before '*' token
functions.h:231: warning: data definition has no type or storage class
make[1]: *** [util-spool_in.o] Error 1
make[1]: Leaving directory `/home/rpmbuild/rpm/BUILD/exim-4.72/build-Linux-i386'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.68350 (%build)

RPM build errors:
only V3 signatures can be verified, skipping V4 signature
Bad exit status from /var/tmp/rpm-tmp.68350 (%build)
--

Any help much appreciated.
Although I have rebuilt RPMs before I don't do it often so don't have much experience (but I'm not building as root & I have created the RPM build dirs in my home dir :-)

Seems silly to have to buy a new server (can't afford any major down time) & rebuild from scratch on EL5 & copy all data over just to get one RPM to work - but that's what it looks like I'm going to have to do at the moment.


Many thanks in advance,

Mike.





_______________________________________________
atrpms-users mailing list
atrpms-users [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-users


Axel.Thimm at ATrpms

Jan 12, 2011, 7:00 AM

Post #3 of 11 (1522 views)
Permalink
Re: Help rebuilding Exim 4.72 src rpm from EL5 for EL4 [In reply to]

On Wed, 2011-01-12 at 11:16 +0000, cs wrote:
> One of the email servers I look after runs EL4 (Centos 4.8) with Exim
> 4.69 installed from atrpms [...]

> 1. Is the Exim 4.69 version on atrpms vulnerable to the above exploit
> or has it been patched ?

ATM it hasn't been patched.

> 2. Subject to the above, how do I rebuild the latest Exim 4.72 src rpm
> from the EL5 section to run on EL4 i386 ?

The packages are not offered for RHEL4 because they stopped building
since 4.70. E.g. it is more than a rebuild, you will have to fix any
issues on the way. :(

> 3. The exim-greylist package doesn't seem to have an equivalent .src
> package - is it just a matter of copying the greylisting config
> files ?

It is just a subpackage of the common exim src.rpm.

> In file included from spool_in.c:14:
> exim.h:430:18: pcre.h: No such file or directory
> In file included from exim.h:440,
> from spool_in.c:14:
> globals.h:78: error: syntax error before '*' token

That's what you get on RHEL4 since 4.70. You aren't doing anything
wrong, exim requires newer components than RHEL4 can offer, e.g. pcre.
--
http://thimm.gr/ - http://ATrpms.net/
Attachments: signature.asc (0.19 KB)


john.robinson at anonymous

Jan 12, 2011, 7:13 AM

Post #4 of 11 (1514 views)
Permalink
Re: Help rebuilding Exim 4.72 src rpm from EL5 for EL4 [In reply to]

On 12/01/2011 15:00, Axel Thimm wrote:
> On Wed, 2011-01-12 at 11:16 +0000, cs wrote:
[...]
>> In file included from spool_in.c:14:
>> exim.h:430:18: pcre.h: No such file or directory
>> In file included from exim.h:440,
>> from spool_in.c:14:
>> globals.h:78: error: syntax error before '*' token
>
> That's what you get on RHEL4 since 4.70. You aren't doing anything
> wrong, exim requires newer components than RHEL4 can offer, e.g. pcre.

The exim ChangeLog for 4.70 just says they're no longer bundling pcre.
RHEL4 does have pcre so maybe all that's needed is for the 4.70 (and
later) build to require pcre-devel and the binary rpm to require pcre.

I haven't got a RHEL4 development box to hand right now or I'd try
rebuilding it myself.

Cheers,

John.


_______________________________________________
atrpms-users mailing list
atrpms-users [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-users


mike at ridgers

Jan 12, 2011, 8:38 AM

Post #5 of 11 (1514 views)
Permalink
Re: Help rebuilding Exim 4.72 src rpm from EL5 for EL4 [In reply to]

Hi John, Axel,
Many thanks for getting back so soon.

I have just dug out an old DVD of Centos 4.3 & am currently loading it up on a dev box as I type.
I wonder if you guys would be able to give me some instruction as to how to modify the spec file to require pcre-devel in the build & pcre in the binary - as you mention.

I've got the dev box if you guys could provide some of the know-how :-)

Happy to donate the resulting RPM, spec file & src if it helps anyone.

Many thanks,

Mike.

-----Original Message-----
From: atrpms-users-bounces [at] atrpms [mailto:atrpms-users-bounces [at] atrpms] On Behalf Of John Robinson
Sent: 12 January 2011 15:13
To: User discussion about ATrpms.net
Subject: Re: [ATrpms-users] Help rebuilding Exim 4.72 src rpm from EL5 for EL4

On 12/01/2011 15:00, Axel Thimm wrote:
> On Wed, 2011-01-12 at 11:16 +0000, cs wrote:
[...]
>> In file included from spool_in.c:14:
>> exim.h:430:18: pcre.h: No such file or directory In file included
>> from exim.h:440,
>> from spool_in.c:14:
>> globals.h:78: error: syntax error before '*' token
>
> That's what you get on RHEL4 since 4.70. You aren't doing anything
> wrong, exim requires newer components than RHEL4 can offer, e.g. pcre.

The exim ChangeLog for 4.70 just says they're no longer bundling pcre.
RHEL4 does have pcre so maybe all that's needed is for the 4.70 (and
later) build to require pcre-devel and the binary rpm to require pcre.

I haven't got a RHEL4 development box to hand right now or I'd try rebuilding it myself.

Cheers,

John.


_______________________________________________
atrpms-users mailing list
atrpms-users [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-users


_______________________________________________
atrpms-users mailing list
atrpms-users [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-users


john.robinson at anonymous

Jan 12, 2011, 9:11 AM

Post #6 of 11 (1514 views)
Permalink
Re: Help rebuilding Exim 4.72 src rpm from EL5 for EL4 [In reply to]

On 12/01/2011 16:38, Mike Ridgers wrote:
> Hi John, Axel,
> Many thanks for getting back so soon.
>
> I have just dug out an old DVD of Centos 4.3& am currently loading it up on a dev box as I type.
> I wonder if you guys would be able to give me some instruction as to how to modify the spec file to require pcre-devel in the build& pcre in the binary - as you mention.

Have a look for Build-Requires and Requires fields, it should be clear
enough.

> I've got the dev box if you guys could provide some of the know-how :-)

You'll need the atrpms build macros. You probably ought to be running
CentOS 4.8 rather than 4.3 so the build's done against the latest
libraries, and you'll need a bucketload of -devel packages. It might be
a lot of bother and I'll have my devel box back up in a day or two -
it's currently reshaping its RAID-5 to RAID-6 using SystemRescueCD - so
if you can't be bothered I'll get to it when it's done.

> Happy to donate the resulting RPM, spec file& src if it helps anyone.

Good luck!

Cheers,

John.


_______________________________________________
atrpms-users mailing list
atrpms-users [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-users


mike at ridgers

Jan 12, 2011, 10:01 AM

Post #7 of 11 (1519 views)
Permalink
Re: Help rebuilding Exim 4.72 src rpm from EL5 for EL4 [In reply to]

Hi John,
Just had a look at the 4.72 EL5 spec file & it already has a line for pcre-devel as below:

BuildRequires: pcre-devel sqlite-devel

I added the line

Requires: pcre

The pcre packages were already installed on Centos 4.8 was well:

package pcre-4.5-4.el4_6.6 is already installed
package pcre-devel-4.5-4.el4_6.6 is already installed

Maybe the version is too old as I note Centos 5 has version "6.6-2.el5_1.7".

Here is the contents of my .rpmmacros file (lifted from http://lists.atrpms.net/pipermail/atrpms-users/2007-February/006862.html) :

%_topdir /home/rpmbuild/rpm
# macros used in rpm 4.4, not available in previous versions
%bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%bcond_without() %{expand:%%{!?_without_%{1}:%%global without_%{1} 1}}
%with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%without() %{expand:%%{?without_%{1}:0}%%{!?without_%{1}:1}}

Be good to crack this but equally I'm happy to wait a day or two for your box to be back online.

Cheers,

Mike.


-----Original Message-----
From: John Robinson [mailto:john.robinson [at] anonymous]
Sent: 12 January 2011 17:12
To: User discussion about ATrpms.net
Cc: Mike Ridgers
Subject: Re: [ATrpms-users] Help rebuilding Exim 4.72 src rpm from EL5 for EL4

On 12/01/2011 16:38, Mike Ridgers wrote:
> Hi John, Axel,
> Many thanks for getting back so soon.
>
> I have just dug out an old DVD of Centos 4.3& am currently loading it up on a dev box as I type.
> I wonder if you guys would be able to give me some instruction as to how to modify the spec file to require pcre-devel in the build& pcre in the binary - as you mention.

Have a look for Build-Requires and Requires fields, it should be clear enough.

> I've got the dev box if you guys could provide some of the know-how
> :-)

You'll need the atrpms build macros. You probably ought to be running CentOS 4.8 rather than 4.3 so the build's done against the latest libraries, and you'll need a bucketload of -devel packages. It might be a lot of bother and I'll have my devel box back up in a day or two - it's currently reshaping its RAID-5 to RAID-6 using SystemRescueCD - so if you can't be bothered I'll get to it when it's done.

> Happy to donate the resulting RPM, spec file& src if it helps anyone.

Good luck!

Cheers,

John.



_______________________________________________
atrpms-users mailing list
atrpms-users [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-users


john.robinson at anonymous

Jan 12, 2011, 10:18 AM

Post #8 of 11 (1522 views)
Permalink
Re: Help rebuilding Exim 4.72 src rpm from EL5 for EL4 [In reply to]

On 12/01/2011 18:01, Mike Ridgers wrote:
> Hi John,
> Just had a look at the 4.72 EL5 spec file& it already has a line for pcre-devel as below:
>
> BuildRequires: pcre-devel sqlite-devel
>
> I added the line
>
> Requires: pcre

That sounds right.

> The pcre packages were already installed on Centos 4.8 was well:
>
> package pcre-4.5-4.el4_6.6 is already installed
> package pcre-devel-4.5-4.el4_6.6 is already installed
>
> Maybe the version is too old as I note Centos 5 has version "6.6-2.el5_1.7".

The error given earlier made me think pcre-devel was missing during the
build. Are you still getting the "pcre.h: No such file or directory"
error? But you could try building that CentOS 5 pcre for CentOS 4 just
in case, and see where it gets you.

Cheers,

John.

_______________________________________________
atrpms-users mailing list
atrpms-users [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-users


mike at ridgers

Jan 12, 2011, 10:46 AM

Post #9 of 11 (1528 views)
Permalink
Re: Help rebuilding Exim 4.72 src rpm from EL5 for EL4 [In reply to]

Hi John,
Just got it to build!

I found this thread: http://www.directadmin.com/forum/showthread.php?t=38586&page=2
People trying to do the same thing.

Quote:

> During the rpm rebuild of src.rpm on CentOS 4.8, I got the following error due to pcre.h not found:
>
> It is strange, since pcre* package are installed, and pcre.h exists.
> Any idea? Maybe exim.h need to use #include "pcre.h" instead of #include <pcre.h>?
>
> I found a bypass by setting a symbolic link:
> ln -s /usr/include/pcre/pcre.h /usr/include/pcre.h "

End Quote.

I ran the " ln -s /usr/include/pcre/pcre.h /usr/include/pcre.h" command as above & that fixed it !

I have just installed http://dl.atrpms.net/all/atrpms-rpm-config-187-1.noarch.rpm as you sugested & have rebuilt it again.

However when I now go to update Exim: rpm -Uvh exim-4.72-41.RHL4.i386.rpm exim-greylist-4.72-41.RHL4.i386.rpm

I get :

error: Failed dependencies:
/etc/pki/tls/certs is needed by exim-4.72-41.RHL4.i386
/etc/pki/tls/private is needed by exim-4.72-41.RHL4.i386

This has to be simple but both the listed directories are already there - I can cd to them !?

Cheers,

Mike.


-----Original Message-----
From: John Robinson [mailto:john.robinson [at] anonymous]
Sent: 12 January 2011 18:19
To: User discussion about ATrpms.net
Cc: Mike Ridgers
Subject: Re: [ATrpms-users] Help rebuilding Exim 4.72 src rpm from EL5 for EL4

On 12/01/2011 18:01, Mike Ridgers wrote:
> Hi John,
> Just had a look at the 4.72 EL5 spec file& it already has a line for pcre-devel as below:
>
> BuildRequires: pcre-devel sqlite-devel
>
> I added the line
>
> Requires: pcre

That sounds right.

> The pcre packages were already installed on Centos 4.8 was well:
>
> package pcre-4.5-4.el4_6.6 is already installed package
> pcre-devel-4.5-4.el4_6.6 is already installed
>
> Maybe the version is too old as I note Centos 5 has version "6.6-2.el5_1.7".

The error given earlier made me think pcre-devel was missing during the build. Are you still getting the "pcre.h: No such file or directory"
error? But you could try building that CentOS 5 pcre for CentOS 4 just in case, and see where it gets you.

Cheers,

John.


_______________________________________________
atrpms-users mailing list
atrpms-users [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-users


john.robinson at anonymous

Jan 12, 2011, 11:04 AM

Post #10 of 11 (1536 views)
Permalink
Re: Help rebuilding Exim 4.72 src rpm from EL5 for EL4 [In reply to]

On 12/01/2011 18:46, Mike Ridgers wrote:
> Hi John,
> Just got it to build!
>
> I found this thread: http://www.directadmin.com/forum/showthread.php?t=38586&page=2
> People trying to do the same thing.
>
> Quote:
>
>> During the rpm rebuild of src.rpm on CentOS 4.8, I got the following error due to pcre.h not found:
>>
>> It is strange, since pcre* package are installed, and pcre.h exists.
>> Any idea? Maybe exim.h need to use #include "pcre.h" instead of #include<pcre.h>?
>>
>> I found a bypass by setting a symbolic link:
>> ln -s /usr/include/pcre/pcre.h /usr/include/pcre.h "
>
> End Quote.
>
> I ran the " ln -s /usr/include/pcre/pcre.h /usr/include/pcre.h" command as above& that fixed it !

The proper answer is probably to use ./configure
--with-pcre=/usr/include/pcre or something like that when building for
EL4, i.e. make the spec vary the configure invocation depending on the
target distro.

> I have just installed http://dl.atrpms.net/all/atrpms-rpm-config-187-1.noarch.rpm as you sugested& have rebuilt it again.
>
> However when I now go to update Exim: rpm -Uvh exim-4.72-41.RHL4.i386.rpm exim-greylist-4.72-41.RHL4.i386.rpm
>
> I get :
>
> error: Failed dependencies:
> /etc/pki/tls/certs is needed by exim-4.72-41.RHL4.i386
> /etc/pki/tls/private is needed by exim-4.72-41.RHL4.i386
>
> This has to be simple but both the listed directories are already there - I can cd to them !?

Something in EL5 specifically provides them, but the equivalent package
provides different directories in EL4. Again, looking at the Requires:
stuff in the spec file should give guidance - it may also be worth
checking the older spec file for 4.69 to see how it handles this.

For both of these, ideally we want to fix the 4.72 spec file to build
correctly on both EL4 and EL5, and presumably other distros too, which
4.69 did. But you now have a rpm you can install with --nodeps or
whatever, which I expect will work perfectly, so I guess you deserve a
glass of something celebratory!

We probably ought to take any further discussion of this over to
atrpms-devel, which I've cc'ed.

Cheers,

John.

_______________________________________________
atrpms-users mailing list
atrpms-users [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-users


mike at ridgers

Jan 12, 2011, 1:21 PM

Post #11 of 11 (1533 views)
Permalink
Re: Help rebuilding Exim 4.72 src rpm from EL5 for EL4 [In reply to]

Hi John,
Thanks for that - the rpms did indeed install fine with --nodeps & Exim is now upgraded to 4.72 & seems to be working fine on EL4!

The 4.69 spec file & the 4.72 spec files are exactly the same file. I just did a diff on them & it showed no differences.

The line in the spec file that require the dependencies that failed is:

Requires: /etc/pki/tls/certs /etc/pki/tls/private

Don't understand it as the directories above exist on the box & seem to have the correct permissions.

At the moment I'm very happy to have Exim 4.72 working & a way of building it for other Centos 4.8 boxes if needed.
But yes it would be great if we could get a spec file that will work with both EL4 & 5 - a bit out of my skill range but don't mind helping!

I have cc'd the dev list as you did also.

I have just tried building it on my fresh Centos 4.8 system & the first thing it told me was I needed the following packages - not all of these are available from the EL4 repos AFAIK.

pcre-devel sqlite-devel mysql-devel postgresql-devel libXaw-devel libXmu-devel libXext-devel libX11-devel libSM-devel libICE-devel libXpm-devel libXt-devel libspf2-devel libsrs_alt-devel libdomainkeys-devel

I must have installed them on the other mail server (on which I just built Exim 4.72) when I installed 4.69 I guess - or late one night & forgot!

Anyway many thanks for your help on this - & I'd be interested as to what you come up with regarding a universal Exim spec file for EL4 & 5.

Cheers,

Mike.

-----Original Message-----
From: John Robinson [mailto:john.robinson [at] anonymous]
Sent: 12 January 2011 19:05
To: Mike Ridgers
Cc: 'User discussion about ATrpms.net'; ATrpms development list
Subject: Re: [ATrpms-users] Help rebuilding Exim 4.72 src rpm from EL5 for EL4

On 12/01/2011 18:46, Mike Ridgers wrote:
> Hi John,
> Just got it to build!
>
> I found this thread:
> http://www.directadmin.com/forum/showthread.php?t=38586&page=2
> People trying to do the same thing.
>
> Quote:
>
>> During the rpm rebuild of src.rpm on CentOS 4.8, I got the following error due to pcre.h not found:
>>
>> It is strange, since pcre* package are installed, and pcre.h exists.
>> Any idea? Maybe exim.h need to use #include "pcre.h" instead of #include<pcre.h>?
>>
>> I found a bypass by setting a symbolic link:
>> ln -s /usr/include/pcre/pcre.h /usr/include/pcre.h "
>
> End Quote.
>
> I ran the " ln -s /usr/include/pcre/pcre.h /usr/include/pcre.h" command as above& that fixed it !

The proper answer is probably to use ./configure --with-pcre=/usr/include/pcre or something like that when building for EL4, i.e. make the spec vary the configure invocation depending on the target distro.

> I have just installed http://dl.atrpms.net/all/atrpms-rpm-config-187-1.noarch.rpm as you sugested& have rebuilt it again.
>
> However when I now go to update Exim: rpm -Uvh
> exim-4.72-41.RHL4.i386.rpm exim-greylist-4.72-41.RHL4.i386.rpm
>
> I get :
>
> error: Failed dependencies:
> /etc/pki/tls/certs is needed by exim-4.72-41.RHL4.i386
> /etc/pki/tls/private is needed by exim-4.72-41.RHL4.i386
>
> This has to be simple but both the listed directories are already there - I can cd to them !?

Something in EL5 specifically provides them, but the equivalent package provides different directories in EL4. Again, looking at the Requires:
stuff in the spec file should give guidance - it may also be worth checking the older spec file for 4.69 to see how it handles this.

For both of these, ideally we want to fix the 4.72 spec file to build correctly on both EL4 and EL5, and presumably other distros too, which
4.69 did. But you now have a rpm you can install with --nodeps or whatever, which I expect will work perfectly, so I guess you deserve a glass of something celebratory!

We probably ought to take any further discussion of this over to atrpms-devel, which I've cc'ed.

Cheers,

John.


_______________________________________________
atrpms-users mailing list
atrpms-users [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-users

atrpms users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.