FFmpeg 4.0.3 make fails on Solaris

Questions that occur when trying to compile FFmpeg.
Post Reply
EThomas
Posts: 1
Joined: Wed Dec 12, 2018 6:50 pm

FFmpeg 4.0.3 make fails on Solaris

Post by EThomas » Wed Dec 12, 2018 7:32 pm

I am trying to build a set of FFmpeg 4.0.3 shared libraries under Solaris. I have been successful in building static libraries.

My configure command looks like:

Code: Select all

bash ./configure --prefix=/myhome/ffmpeg/FFmpeg-4.0.3 --enable-shared  
then I run make:

Code: Select all

[myhome/ffmpeg/FFmpeg-4.0.3]$ make  
Text relocation remains                       referenced  
    against symbol              offset        in file  
.data(section)                  0x0           libavutil/../compat/atomics/pthread/stdatomic.o  
.data(section)                  0xc           libavutil/../compat/atomics/pthread/stdatomic.o  
.data(section)                  0x14          libavutil/../compat/atomics/pthread/stdatomic.o  
.data(section)                  0x20          libavutil/../compat/atomics/pthread/stdatomic.o  
pthread_mutex_lock              0x4           libavutil/../compat/atomics/pthread/stdatomic.o  
pthread_mutex_lock              0x8           libavutil/../compat/atomics/pthread/stdatomic.o  
pthread_mutex_lock              0x18          libavutil/../compat/atomics/pthread/stdatomic.o  
pthread_mutex_lock              0x1c          libavutil/../compat/atomics/pthread/stdatomic.o  
ld: fatal: relocations remain against allocatable but non-writable sections  
collect2: ld returned 1 exit status  
make: *** [libavutil/libavutil.so.] Error 1  
I ran configure again, with the additional flag --disable-pthreads, but got the same results.
I ran configure again, with the additional flag: --extra-cflags="-fPIC" but got the same results.

Any help is greatly appreciated!

Some helpful info:

Code: Select all

uname –a  
   SunOS devm 5.10 Generic_150400-61 sun4u sparc SUNW,Sun-Fire-V490

Code: Select all

make –v  
  GNU Make 3.81  

Code: Select all

gcc -v  
  gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)  

Post Reply