[FFmpeg-user] cannot build shared libraries on Solaris

Eric Thomas eric21797 at gmail.com
Thu Dec 20 16:24:32 EET 2018


Hello,



My system administrator downloaded the FFmpeg 4.1 source code this week,
and I have been trying to build a set of shared libraries in Solaris. I
have successfully

built the static libraries.



Here is some system info:



uname –a

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



make –v

     GNU Make 3.81



gcc –v

     Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs

     Configured with:
/sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure
–prefix=/usr/sfw –with-as=/usr/ccs/bin/as –without-gnu-as
–with-ld=/usr/ccs/bin/ld –without-gnu-ld –enable-language=c,c++
--enable-shared

     Thread model: posix

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



sed –version

    GNU sed 4.5





Configure cmd

     bash ./configure –prefix=/home/ffmpeg/FFmpeg-4.1 -–enable-shared



Here is the console output, after running ‘make’, then ‘make V=1
ffmpeg’, then ‘make V=1 ffmpeg’ again:



gcc –shared –Wl,–h, libavutil.so. –Wl,-M,libavutil.ver –Llibavcodec
–Llibavdevice –Llibavfilter –Llibavformat –Llibavresample –Llibavutil
–Llibpostproc –Llibswscale –Llibswresample
–Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample
–o libavutil/libavutil.so.
libavutil/../compat/atomics/pthread/stdatomic.o libavutil/adler32.o
libavutil/aes.o libavutil/aes_ctr.o libavutil/audio_fifo.o
libavutil/avstring.o libavutil/base64.o libavutil/blowfish.o
libavutil/bprint.o libavutil/buffer.o libavutil/camellia.o
libavutil/cast5.o libavutil/channel_layout.o libavutil/color_utils.o
libavutil/cpu.o libavutil/crc.o libavutil/des.o libavutil/dict.o
libavutil/display.o libavutil/downmix_info.o
libavutil/encryption_info.o libavutil/error.o libavutil/eval.o
libavutil/fifo.o libavutil/file.o libavutil/file_open.o
libavutil/fixed_dsp.o libavutil/float_dsp.o libavutil/frame.o
libavutil/hash.o libavutil/hmac.o libavutil/hwcontext.o
libavutil/imgutils.o libavutil/integer.o libavutil/intmath.o
libavutil/lfg.o libavutil/lls.o libavutil/log.o libavutil/log2_tab.o
libavutil/lzo.o libavutil/mastering_display_metadata.o
libavutil/mathematics.o libavutil/md5.o libavutil/mem.o
libavutil/murmur3.o libavutil/opt.o libavutil/parseutils.o
libavutil/pixdesc.o libavutil/pixelutils.o libavutil/random_seed.o
libavutil/rational.o libavutil/rc4.o libavutil/reverse.o
libavutil/ripemd.o libavutil/samplefmt.o libavutil/sha.o
libavutil/sha512.o libavutil/slicethread.o libavutil/spherical.o
libavutil/stereo3d.o libavutil/tea.o libavutil/threadmessage.o
libavutil/time.o libavutil/timecode.o libavutil/tree.o
libavutil/twofish.o libavutil/utils.o libavutil/xga_font_data.o
libavutil/xtea.o –lrt –pthread –lrt –lm

gcc: unrecognized option `-pthread’

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_unlock              0x18
libavutil/../compat/atomics/pthread/stdatomic.o

pthread_mutex_unlock              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





Can someone identify the problem?



Thanks!

Eric


More information about the ffmpeg-user mailing list