6.9.0-2 fails tests on CentOS 5.11

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
simon.agz
Posts: 5
Joined: 2014-12-30T06:07:18-07:00
Authentication code: 6789

6.9.0-2 fails tests on CentOS 5.11

Post by simon.agz »

Hello -

We are building RPMs using the instructions at http://www.imagemagick.org/Usage/api/#building and the process is failing testing with errors like this:

Code: Select all

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operat
ion not permitted
test-suite.log can be provided in full, but that's the majority of the errors.
simon.agz
Posts: 5
Joined: 2014-12-30T06:07:18-07:00
Authentication code: 6789

Re: 6.9.0-2 fails tests on CentOS 5.11

Post by simon.agz »

test-suite.log below. For reference I have also tried installation on a new VM running Centos 5.11 and it also fails on tests.

Code: Select all

=========================================
   ImageMagick 6.9.0: ./test-suite.log
=========================================

# TOTAL: 59
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  57
# XPASS: 0
# ERROR: 2

.. contents:: :depth: 2

FAIL: tests/cli-pipe
====================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..8
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-identify: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
not ok
FAIL: tests/cli-pipe.tap 1
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-identify: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
not ok
FAIL: tests/cli-pipe.tap 2
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
not ok
FAIL: tests/cli-pipe.tap 3
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-identify: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
not ok
FAIL: tests/cli-pipe.tap 4
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-identify: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
not ok
FAIL: tests/cli-pipe.tap 5
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-identify: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
not ok
FAIL: tests/cli-pipe.tap 6
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-identify: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
not ok
FAIL: tests/cli-pipe.tap 7
not ok
FAIL: tests/cli-pipe.tap 8

ERROR: tests/cli-colorspace
===========================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/utilities/.libs/lt-convert: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..19
Average "rose:" Color                       sRGB(rose)
Too Dark Color                              sRGB(rose)->RGB result
Too Light Color                             RGB(rose)->sRGB result

Sanity Failure: Average expected to be 145,89,80 - ABORTING
Sanity Failure: Too Dark expected to be 73,26,21 - ABORTING
Sanity Failure: Too Light expected to be 199,160,152 - ABORTING
ERROR: tests/cli-colorspace.tap - too few tests run (expected 19, got 0)
ERROR: tests/cli-colorspace.tap - exited with status 1

FAIL: tests/validate-colorspace
===============================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-validate: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/validate-colorspace.tap 1

FAIL: tests/validate-compare
============================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-validate: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/validate-compare.tap 1

FAIL: tests/validate-composite
==============================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-validate: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/validate-composite.tap 1

FAIL: tests/validate-convert
============================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-validate: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/validate-convert.tap 1

FAIL: tests/validate-formats-disk
=================================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-validate: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/validate-formats-disk.tap 1

FAIL: tests/validate-formats-map
================================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-validate: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/validate-formats-map.tap 1

FAIL: tests/validate-formats-memory
===================================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-validate: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/validate-formats-memory.tap 1

FAIL: tests/validate-identify
=============================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-validate: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/validate-identify.tap 1

FAIL: tests/validate-import
===========================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-validate: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/validate-import.tap 1

FAIL: tests/validate-montage
============================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-validate: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/validate-montage.tap 1

FAIL: tests/validate-stream
===========================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-validate: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/validate-stream.tap 1

FAIL: tests/drawtest
====================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-drawtest: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/drawtest.tap 1

FAIL: tests/wandtest
====================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/tests/.libs/lt-wandtest: error while loading shared libraries: libMagickWand-6.Q16.so.2: failed to map segment from shared object: Operation not permitted
1..1
not ok
FAIL: tests/wandtest.tap 1

FAIL: Magick++/tests/tests
==========================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/tests/.libs/lt-appendImages: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
1..12
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/tests/.libs/lt-attributes: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/tests/tests.tap 1
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/tests/.libs/lt-averageImages: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/tests/tests.tap 2
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/tests/.libs/lt-coalesceImages: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/tests/tests.tap 3
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/tests/.libs/lt-coderInfo: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/tests/tests.tap 4
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/tests/.libs/lt-color: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/tests/tests.tap 5
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/tests/.libs/lt-colorHistogram: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/tests/tests.tap 6
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/tests/.libs/lt-exceptions: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/tests/tests.tap 7
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/tests/.libs/lt-montageImages: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/tests/tests.tap 8
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/tests/.libs/lt-morphImages: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/tests/tests.tap 9
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/tests/.libs/lt-readWriteBlob: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/tests/tests.tap 10
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/tests/.libs/lt-readWriteImages: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/tests/tests.tap 11
not ok
FAIL: Magick++/tests/tests.tap 12

FAIL: Magick++/demo/demos
=========================

/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-analyze: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
1..24
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-button: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 1
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-demo: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 2
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-flip: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 3
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-gravity: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 4
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-piddle: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 5
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-shapes: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 6
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 7
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 8
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 9
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 10
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 11
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 12
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 13
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 14
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 15
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 16
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 17
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 18
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 19
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 20
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 21
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 22
/usr/src/redhat/BUILD/ImageMagick-6.9.0-2/Magick++/demo/.libs/lt-zoom: error while loading shared libraries: libMagick++-6.Q16.so.5: failed to map segment from shared object: Operation not permitted
not ok
FAIL: Magick++/demo/demos.tap 23
not ok
FAIL: Magick++/demo/demos.tap 24
simon.agz
Posts: 5
Joined: 2014-12-30T06:07:18-07:00
Authentication code: 6789

Re: 6.9.0-2 fails tests on CentOS 5.11

Post by simon.agz »

Just tried to build 6.9.0-3 and this fails with the same results. As the error points to libMagick++-6.Q16.so.5 I removed that from /usr/lib64 to see if that had an effect and it didn't. I also tried building on a clean 5.11 VM and still no joy, but the failures were different.

I can see that other people are having problems with RPMs on CentOS 5 so there are clearly problems.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: 6.9.0-2 fails tests on CentOS 5.11

Post by dlemstra »

With a quick google search I was able to find the following: http://admin-ahead.com/portal/knowledge ... itted.html. Not a linux/unix expert so I don't know if that will help.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
simon.agz
Posts: 5
Joined: 2014-12-30T06:07:18-07:00
Authentication code: 6789

Re: 6.9.0-2 fails tests on CentOS 5.11

Post by simon.agz »

Actually, that's quite possible, will give that a try, thanks.
simon.agz
Posts: 5
Joined: 2014-12-30T06:07:18-07:00
Authentication code: 6789

Re: 6.9.0-2 fails tests on CentOS 5.11

Post by simon.agz »

That was the solution as /tmp was mounted noexec. The actual working solution was to create an .rpmmacros file in /root with the following line:

Code: Select all

%_tmppath %/usr/local/src/tmp
Setting $TMP or $TMPDIR as an environment variable doesn't work. I would think it could also be set in ImageMagick.spec.
Post Reply