ImageMagick-6.3.5-7 missing explicit reference to openmp
Posted: 2007-09-04T08:28:08-07:00
After configure/make for building a RPM file I discovered that (at least) on Fedora 7 openmp support is detected.
Then OPENMP_CFLAGS contains -fopenmp and LDFLAGS contains -fopenmp BUT the .pc files are not updated to reflect the mandatory reference to openmp.
Linking with Wand then fails:
When explicitly adding -fopenmp it now links correctly.
I have no easy solution for this but it can certainly be fixed by updating the .pc files (?)
Then OPENMP_CFLAGS contains -fopenmp and LDFLAGS contains -fopenmp BUT the .pc files are not updated to reflect the mandatory reference to openmp.
Linking with Wand then fails:
Code: Select all
gcc -g -Wall -o matrixview driver.o matrixview.o matrixview_textures.o -lbz2 -lWand -lMagick -lpthread -lGLU -lGL -lSM -lICE -lX11 -lm
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libMagick.so: undefined reference to `GOMP_parallel_end'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libMagick.so: undefined reference to `omp_get_num_threads'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libMagick.so: undefined reference to `GOMP_parallel_start'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libMagick.so: undefined reference to `omp_get_thread_num'
collect2: ld returned 1 exit status
I have no easy solution for this but it can certainly be fixed by updating the .pc files (?)