Răspuns: Cannot install ffmpeg Solaris
Thanks for your response. I used "--disable-pthreads" because I'm getting warnings like: gcc: unrecognized option `-pthread' (see attached file). --disable-protocol=udp - if I not use this parameter I'm getting a compilation error: libavformat/udp.c: In function `udp_join_multicast_group':libavformat/udp.c:174: error: storage size of 'mreq' isn't knownlibavformat/udp.c:174: warning: unused variable `mreq'libavformat/udp.c: In function `udp_leave_multicast_group':libavformat/udp.c:206: error: storage size of 'mreq' isn't knownlibavformat/udp.c:206: warning: unused variable `mreq'gmake: *** [libavformat/udp.o] Error 1 So i recompiled ffmpeg using the following configuration: ./configure --disable-mmx --disable-protocol=udp The result is the same. I attached full config and compilation console. Also I attached "config.log" file, maybe helps you finding the issue. I tryed removing --disable-mmx but same error. Additional info: gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) gmake version is 3.82 EDIT: I forgot to add the output what you requested: bash-3.2# gmake V=1 ffmpeggcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample -o ffmpeg_g cmdutils.o ffmpeg_opt.o ffmpeg_filter.o ffmpeg.o -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -lsocket -lnsl -liconv -lX11 -lm -lbz2 -lz -pthread -lrtgcc: unrecognized option `-pthread'Undefined first referenced symbol in fileff_udplite_protocol libavformat/libavformat.a(allformats.o)ld: fatal: symbol referencing errors. No output written to ffmpeg_gcollect2: ld returned 1 exit statusgmake: *** [ffmpeg_g] Error 1 bash-3.2# gmake V=1 ffmpeggcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample -o ffmpeg_g cmdutils.o ffmpeg_opt.o ffmpeg_filter.o ffmpeg.o -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -lsocket -lnsl -liconv -lX11 -lm -lbz2 -lz -pthread -lrtgcc: unrecognized option `-pthread'Undefined first referenced symbol in fileff_udplite_protocol libavformat/libavformat.a(allformats.o)ld: fatal: symbol referencing errors. No output written to ffmpeg_gcollect2: ld returned 1 exit statusgmake: *** [ffmpeg_g] Error 1 Regards Cristian În Marţi, 3 Februarie 2015 18:30:29, Dustinta Cristian <dst_cristi_16@yahoo.ro> a scris: Thanks for your response. I used "--disable-pthreads" because I'm getting warnings like: gcc: unrecognized option `-pthread' (see attached file). --disable-protocol=udp - if I not use this parameter I'm getting a compilation error: libavformat/udp.c: In function `udp_join_multicast_group':libavformat/udp.c:174: error: storage size of 'mreq' isn't knownlibavformat/udp.c:174: warning: unused variable `mreq'libavformat/udp.c: In function `udp_leave_multicast_group':libavformat/udp.c:206: error: storage size of 'mreq' isn't knownlibavformat/udp.c:206: warning: unused variable `mreq'gmake: *** [libavformat/udp.o] Error 1 So i recompiled ffmpeg using the following configuration: ./configure --disable-mmx --disable-protocol=udp The result is the same. I attached full config and compilation console. Also I attached "config.log" file, maybe helps you finding the issue. Additional info: gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) gmake version is 3.82 Regards Cristian În Marţi, 3 Februarie 2015 15:35:55, Carl Eugen Hoyos <cehoyos@ag.or.at> a scris: Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
./configure --disable-mmx --disable-yasm
Why are you using --disable-asm --disable-yasm? Please remove them, if there is a problem, it would indicate a bug (that I would like to fix).
--disable-pthreads
Why are you using --disable-pthreads?
--disable-protocol=udp
Why are you disabling udp? Is there a bug that we should fix?
--extra-libs="-liconv"
This should not make a difference, does it?
Compilation fails with the following error "ld: fatal: symbol referencing errors.
Please run "make V=1 ffmpeg" twice and post the complete, uncut console output of the second run. Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
I used "--disable-pthreads" because I'm getting warnings like: gcc: unrecognized option `-pthread'
Please ignore the warnings, do not add --disable-pthreads!
libavformat/udp.c: In function `udp_join_multicast_group': libavformat/udp.c:174: error: storage size of 'mreq' isn't known
I would like to understand this better: Please run "./configure && make libavformat/udp.o", then run "make V=1 libavformat/udp.o" (twice) and provide the complete console output of the last run. (Please do not post the output of all runs.) What does "uname -a" show for you? Consider attaching your "/usr/include/netinet/in.h" file.
I tryed removing --disable-mmx but same error.
If the option makes no difference, please remove it. To fix compilation, please use: $ ./configure --disable-protocol=udp,udplite && make Your email is very difficult to read: http://thread.gmane.org/gmane.comp.video.ffmpeg.user/55663 Consider fixing your email client. Thank you for the report, Carl Eugen
bash-3.2# uname -aSunOS su240tm08 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Fire-V240
I ran "./configure && gmake libavformat/udp.o" ( I used gmake instead of make because I'm using Solaris) and then I ran twice "gmake V=1 libavformat/udp.o". Here is the output of the second run:
bash-3.2# gmake V=1 libavformat/udp.ogcc -I. -I./ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DZLIB_CONST -DHAVE_AV_CONFIG_H -std=c99 -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wundef -Wmissing-prototypes -Wstrict-prototypes -Wno-parentheses -Wno-switch -Wno-format-zero-length -O3 -fno-math-errno -Wformat -MMD -MF libavformat/udp.d -MT libavformat/udp.o -c -o libavformat/udp.o libavformat/udp.cgcc: unrecognized option `-pthread'libavformat/udp.c: In function `udp_join_multicast_group':libavformat/udp.c:174: error: storage size of 'mreq' isn't knownlibavformat/udp.c:174: warning: unused variable `mreq'libavformat/udp.c: In function `udp_leave_multicast_group':libavformat/udp.c:206: error: storage size of 'mreq' isn't knownlibavformat/udp.c:206: warning: unused variable `mreq'gmake: *** [libavformat/udp.o] Error 1
Also I used your sugested configuration(./configure --prefix=/tmp --disable-protocol=udp,udplite && gmake) and compilation worked fine. I'm getting an error now when i try to install :bash-3.2# gmake installINSTALL install-progs-yesINSTALL ffmpegINSTALL ffprobeinstall: The -c, -f, -n options each require a directory following!gmake: *** [install-progs] Error 2 Regards Cristian În Joi, 5 Februarie 2015 11:21:18, Carl Eugen Hoyos <cehoyos@ag.or.at> a scris: Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
I used "--disable-pthreads" because I'm getting warnings like: gcc: unrecognized option `-pthread'
Please ignore the warnings, do not add --disable-pthreads!
libavformat/udp.c: In function `udp_join_multicast_group': libavformat/udp.c:174: error: storage size of 'mreq' isn't known
I would like to understand this better: Please run "./configure && make libavformat/udp.o", then run "make V=1 libavformat/udp.o" (twice) and provide the complete console output of the last run. (Please do not post the output of all runs.) What does "uname -a" show for you? Consider attaching your "/usr/include/netinet/in.h" file.
I tryed removing --disable-mmx but same error.
If the option makes no difference, please remove it. To fix compilation, please use: $ ./configure --disable-protocol=udp,udplite && make Your email is very difficult to read: http://thread.gmane.org/gmane.comp.video.ffmpeg.user/55663 Consider fixing your email client. Thank you for the report, Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
I'm getting an error now when i try to install
You have to pass --install=ginstall to configure on Solaris but note that you don't have to install, just copy the ffmpeg executable where you need it if you want. (I never install.) Am I correct that you cannot upload the file /usr/include/netinet/in.h ? Carl Eugen
Yes I cannot upload usr/include/netinet/in.h .... I'm a litlle confused with executable files. I have an old version of ffmeg installed and I have this executables "libavformat.so" , "libavutil.so" etc. can i find somewhere this files (with so extensions)? În Joi, 5 Februarie 2015 16:52:42, Carl Eugen Hoyos <cehoyos@ag.or.at> a scris: Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
I'm getting an error now when i try to install
You have to pass --install=ginstall to configure on Solaris but note that you don't have to install, just copy the ffmpeg executable where you need it if you want. (I never install.) Am I correct that you cannot upload the file /usr/include/netinet/in.h ? Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
Yes I cannot upload usr/include/netinet/in.h ....
Why not?
I'm a litlle confused with executable files. I have an old version of ffmeg installed and I have this executables "libavformat.so" , "libavutil.so" etc. can i find somewhere this files (with so extensions)?
If you want to build shared libraries, you have to pass --enable-shared to configure. Carl Eugen
My e-mail client didn't worked very well, and i could not attach items. Now works fine and i attached in.h file. Also i added --enable-shared parameter to configuration scrip and i got an error: ld: fatal: relocations remain against allocatable but non-writable sectionscollect2: ld returned 1 exit statusgmake: *** [libavutil/libavutil.so.52] Error 1 Any idea? Thanks.
Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
Also i added --enable-shared parameter to configuration scrip and i got an error:
If you get a linking error when compiling FFmpeg and you request help on this mailing list, please run "make V=1 ffmpeg" twice and post the complete, uncut console output of the second run here. (Is this surprising?) And please confirm that you ran "make distclean". Carl Eugen
Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
i attached in.h file.
Thank you! Could you test a change to configure for me to fix the udp-related bug? If you change "LABELED_BRAND_NAME" in line 4286 into "SOLARIS_BRAND_NAME", does it fix the udp compilation error, ie with the change applied, does the following work? $ ./configure && gmake ffmpeg Thank you, Carl Eugen
I changed "LABELED_BRAND_NAME" into "SOLARIS_BRAND_NAME" in configure file. Just a little remark it was line 4260 not 4286 : ---> elif check_${pfx}cpp_condition sys/brand.h "defined LABELED_BRAND_NAME"; then <--- The problem still persist: libavformat/udp.c: In function `udp_join_multicast_group':libavformat/udp.c:174: error: storage size of 'mreq' isn't knownlibavformat/udp.c:174: warning: unused variable `mreq'libavformat/udp.c: In function `udp_leave_multicast_group':libavformat/udp.c:206: error: storage size of 'mreq' isn't knownlibavformat/udp.c:206: warning: unused variable `mreq'gmake: *** [libavformat/udp.o] Error 1 Here is the output of gmake V=1 ffmpeg (second run) : bash-3.2# gmake V=1 ffmpeg gcc -I. -I./ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DZLIB_CONST -DHAVE_AV_CONFIG_H -std=c99 -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wundef -Wmissing-prototypes -Wstrict-prototypes -Wno-parentheses -Wno-switch -Wno-format-zero-length -O3 -fno-math-errno -Wformat -MMD -MF libavformat/udp.d -MT libavformat/udp.o -c -o libavformat/udp.o libavformat/udp.cgcc: unrecognized option `-pthread'libavformat/udp.c: In function `udp_join_multicast_group':libavformat/udp.c:174: error: storage size of 'mreq' isn't knownlibavformat/udp.c:174: warning: unused variable `mreq'libavformat/udp.c: In function `udp_leave_multicast_group':libavformat/udp.c:206: error: storage size of 'mreq' isn't knownlibavformat/udp.c:206: warning: unused variable `mreq'gmake: *** [libavformat/udp.o] Error 1 În Luni, 9 Februarie 2015 14:40:42, Carl Eugen Hoyos <cehoyos@ag.or.at> a scris: Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
i attached in.h file.
Thank you! Could you test a change to configure for me to fix the udp-related bug? If you change "LABELED_BRAND_NAME" in line 4286 into "SOLARIS_BRAND_NAME", does it fix the udp compilation error, ie with the change applied, does the following work? $ ./configure && gmake ffmpeg Thank you, Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
I changed "LABELED_BRAND_NAME" into "SOLARIS_BRAND_NAME" in configure file. Just a little remark it was line 4260 not 4286
(Only current FFmpeg git head is supported on this mailing list.)
The problem still persist:
If you want to help, please search for the following line in your local config.log: check_cpp_condition features.h defined __UCLIBC__ And post this line and the next 50 lines here. Please try very hard to keep line breaks, consider attaching a txt file. Thank you, Carl Eugen
I attached your requested info. Also if you can help me with this issue I'll apreciate : ./configure --enable-shared --prefix=/tmp/ffmpeg-2.5.3/install/ --disable-protocol=udp,udplite && gmake ld: fatal: relocations remain against allocatable but non-writable sectionscollect2: ld returned 1 exit status Second run of gmake V=1 ffmpeg: bash-3.2# gmake V=1 ffmpeggcc -shared -Wl,-h,libavutil.so.54 -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.54 libavutil/adler32.o libavutil/aes.o libavutil/atomic.o libavutil/audio_fifo.o libavutil/avstring.o libavutil/base64.o libavutil/blowfish.o libavutil/bprint.o libavutil/buffer.o libavutil/cast5.o libavutil/channel_layout.o libavutil/cpu.o libavutil/crc.o libavutil/des.o libavutil/dict.o libavutil/display.o libavutil/downmix_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/imgutils.o libavutil/intmath.o libavutil/lfg.o libavutil/lls.o libavutil/log.o libavutil/log2_tab.o libavutil/lzo.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/ripemd.o libavutil/samplefmt.o libavutil/sha.o libavutil/sha512.o libavutil/stereo3d.o libavutil/threadmessage.o libavutil/time.o libavutil/timecode.o libavutil/tree.o libavutil/utils.o libavutil/xga_font_data.o libavutil/xtea.o -lsocket -lnsl -liconv -lX11 -lm -lbz2 -lz -pthread -lrtgcc: unrecognized option `-pthread'Text relocation remains referenced against symbol offset in file.umul 0x1f8 libavutil/display.o.rodata (section) 0x8 libavutil/display.o.rodata (section) 0x10 libavutil/display.o.rodata (section) 0x7c libavutil/display.o.rodata (section) 0x80 libavutil/display.o.rodata (section) 0xa8 libavutil/display.o.rodata (section) 0xb0 libavutil/display.o.rodata (section) 0xd8 libavutil/display.o.rodata (section) 0xdc libavutil/display.o.rodata (section) 0xe0 libavutil/display.o.rodata (section) 0xe8 libavutil/display.o.rodata (section) 0x104 libavutil/display.o.rodata (section) 0x10c libavutil/display.o.rodata (section) 0x110 libavutil/display.o.rodata (section) 0x118 libavutil/display.o.rodata (section) 0x144 libavutil/display.o.rodata (section) 0x148 libavutil/display.o.rodata (section) 0x14c libavutil/display.o.rodata (section) 0x158 libavutil/display.o.rem 0x1e0 libavutil/display.oatan2 0xd0 libavutil/display.osin 0x13c libavutil/display.ocos 0x128 libavutil/display.ohypot 0x34 libavutil/display.ohypot 0x74 libavutil/display.old: fatal: relocations remain against allocatable but non-writable sectionscollect2: ld returned 1 exit statusgmake: *** [libavutil/libavutil.so.54] Error 1 This error appears when I pass --enable-shared parameter. Thanks În Marţi, 10 Februarie 2015 13:29:53, Carl Eugen Hoyos <cehoyos@ag.or.at> a scris: Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
I changed "LABELED_BRAND_NAME" into "SOLARIS_BRAND_NAME" in configure file. Just a little remark it was line 4260 not 4286
(Only current FFmpeg git head is supported on this mailing list.)
The problem still persist:
If you want to help, please search for the following line in your local config.log: check_cpp_condition features.h defined __UCLIBC__ And post this line and the next 50 lines here. Please try very hard to keep line breaks, consider attaching a txt file. Thank you, Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
I attached your requested info.
Thank you! I would still try to solve this riddle, how does the following file look like? /usr/include/sys/brand.h
Also if you can help me with this issue I'll apreciate :
I thought I already did: http://thread.gmane.org/gmane.comp.video.ffmpeg.user/55663/focus=55724 (You have to confirm that you ran "make distclean") Carl Eugen
I would still try to solve this riddle, how does the following file look like? /usr/include/sys/brand.h
Find attached requested file.
(You have to confirm that you ran "make distclean") I run gmake distclean... After that ffmpeg compiled fine. Thank you for your suport. If you need more info about the "udp" bug reply. Thanks În Marţi, 10 Februarie 2015 14:29:59, Carl Eugen Hoyos <cehoyos@ag.or.at> a scris:
Dustinta Cristian <dst_cristi_16-at-yahoo.ro <at> ffmpeg.org> writes:
I attached your requested info.
Thank you! I would still try to solve this riddle, how does the following file look like? /usr/include/sys/brand.h
Also if you can help me with this issue I'll apreciate :
I thought I already did: http://thread.gmane.org/gmane.comp.video.ffmpeg.user/55663/focus=55724 (You have to confirm that you ran "make distclean") Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
On Wednesday 11 February 2015 09:19:16 am Dustinta Cristian wrote:
If you need more info about the "udp" bug reply.
Please test if attached patch fixes the issue with "./configure && gmake ffmpeg" Thank you, Carl Eugen
participants (2)
-
Carl Eugen Hoyos -
Dustinta Cristian