Bowie Bailey writes:

I downloaded the current tarball and tried to build the rpms on a CentOS
4 system.  I got these errors:

$ rpmbuild -tb courier-authlib-0.64.0.tar.bz2
...
libtool: link: ar cru .libs/libauthpipe.a  authpipe.o authpipelib.o
libtool: link: ranlib .libs/libauthpipe.a
libtool: link: ( cd ".libs" && rm -f "libauthpipe.la" && ln -s
"../libauthpipe.la" "libauthpipe.la" )
libtool: link: gcc -I/usr/include/mysql -g -pipe -m32 -march=i386
-mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-fno-strict-aliasing -I/usr/include -O2 -g -pipe -m32 -march=i386
-mtune=pentium4 -Wall -I.. -I./.. -o authdaemontest authdaemontest.o
./.libs/libcourierauthcommon.a
/home/bowieb/rpm/BUILD/courier-authlib-0.64.0/.libs/libcourierauth.a -ldl
libtool: link: cannot find the library `libltdl/libltdlc.la' or
unhandled argument `libltdl/libltdlc.la'
make[2]: *** [authdaemondprog] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: link: gcc -I/usr/include/mysql -g -pipe -m32 -march=i386
-mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-fno-strict-aliasing -I/usr/include -O2 -g -pipe -m32 -march=i386
-mtune=pentium4 -Wall -I.. -I./.. -o .libs/authpasswd authpasswd.o
./.libs/libcourierauthcommon.so
/home/bowieb/rpm/BUILD/courier-authlib-0.64.0/.libs/libcourierauth.so
libhmac/.libs/libhmac.a md5/.libs/libmd5.a sha1/.libs/libsha1.a
rfc822/.libs/libencode.a -ldl -Wl,-rpath -Wl,/usr/lib/courier-authlib
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.93944 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.93944 (%build)


Can someone give me a pointer as to how to fix this?

From googling around, looks like system's libtool is too old.

Install the source rpm, to get its spec file.

Modify the spec file, between "%setup" and "%configure -C --with-redhat", add a line:

autoreconf

Then try to build it using the modified spec file.

If this doesn't work, ask around on the CentOS lists. This should be a fairly common issue with packages built for CentOS; they should tell you what the real fix is.


Attachment: pgpLh0q4ABpKV.pgp
Description: PGP signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to