Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to install the imagick extension for PHP, but PHP is unable to load it.

I believe the reason is due to a bug in gcc 4.2 as described here. It looks like you can get round this bug by compiling ImageMagick with the --disable-openmp flag as described in this question 58340 - imagick-php-extension-fails-to-load, but when I run 'make' it ends with the following output:

 CC     utilities/animate.o
  CCLD   utilities/animate
magick/.libs/libMagickCore.so: undefined reference to `GOMP_parallel_loop_dynamic_start'
magick/.libs/libMagickCore.so: undefined reference to `GOMP_loop_dynamic_next'
magick/.libs/libMagickCore.so: undefined reference to `GOMP_parallel_end'
magick/.libs/libMagickCore.so: undefined reference to `omp_set_num_threads'
magick/.libs/libMagickCore.so: undefined reference to `GOMP_critical_name_start'
magick/.libs/libMagickCore.so: undefined reference to `GOMP_loop_end_nowait'
magick/.libs/libMagickCore.so: undefined reference to `GOMP_critical_start'
magick/.libs/libMagickCore.so: undefined reference to `GOMP_critical_name_end'
magick/.libs/libMagickCore.so: undefined reference to `GOMP_critical_end'
magick/.libs/libMagickCore.so: undefined reference to `omp_get_max_threads'
magick/.libs/libMagickCore.so: undefined reference to `GOMP_parallel_start'
magick/.libs/libMagickCore.so: undefined reference to `omp_get_thread_num'
magick/.libs/libMagickCore.so: undefined reference to `GOMP_loop_dynamic_start'
collect2: ld returned 1 exit status
make[1]: *** [utilities/animate] Error 1
make[1]: Leaving directory `/usr/src/ImageMagick-6.5.8-4'
make: *** [all] Error 2

I'm running:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04"

and I'm trying to install ImageMagick 6.5.8-4 from source.

Is there any way I can get round this issue?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Have you run "make clean" since you started?

share|improve this answer
    
Thanks. That did the trick. Completely forgot about that command. –  Steve Todd Dec 11 '09 at 15:35
    
:))))) I was expecting to see something more complicated here :)))) –  kolypto Dec 12 '09 at 18:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.