GNOME Bugzilla – Bug 468114
Compile errors w/ native compiler on HP-UX 11i1
Last modified: 2007-10-28 13:23:09 UTC
Please describe the problem: Making all in libpostproc gmake[7]: Entering directory `/work/build/gst-ffmpeg-0.10.2/gst-libs/ext/ffmpeg/libpostproc' /opt/TWWfsw/sbutils12/lib/aux/bash/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I../libavutil -I../libavcodec -fomit-frame-pointer -I/opt/TWWfsw/libgst010/include -I/opt/TWWfsw/libcheck/include -I/opt/TWWfsw/libglib212/include -I/opt/TWWfsw/liboil03/include -I/opt/TWWfsw/libxml26/include -I/opt/TWWfsw/zlib11/include -g -z +O2 -Ae -c -o postprocess.lo postprocess.c mkdir .libs cc -DHAVE_CONFIG_H -I. -I. -I.. -I../libavutil -I../libavcodec -fomit-frame-pointer -I/opt/TWWfsw/libgst010/include -I/opt/TWWfsw/libcheck/include -I/opt/TWWfsw/libglib212/include -I/opt/TWWfsw/liboil03/include -I/opt/TWWfsw/libxml26/include -I/opt/TWWfsw/zlib11/include -g -z +O2 -Ae -c postprocess.c +Z -DPIC -o .libs/postprocess.o cc: warning 422: Unknown option "fomit-frame-pointer" ignored. cpp: "postprocess.c", line 103: warning 2001: Redefinition of macro MIN. cpp: "postprocess.c", line 104: warning 2001: Redefinition of macro MAX. cc: "postprocess_internal.h", line 72: error 1000: Unexpected symbol: "int". cc: "postprocess_internal.h", line 127: error 1000: Unexpected symbol: "8". cc: "postprocess_internal.h", line 128: error 1000: Unexpected symbol: "8". cc: "postprocess_internal.h", line 140: error 1000: Unexpected symbol: "8". cc: "postprocess_internal.h", line 141: error 1000: Unexpected symbol: "8". cc: "postprocess_internal.h", line 143: error 1000: Unexpected symbol: "8". cc: "postprocess_internal.h", line 144: error 1000: Unexpected symbol: "8". cc: "postprocess_internal.h", line 167: error 1000: Unexpected symbol: "void". cc: "postprocess_internal.h", line 127: error 1670: Illegal attribute aligned specified. cc: "postprocess_internal.h", line 128: error 1670: Illegal attribute aligned specified. cc: "postprocess_internal.h", line 140: error 1670: Illegal attribute aligned specified. cc: "postprocess_internal.h", line 141: error 1670: Illegal attribute aligned specified. cc: "postprocess_internal.h", line 143: error 1670: Illegal attribute aligned specified. cc: "postprocess_internal.h", line 144: error 1670: Illegal attribute aligned specified. cc: "postprocess_internal.h", line 167: error 1586: Redefinition of function "inline". cc: "postprocess_internal.h", line 167: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess_internal.h", line 172: error 1539: Cannot do arithmetic with pointers to objects of unknown size. cc: "postprocess_internal.h", line 172: warning 563: Argument #1 is not the correct type. cc: "postprocess_internal.h", line 172: error 1539: Cannot do arithmetic with pointers to objects of unknown size. cc: "postprocess_internal.h", line 172: warning 563: Argument #2 is not the correct type. cc: "postprocess_internal.h", line 172: warning 527: Integral value implicitly converted to pointer in assignment. cc: "postprocess_internal.h", line 172: warning 563: Argument #3 is not the correct type. cc: "postprocess.c", line 210: error 1000: Unexpected symbol: "int". cc: "postprocess.c", line 210: error 1669: Illegal version declaration for "inline". cc: "postprocess.c", line 210: error 1586: Redefinition of function "inline". cc: "postprocess.c", line 210: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess.c", line 234: error 1000: Unexpected symbol: "int". cc: "postprocess.c", line 234: error 1586: Redefinition of function "inline". cc: "postprocess.c", line 256: error 1000: Unexpected symbol: "int". cc: "postprocess.c", line 256: error 1586: Redefinition of function "inline". cc: "postprocess.c", line 256: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess.c", line 279: error 1000: Unexpected symbol: "int". cc: "postprocess.c", line 279: error 1586: Redefinition of function "inline". cc: "postprocess.c", line 320: error 1000: Unexpected symbol: "int". cc: "postprocess.c", line 320: error 1669: Illegal version declaration for "inline". cc: "postprocess.c", line 320: error 1586: Redefinition of function "inline". cc: "postprocess.c", line 320: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess.c", line 331: error 1000: Unexpected symbol: "int". cc: "postprocess.c", line 331: error 1586: Redefinition of function "inline". cc: "postprocess.c", line 342: error 1000: Unexpected symbol: "void". cc: "postprocess.c", line 342: error 1586: Redefinition of function "inline". cc: "postprocess.c", line 383: error 1000: Unexpected symbol: "void". cc: "postprocess.c", line 383: error 1586: Redefinition of function "inline". cc: "postprocess.c", line 424: error 1000: Unexpected symbol: "void". cc: "postprocess.c", line 424: error 1586: Redefinition of function "inline". cc: "postprocess.c", line 424: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess.c", line 485: error 1000: Unexpected symbol: "void". cc: "postprocess.c", line 485: error 1669: Illegal version declaration for "inline". cc: "postprocess.c", line 485: error 1586: Redefinition of function "inline". cc: "postprocess.c", line 485: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess_template.c", line 196: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 196: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 196: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess_template.c", line 482: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 482: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 611: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 611: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 1183: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 1183: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 1549: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 1549: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 1549: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess_template.c", line 1602: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 1602: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 1667: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 1667: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 1667: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess_template.c", line 1747: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 1747: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 1747: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess_template.c", line 1849: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 1849: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 1849: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess_template.c", line 1950: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 1950: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 1950: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess_template.c", line 2238: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 2238: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 2238: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess_template.c", line 3191: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 3191: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 3191: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess_template.c", line 3322: error 1000: Unexpected symbol: "void". cc: "postprocess_template.c", line 3322: error 1586: Redefinition of function "inline". cc: "postprocess_template.c", line 3322: error 1711: Inconsistent parameter list declaration for "inline". cc: "postprocess_template.c", line 3351: error 1000: Unexpected symbol: "8". cc: "postprocess_template.c", line 3351: error 1670: Illegal attribute aligned specified. cc: "postprocess.c", line 670: error 1000: Unexpected symbol: "void". cc: "postprocess.c", line 670: error 1586: Redefinition of function "inline". cc: "postprocess.c", line 670: error 1711: Inconsistent parameter list declaration for "inline". gmake[7]: *** [postprocess.lo] Error 1 gmake[7]: Leaving directory `/work/build/gst-ffmpeg-0.10.2/gst-libs/ext/ffmpeg/libpostproc' gmake[6]: *** [all-recursive] Error 1 gmake[6]: Leaving directory `/work/build/gst-ffmpeg-0.10.2/gst-libs/ext/ffmpeg' gmake[5]: *** [all] Error 2 gmake[5]: Leaving directory `/work/build/gst-ffmpeg-0.10.2/gst-libs/ext/ffmpeg' gmake[4]: *** [all-local] Error 2 gmake[4]: Leaving directory `/work/build/gst-ffmpeg-0.10.2/gst-libs/ext' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory `/work/build/gst-ffmpeg-0.10.2/gst-libs/ext' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/work/build/gst-ffmpeg-0.10.2/gst-libs' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/work/build/gst-ffmpeg-0.10.2' gmake: *** [all] Error 2 error: error executing script The inlines I can deal with, but I can't figure out the 'illegal attribute aligned specified. The offending code is as follows: typedef struct PPContext{ uint8_t *tempBlocks; ///<used for the horizontal code /** * luma histogram. * we need 64bit here otherwise we'll going to have a problem * after watching a black picture for 5 hours */ uint64_t *yHistogram; uint64_t __attribute__((aligned(8))) packedYOffset; uint64_t __attribute__((aligned(8))) packedYScale; Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Does upstream ffmpeg from SVN compile with HP-UX? If not, I'd start there first. I think we're unlikely to include lots of patches to get ffmpeg to work with exotic compilers like the HP-UX one until there is at least an upstream version that works with that compiler. Until then, I think this is NOTGNOME.