Opened 10 years ago

Closed 10 years ago

#8340 closed defect (fixed)

Commits 24094 and 24095 break OSX Snow Leopard builds

Reported by: stridger@… Owned by: Janne Grunau
Priority: minor Milestone: 0.24
Component: Ports - OSX Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

MythTV was compiling fine for me on snow leopard, but after those two commits (24094 and 24095) I now get the following errors:

/.osx-packager/build/include -I/Users/mediacenter/build/mythtv/.osx-packager/build/include -I/Users/mediacenter/build/mythtv/.osx-packager/build -I.. -I../.. -I. -I../libmyth -I../libavcodec -I../libavformat -I../libavutil -I../libswscale -I../libmythmpeg2 -I../libmythdb -I../libmythhdhomerun -I../libmythdvdnav -Idvbdev -Impeg -Iiptv -Ichannelscan -I../libmythlivemedia/BasicUsageEnvironment/include -I../libmythlivemedia/BasicUsageEnvironment -I../libmythlivemedia/groupsock/include -I../libmythlivemedia/groupsock -I../libmythlivemedia/liveMedia/include -I../libmythlivemedia/liveMedia -I../libmythlivemedia/UsageEnvironment/include -I../libmythlivemedia/UsageEnvironment -I../libmythdb -I../libmythui -I/usr/include -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -o RingBuffer.o RingBuffer.cpp
In file included from vbitext/vbi.c:15:
./videodev_myth.h:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__u32'
./videodev_myth.h:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__u16'
./videodev_myth.h:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__u8'
./videodev_myth.h:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__u64'
In file included from ./videodev_myth.h:19,
                 from vbitext/vbi.c:15:
./videodev2_myth.h:190: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:199: error: expected specifier-qualifier-list before '__u8'
./videodev2_myth.h:231: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:293: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:317: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:323: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:333: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:364: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:384: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:425: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:460: error: expected specifier-qualifier-list before '__u16'
./videodev2_myth.h:507: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:530: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:538: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:573: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:608: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:620: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:634: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:661: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'v4l2_std_id'
./videodev2_myth.h:752: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:765: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:803: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:821: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:827: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:838: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:856: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:870: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:1111: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:1126: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:1160: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:1171: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:1187: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:1206: error: expected specifier-qualifier-list before '__u64'
./videodev2_myth.h:1215: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:1231: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:1252: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:1275: error: expected specifier-qualifier-list before '__u16'
./videodev2_myth.h:1300: error: expected specifier-qualifier-list before '__u16'
./videodev2_myth.h:1312: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:1334: error: expected specifier-qualifier-list before '__u8'
./videodev2_myth.h:1348: error: expected specifier-qualifier-list before '__u8'
./videodev2_myth.h:1365: error: expected specifier-qualifier-list before '__u32'
./videodev2_myth.h:1373: error: expected specifier-qualifier-list before '__u32'
In file included from vbitext/vbi.c:15:
./videodev_myth.h:40: error: expected specifier-qualifier-list before '__u32'
./videodev_myth.h:54: error: expected specifier-qualifier-list before '__u32'
./videodev_myth.h:74: error: expected specifier-qualifier-list before '__u16'
./videodev_myth.h:104: error: expected specifier-qualifier-list before '__u16'
./videodev_myth.h:132: error: expected specifier-qualifier-list before '__u32'
./videodev_myth.h:147: error: expected specifier-qualifier-list before '__u32'
./videodev_myth.h:172: error: expected specifier-qualifier-list before '__u8'
./videodev_myth.h:202: error: expected specifier-qualifier-list before '__u32'
./videodev_myth.h:216: error: expected specifier-qualifier-list before '__u32'
./videodev_myth.h:239: error: expected specifier-qualifier-list before '__u8'
vbitext/vbi.c: In function 'set_decode_parms':
vbitext/vbi.c:476: error: 'struct v4l2_vbi_format' has no member named 'sample_format'
vbitext/vbi.c:476: error: '__u32' undeclared (first use in this function)
vbitext/vbi.c:476: error: (Each undeclared identifier is reported only once
vbitext/vbi.c:476: error: for each function it appears in.)
vbitext/vbi.c:478: error: 'struct v4l2_vbi_format' has no member named 'sample_format'
vbitext/vbi.c:494: error: 'struct v4l2_vbi_format' has no member named 'samples_per_line'
vbitext/vbi.c:495: error: 'struct v4l2_vbi_format' has no member named 'sampling_rate'
vbitext/vbi.c:497: error: 'struct v4l2_vbi_format' has no member named 'offset'
vbitext/vbi.c:498: error: 'struct v4l2_vbi_format' has no member named 'offset'
vbitext/vbi.c:523: error: 'struct v4l2_vbi_format' has no member named 'count'
vbitext/vbi.c:523: error: 'struct v4l2_vbi_format' has no member named 'count'
vbitext/vbi.c: In function 'setup_dev':
vbitext/vbi.c:546: error: 'struct v4l2_vbi_format' has no member named 'sample_format'
vbitext/vbi.c:546: error: '__u32' undeclared (first use in this function)
vbitext/vbi.c:547: error: 'struct v4l2_vbi_format' has no member named 'sampling_rate'
vbitext/vbi.c:548: error: 'struct v4l2_vbi_format' has no member named 'samples_per_line'
vbitext/vbi.c:549: error: 'struct v4l2_vbi_format' has no member named 'offset'
vbitext/vbi.c:553: error: 'struct v4l2_vbi_format' has no member named 'count'
vbitext/vbi.c:554: error: 'struct v4l2_vbi_format' has no member named 'count'
vbitext/vbi.c:564: error: 'struct v4l2_vbi_format' has no member named 'count'
vbitext/vbi.c:565: error: 'struct v4l2_vbi_format' has no member named 'count'
make[2]: *** [vbi.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [sub-libmythtv-make_default] Error 2
make: *** [sub-libs-make_default-ordered] Error 2
[osx-pkg] Failed system call: " /usr/bin/make -j3 " with error code 2
Died at ./osx-packager.pl line 1016.

Backing those out makes it work again. Thanks for looking into this.

Change History (2)

comment:1 Changed 10 years ago by Janne Grunau

Milestone: unknown0.24
Owner: changed from Nigel to Janne Grunau
Status: newaccepted

comment:2 Changed 10 years ago by Janne Grunau

Resolution: fixed
Status: acceptedclosed

(In [24105]) add missing stdint.h include to videodev_myth.h

Fixes #8340, Mac OS X compilation

Note: See TracTickets for help on using tickets.