Problem in compiling Ted-2.21

Support for the other architectures (X86_64, IA-64, and PowerPC)
Post Reply
craigliu
Posts: 33
Joined: 2011/03/07 20:56:32

Problem in compiling Ted-2.21

Post by craigliu » 2011/03/24 22:32:24

Our system is CentOS 5.5 over a AMD computer. I have encountered a problem when compiling Ted. What I do is as follows:

1) download Ted: wget http://ftp.nluug.nl/ftp/pub/pub/editors/ted/ted-2.21-1.src.rpm
2) rpm -ivh ted-2.21-1.src.rpm
3) cd /usr/src/redhat/SPECS
4) rpmbuild -ba ted-2.21-1.spec (Then I got:)
....
/usr/bin/ld: skipping incompatible /usr/lib/libtiff.so when searching for -ltiff
/usr/bin/ld: /usr/bin/ld: BFD 2.17.50.0.6-14.el5 20061020 internal error, aborting at ../../bfd/bfd.c line 506 in _bfd_default_error_handler

/usr/bin/ld: Please report this bug.

collect2: ld returned 1 exit status
make[1]: *** [Ted.static] Error 1
....

(I have tried " ted-2.21-1.src.rpm" by make. The error msg is the same: "/usr/bin/ld: /usr/bin/ld: BFD 2.17.50.0.6-14.el5 20061020 internal error, aborting at ../../bfd/bfd.c line 506 in _bfd_default_error_handler" ).
5) Out put of $ rpm -qa | grep binutils is:
binutils-2.17.50.0.6-14.el5

It seems that binutils is not good here.

My question is that
1) is there any workaround to install Ted in my computer?
2) if I have to upgrade binutils, will this upgrading of binutils cause other system conflicit? Because binutils and its dependencies are used by many packages.
3) Where can I find newer version of binutils?
Thanks for any suggestions.

User avatar
TrevorH
Forum Moderator
Posts: 27720
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Problem in compiling Ted-2.21

Post by TrevorH » 2011/03/25 00:34:34

Looks like it's finding the 32 bit version of libtiff.so when you need it to find the 64 bit version in /usr/lib64. Perhaps you need to adjust the spec file to look in the right place.

Oh, and BTW, building as root is not a good idea. Look in the [url=http://wiki.centos.org/TipsAndTricks/YumAndRPM]wiki[/url], specifically at point 13 about how to set yourself up to do so as a normal user.

craigliu
Posts: 33
Joined: 2011/03/07 20:56:32

Re: Problem in compiling Ted-2.21

Post by craigliu » 2011/03/25 16:51:57

Thank TrevorH for your reply. I give up compiling Ted and I don't know about changing .spec files.

Today I just copy all Ted files from our old computers and Ted works now.

BTW your suggested wiki is really useful. Many of tricks in this wiki are what I want to have. Thanks very much.

Post Reply

Return to “CentOS 5 - X86_64,s390(x) and PowerPC Support”