Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

Compiling on AIX 7.1

Troubleshooting compilation problems on all platforms.

Compiling on AIX 7.1

Postby epitaxial » Sat Feb 25, 2017 9:46 pm

Hello all, I am trying to compile ffmpeg 3.2.4 under AIX 7.1 with gcc 4.8.5 and running into a problem. Forgive my ignorance as I am a hardware guy :)

Anyhow here is the problem

Code: Select all
CC      libavfilter/af_apulsator.o
In file included from /usr/include/sys/context.h:39:0,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.5/include-fixed/sys/signal.h:388,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.5/include-fixed/sys/wait.h:66,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.5/include-fixed/stdlib.h:349,
                 from ./libavutil/avassert.h:30,
                 from libavfilter/af_apulsator.c:21:
libavfilter/af_apulsator.c:50:12: error: expected identifier or '(' before numeric constant
     double hz;
            ^
In file included from ./libavutil/error.h:28:0,
                 from ./libavutil/mem.h:34,
                 from ./libavutil/common.h:464,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/avassert.h:31,
                 from libavfilter/af_apulsator.c:21:
libavfilter/af_apulsator.c:79:46: error: expected identifier before numeric constant
     { "hz",          "set frequency", OFFSET(hz),        AV_OPT_TYPE_DOUBLE, {.dbl=2},    0.01,          100, FLAGS },
                                              ^
libavfilter/af_apulsator.c:79:39: note: in expansion of macro 'OFFSET'
     { "hz",          "set frequency", OFFSET(hz),        AV_OPT_TYPE_DOUBLE, {.dbl=2},    0.01,          100, FLAGS },
                                       ^
In file included from /usr/include/sys/context.h:39:0,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.5/include-fixed/sys/signal.h:388,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.5/include-fixed/sys/wait.h:66,
                 from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.5/include-fixed/stdlib.h:349,
                 from ./libavutil/avassert.h:30,
                 from libavfilter/af_apulsator.c:21:
libavfilter/af_apulsator.c: In function 'config_input':
libavfilter/af_apulsator.c:211:31: error: expected identifier before numeric constant
     case UNIT_HZ:   freq = s->hz;               break;
                               ^
common.mak:60: recipe for target 'libavfilter/af_apulsator.o' failed
make: *** [libavfilter/af_apulsator.o] Error 1


Any ideas?
epitaxial
 
Posts: 2
Joined: Sat Feb 25, 2017 9:34 pm

Re: Compiling on AIX 7.1

Postby llogan » Sun Feb 26, 2017 12:02 am

I have no experience with AIX. Does it compile if you use FFmpeg source code from the current git master branch? Please show the first ~50 and last ~50 lines from config.log.
Get an answer more quickly by providing your actual ffmpeg command and the complete console output. Use the code button to format your command and output or your question will be ignored.
llogan
 
Posts: 2363
Joined: Fri Jan 25, 2013 9:47 pm
Location: Alaska

Re: Compiling on AIX 7.1

Postby epitaxial » Sun Feb 26, 2017 1:48 am

The git master branch compiles (with some warnings) but doesn't execute properly.

The first 50 lines from config.log
Code: Select all
# ./configure  --enable-nonfree
ALL_COMPONENTS='
    aac_adtstoasc_bsf
chomp_bsf
dump_extradata_bsf
dca_core_bsf
h264_mp4toannexb_bsf
hevc_mp4toannexb_bsf
imx_dump_header_bsf
mjpeg2jpeg_bsf
mjpega_dump_header_bsf
mp3_header_decompress_bsf
mpeg4_unpack_bframes_bsf
mov2textsub_bsf
noise_bsf
remove_extradata_bsf
text2movsub_bsf
vp9_superframe_bsf
    aasc_decoder
aic_decoder
alias_pix_decoder
amv_decoder
anm_decoder
ansi_decoder
apng_decoder
asv1_decoder
asv2_decoder
aura_decoder
aura2_decoder
avrp_decoder
avrn_decoder
avs_decoder
avui_decoder
ayuv_decoder
bethsoftvid_decoder
bfi_decoder
bink_decoder
bmp_decoder
bmv_video_decoder
brender_pix_decoder
c93_decoder
cavs_decoder
cdgraphics_decoder
cdxl_decoder
cfhd_decoder
cinepak_decoder
cljr_decoder
cllc_decoder
comfortnoise_decoder
cpia_decoder


The last 50
Code: Select all
END /tmp/ffconf....7733272.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/aix -std=c11 -fomit-frame-pointer -maltivec -mabi=altivec -pthread -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -c -o /tmp/ffconf....7733272.o /tmp/ffconf....7733272.c
check_cflags -Werror=implicit-function-declaration
test_cflags -Werror=implicit-function-declaration
check_cc -Werror=implicit-function-declaration
BEGIN /tmp/ffconf....7733272.c
    1   int x;
END /tmp/ffconf....7733272.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/aix -std=c11 -fomit-frame-pointer -maltivec -mabi=altivec -pthread -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -c -o /tmp/ffconf....7733272.o /tmp/ffconf....7733272.c
check_cflags -Werror=missing-prototypes
test_cflags -Werror=missing-prototypes
check_cc -Werror=missing-prototypes
BEGIN /tmp/ffconf....7733272.c
    1   int x;
END /tmp/ffconf....7733272.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/aix -std=c11 -fomit-frame-pointer -maltivec -mabi=altivec -pthread -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -c -o /tmp/ffconf....7733272.o /tmp/ffconf....7733272.c
check_cflags -Werror=return-type
test_cflags -Werror=return-type
check_cc -Werror=return-type
BEGIN /tmp/ffconf....7733272.c
    1   int x;
END /tmp/ffconf....7733272.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/aix -std=c11 -fomit-frame-pointer -maltivec -mabi=altivec -pthread -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -c -o /tmp/ffconf....7733272.o /tmp/ffconf....7733272.c
check_cflags -Werror=vla
test_cflags -Werror=vla
check_cc -Werror=vla
BEGIN /tmp/ffconf....7733272.c
    1   int x;
END /tmp/ffconf....7733272.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/aix -std=c11 -fomit-frame-pointer -maltivec -mabi=altivec -pthread -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -c -o /tmp/ffconf....7733272.o /tmp/ffconf....7733272.c
check_cflags -Wformat
test_cflags -Wformat
check_cc -Wformat
BEGIN /tmp/ffconf....7733272.c
    1   int x;
END /tmp/ffconf....7733272.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/aix -std=c11 -fomit-frame-pointer -maltivec -mabi=altivec -pthread -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -c -o /tmp/ffconf....7733272.o /tmp/ffconf....7733272.c
check_cflags -fdiagnostics-color=auto
test_cflags -fdiagnostics-color=auto
check_cc -fdiagnostics-color=auto
BEGIN /tmp/ffconf....7733272.c
    1   int x;
END /tmp/ffconf....7733272.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/aix -std=c11 -fomit-frame-pointer -maltivec -mabi=altivec -pthread -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -c -o /tmp/ffconf....7733272.o /tmp/ffconf....7733272.c
gcc: error: unrecognized command line option '-fdiagnostics-color=auto'
test_cflags -Wmaybe-uninitialized
check_cc -Wmaybe-uninitialized
BEGIN /tmp/ffconf....7733272.c
    1   int x;
END /tmp/ffconf....7733272.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/aix -std=c11 -fomit-frame-pointer -maltivec -mabi=altivec -pthread -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -Wmaybe-uninitialized -c -o /tmp/ffconf....7733272.o /tmp/ffconf....7733272.c


If I try and grab an rtsp stream from my local lan this happens
Code: Select all
./ffmpeg -i rtsp://192.168.1.9:554 -an -c copy -t 1:00:00 test.mp4
ffmpeg version 3.2.git Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8.5 (GCC)
  configuration: --enable-nonfree
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 81.100 / 57. 81.100
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 74.100 /  6. 74.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
[NULL @ 20932ac0] Value 0.000000 for parameter 'avioflags' is not a valid set of 32bit integer flags
[NULL @ 20932ac0] Value 2097664.000000 for parameter 'fflags' is not a valid set of 32bit integer flags
[NULL @ 20932ac0] Value 0.000000 for parameter 'fdebug' is not a valid set of 32bit integer flags
[NULL @ 20932ac0] Value 1.000000 for parameter 'f_err_detect' is not a valid set of 32bit integer flags
[NULL @ 20932ac0] Value 1.000000 for parameter 'err_detect' is not a valid set of 32bit integer flags
[RTSP demuxer @ 20933220] Value 0.000000 for parameter 'rtpflags' is not a valid set of 32bit integer flags
[RTSP demuxer @ 20933220] Value 0.000000 for parameter 'rtsp_transport' is not a valid set of 32bit integer flags
[RTSP demuxer @ 20933220] Value 0.000000 for parameter 'rtsp_flags' is not a valid set of 32bit integer flags
[RTSP demuxer @ 20933220] Value 15.000000 for parameter 'allowed_media_types' is not a valid set of 32bit integer flags
[rtsp @ 20932ac0] Unable to open RTSP for listening
rtsp://192.168.1.9:554: Can't assign requested address
epitaxial
 
Posts: 2
Joined: Sat Feb 25, 2017 9:34 pm


Return to Compiling FFmpeg

Who is online

Users browsing this forum: No registered users and 2 guests