Failed rpm build on CentOS 5.2 x86_64

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Failed rpm build on CentOS 5.2 x86_64

Post by dognose »

Does IM build on 64 bit, or does it need any special workarounds?

rpmbuild --bb ImageMagick.spec

Processing files: ImageMagick-c++-devel-6.4.8-7
error: File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/bin/Magick++-config
error: File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/libMagick++.so
error: File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/pkgconfig/Magick++.pc
error: File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/pkgconfig/ImageMagick++.pc
error: File not found by glob: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/share/man/man1/Magick++-config.*
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.70316
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd ImageMagick-6.4.8-7
+ DOCDIR=/var/tmp/ImageMagick-6.4.8-7-root-root/usr/share/doc/ImageMagick-c++-devel-6.4.8
+ export DOCDIR
+ rm -rf /var/tmp/ImageMagick-6.4.8-7-root-root/usr/share/doc/ImageMagick-c++-devel-6.4.8
+ /bin/mkdir -p /var/tmp/ImageMagick-6.4.8-7-root-root/usr/share/doc/ImageMagick-c++-devel-6.4.8
+ cp -pr Magick++/examples /var/tmp/ImageMagick-6.4.8-7-root-root/usr/share/doc/ImageMagick-c++-devel-6.4.8
+ exit 0

RPM build errors:
File not found by glob: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/libMagick++.so.*
File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/bin/Magick++-config
File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/libMagick++.so
File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/pkgconfig/Magick++.pc
File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/pkgconfig/ImageMagick++.pc
File not found by glob: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/share/man/man1/Magick++-config.*
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Failed rpm build on CentOS 5.2 x86_64

Post by anthony »

Did you try my instructions in Im Examples. APIs
http://www.imagemagick.org/Usage/api/#building

Someone has mentioned that it works for CentOS
I have not tried this myself.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Re: Failed rpm build on CentOS 5.2 x86_64

Post by dognose »

Yes, I'm quite familiar with building rpms from source.

It should be as simple as "rpmbuild --rebuild package.srpm"

I've built IM previously, the same version (6.3.8) that was reported here to build. I haven't been able to build any since... though I've only been trying intermittently.

I'm guessing the problem is with inconsistencies in the Magic++ makefile(s).. I'm just not good at finding those types of problems.

Ironically, I don't even need Magic++, just the base install.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Failed rpm build on CentOS 5.2 x86_64

Post by anthony »

dognose wrote:Yes, I'm quite familiar with building rpms from source.

It should be as simple as "rpmbuild --rebuild package.srpm"
Except if you want to change teh configuration items by modifing the 'spec' file before building the SRPM. I need to add a couple of items, and use the latest SVN beta release (bleeding edge) so I first create the SRPM then buils the RPM's from that.

I don't have any trouble with the Magick++ aspect, on fedora (8 or 10) so I am not certain what problem you are having.

I suggest getting a SVN copy, or the last TAR file, and building the SRPM yourself as well.

Missing files are not a problem for me.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Re: Failed rpm build on CentOS 5.2 x86_64

Post by dognose »

Success.

I was finally able to get the rpm built.

I just had to rip out references to magick++ in the spec file, and compensate for the extra files from the make errors.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Failed rpm build on CentOS 5.2 x86_64

Post by anthony »

Do you have notes on what you did to the spec file to make it work with CentOS
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply