Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#17952 closed defect (fixed)

xine-lib fails to compile

Reported by: cjones051073 (Chris Jones) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: xine-lib Cc: jmroot (Joshua Root), acho@…
Port: xine-lib

Description (last modified by jmroot (Joshua Root))

HI,

After running

> sudo port sync ; sudo port upgrade outdated

This appears to try and bring in a new port for me, xine-lib - Unfortunately this port fails with the error below.

cheers Chris

/bin/sh ../../../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../../../include -I../../.. -I../../../include -I../../../include -I../../../src -I../../../src/xine-engine -I../../../src/xine-engine -I../../../src/xine-utils  -I../../../src/input -I../../../src/input  -I../../../lib -I../../../lib  -I/opt/local/include -DCONFIG_DARWIN  -fvisibility=hidden -I/opt/local/include   -I/opt/local/include   -fomit-frame-pointer -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE   -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstrict-aliasing=2 -mtune=i386 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4   -fexpensive-optimizations -fschedule-insns2 -ffast-math -finline-functions -Wall -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -O2 -DNDEBUG -MT xineplug_post_planar_la-pp.lo -MD -MP -MF .deps/xineplug_post_planar_la-pp.Tpo -c -o xineplug_post_planar_la-pp.lo `test -f 'pp.c' || echo './'`pp.c
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../../../include -I../../.. -I../../../include -I../../../include -I../../../src -I../../../src/xine-engine -I../../../src/xine-engine -I../../../src/xine-utils -I../../../src/input -I../../../src/input -I../../../lib -I../../../lib -I/opt/local/include -DCONFIG_DARWIN -fvisibility=hidden -I/opt/local/include -I/opt/local/include -fomit-frame-pointer -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstrict-aliasing=2 -mtune=i386 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -fexpensive-optimizations -fschedule-insns2 -ffast-math -finline-functions -Wall -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -O2 -DNDEBUG -MT xineplug_post_planar_la-pp.lo -MD -MP -MF .deps/xineplug_post_planar_la-pp.Tpo -c pp.c  -fno-common -DPIC -o .libs/xineplug_post_planar_la-pp.o
In file included from ../../../src/xine-engine/xine_internal.h:33,
                from pp.c:27:
../../../include/xine.h:2230: warning: 'xine_tvsystem' is deprecated
In file included from ../../../src/input/input_plugin.h:29,
                from ../../../src/xine-engine/xine_internal.h:35,
                from pp.c:27:
../../../src/xine-engine/buffer.h:679: warning: return type defaults to 'int'
pp.c:33:27: error: postprocess.h: No such file or directory
pp.c:59: error: 'PP_QUALITY_MAX' undeclared here (not in a function)
pp.c:79: error: syntax error before 'pp_context_t'
pp.c:79: warning: no semicolon at end of struct or union
pp.c:80: warning: type defaults to 'int' in declaration of 'pp_mode'
pp.c:80: warning: data definition has no type or storage class
pp.c:83: error: syntax error before '}' token
pp.c: In function 'set_parameters':
pp.c:90: error: dereferencing pointer to incomplete type
pp.c:90: error: request for member 'lock' in something not a structure or union
pp.c:90: warning: passing argument 1 of 'pthread_mutex_lock' from incompatible pointer type
pp.c:92: error: dereferencing pointer to incomplete type
pp.c:92: error: request for member 'params' in something not a structure or union
pp.c:94: error: dereferencing pointer to incomplete type
pp.c:94: error: request for member 'lock' in something not a structure or union
pp.c:94: warning: passing argument 1 of 'pthread_mutex_unlock' from incompatible pointer type
pp.c: In function 'get_parameters':
pp.c:104: error: dereferencing pointer to incomplete type
pp.c:104: error: request for member 'params' in something not a structure or union
pp.c: In function 'get_help':
pp.c:127: error: 'pp_help' undeclared (first use in this function)
pp.c:127: error: (Each undeclared identifier is reported only once
pp.c:127: error: for each function it appears in.)
pp.c: In function 'pp_open_plugin':
pp.c:178: error: invalid application of 'sizeof' to incomplete type 'post_plugin_pp_t'
pp.c:190: error: dereferencing pointer to incomplete type
pp.c:190: error: request for member 'post' in something not a structure or union
pp.c:190: warning: passing argument 1 of '_x_post_init' from incompatible pointer type
pp.c:192: error: dereferencing pointer to incomplete type
pp.c:192: error: request for member 'params' in something not a structure or union
pp.c:192: error: request for member 'quality' in something not a structure or union
pp.c:192: warning: statement with no effect
pp.c:193: error: dereferencing pointer to incomplete type
pp.c:193: error: request for member 'params' in something not a structure or union
pp.c:193: error: request for member 'mode' in something not a structure or union
pp.c:193: warning: passing argument 1 of 'strcpy' from incompatible pointer type
pp.c:197: error: dereferencing pointer to incomplete type
pp.c:197: error: request for member 'pp_flags' in something not a structure or union
pp.c:197: error: 'PP_FORMAT_420' undeclared (first use in this function)
pp.c:197: warning: statement with no effect
pp.c:199: error: dereferencing pointer to incomplete type
pp.c:199: error: request for member 'pp_flags' in something not a structure or union
pp.c:199: error: 'PP_CPU_CAPS_MMX' undeclared (first use in this function)
pp.c:199: warning: statement with no effect
pp.c:201: error: dereferencing pointer to incomplete type
pp.c:201: error: request for member 'pp_flags' in something not a structure or union
pp.c:201: error: 'PP_CPU_CAPS_MMX2' undeclared (first use in this function)
pp.c:201: warning: statement with no effect
pp.c:203: error: dereferencing pointer to incomplete type
pp.c:203: error: request for member 'pp_flags' in something not a structure or union
pp.c:203: error: 'PP_CPU_CAPS_3DNOW' undeclared (first use in this function)
pp.c:203: warning: statement with no effect
pp.c:205: error: dereferencing pointer to incomplete type
pp.c:205: error: request for member 'pp_mode' in something not a structure or union
pp.c:205: warning: statement with no effect
pp.c:206: error: dereferencing pointer to incomplete type
pp.c:206: error: request for member 'pp_context' in something not a structure or union
pp.c:206: warning: statement with no effect
pp.c:208: error: dereferencing pointer to incomplete type
pp.c:208: error: request for member 'lock' in something not a structure or union
pp.c:208: warning: passing argument 1 of 'pthread_mutex_init' from incompatible pointer type
pp.c:210: error: dereferencing pointer to incomplete type
pp.c:210: error: request for member 'post' in something not a structure or union
pp.c:210: warning: passing argument 1 of '_x_post_intercept_video_port' from incompatible pointer type
pp.c:214: error: dereferencing pointer to incomplete type
pp.c:214: error: request for member 'params_input' in something not a structure or union
pp.c:214: warning: assignment from incompatible pointer type
pp.c:218: error: dereferencing pointer to incomplete type
pp.c:218: error: request for member 'post' in something not a structure or union
pp.c:218: error: request for member 'input' in something not a structure or union
pp.c:218: warning: passing argument 1 of 'xine_list_push_back' from incompatible pointer type
pp.c:223: error: dereferencing pointer to incomplete type
pp.c:223: error: request for member 'post' in something not a structure or union
pp.c:223: error: request for member 'xine_post' in something not a structure or union
pp.c:223: error: request for member 'video_input' in something not a structure or union
pp.c:223: error: incompatible types in assignment
pp.c:223: warning: statement with no effect
pp.c:225: error: dereferencing pointer to incomplete type
pp.c:225: error: request for member 'post' in something not a structure or union
pp.c:225: error: request for member 'dispose' in something not a structure or union
pp.c:225: warning: statement with no effect
pp.c:227: error: dereferencing pointer to incomplete type
pp.c:227: error: request for member 'post' in something not a structure or union
pp.c:227: warning: return from incompatible pointer type
pp.c: In function 'pp_dispose':
pp.c:251: error: dereferencing pointer to incomplete type
pp.c:251: error: request for member 'pp_mode' in something not a structure or union
pp.c:252: error: implicit declaration of function 'pp_free_mode'
pp.c:252: warning: nested extern declaration of 'pp_free_mode'
pp.c:252: error: dereferencing pointer to incomplete type
pp.c:252: error: request for member 'pp_mode' in something not a structure or union
pp.c:253: error: dereferencing pointer to incomplete type
pp.c:253: error: request for member 'pp_mode' in something not a structure or union
pp.c:253: warning: statement with no effect
pp.c:255: error: dereferencing pointer to incomplete type
pp.c:255: error: request for member 'pp_context' in something not a structure or union
pp.c:256: error: implicit declaration of function 'pp_free_context'
pp.c:256: warning: nested extern declaration of 'pp_free_context'
pp.c:256: error: dereferencing pointer to incomplete type
pp.c:256: error: request for member 'pp_context' in something not a structure or union
pp.c:257: error: dereferencing pointer to incomplete type
pp.c:257: error: request for member 'pp_context' in something not a structure or union
pp.c:257: warning: statement with no effect
pp.c: In function 'pp_draw':
pp.c:305: error: dereferencing pointer to incomplete type
pp.c:305: error: request for member 'lock' in something not a structure or union
pp.c:305: warning: passing argument 1 of 'pthread_mutex_lock' from incompatible pointer type
pp.c:307: error: dereferencing pointer to incomplete type
pp.c:307: error: request for member 'pp_context' in something not a structure or union
pp.c:308: error: dereferencing pointer to incomplete type
pp.c:308: error: request for member 'frame_width' in something not a structure or union
pp.c:308: warning: comparison between pointer and integer
pp.c:309: error: dereferencing pointer to incomplete type
pp.c:309: error: request for member 'frame_height' in something not a structure or union
pp.c:309: warning: comparison between pointer and integer
pp.c:311: error: dereferencing pointer to incomplete type
pp.c:311: error: request for member 'frame_width' in something not a structure or union
pp.c:311: warning: statement with no effect
pp.c:312: error: dereferencing pointer to incomplete type
pp.c:312: error: request for member 'frame_height' in something not a structure or union
pp.c:312: warning: statement with no effect
pp.c:313: error: dereferencing pointer to incomplete type
pp.c:313: error: request for member 'pp_flags' in something not a structure or union
pp.c:313: warning: statement with no effect
pp.c:315: error: dereferencing pointer to incomplete type
pp.c:315: error: request for member 'pp_context' in something not a structure or union
pp.c:316: error: dereferencing pointer to incomplete type
pp.c:316: error: request for member 'pp_context' in something not a structure or union
pp.c:318: error: dereferencing pointer to incomplete type
pp.c:318: error: request for member 'pp_context' in something not a structure or union
pp.c:318: error: implicit declaration of function 'pp_get_context'
pp.c:318: warning: nested extern declaration of 'pp_get_context'
pp.c:318: warning: statement with no effect
pp.c:320: error: dereferencing pointer to incomplete type
pp.c:320: error: request for member 'pp_mode' in something not a structure or union
pp.c:321: error: dereferencing pointer to incomplete type
pp.c:321: error: request for member 'pp_mode' in something not a structure or union
pp.c:322: error: dereferencing pointer to incomplete type
pp.c:322: error: request for member 'pp_mode' in something not a structure or union
pp.c:322: warning: statement with no effect
pp.c:326: error: dereferencing pointer to incomplete type
pp.c:326: error: request for member 'pp_mode' in something not a structure or union
pp.c:327: error: dereferencing pointer to incomplete type
pp.c:327: error: request for member 'pp_mode' in something not a structure or union
pp.c:327: error: implicit declaration of function 'pp_get_mode_by_name_and_quality'
pp.c:327: warning: nested extern declaration of 'pp_get_mode_by_name_and_quality'
pp.c:327: error: dereferencing pointer to incomplete type
pp.c:327: error: request for member 'params' in something not a structure or union
pp.c:327: error: request for member 'mode' in something not a structure or union
pp.c:328: error: dereferencing pointer to incomplete type
pp.c:328: error: request for member 'params' in something not a structure or union
pp.c:328: error: request for member 'quality' in something not a structure or union
pp.c:328: warning: statement with no effect
pp.c:330: error: dereferencing pointer to incomplete type
pp.c:330: error: request for member 'pp_mode' in something not a structure or union
pp.c:331: error: implicit declaration of function 'pp_postprocess'
pp.c:331: warning: nested extern declaration of 'pp_postprocess'
pp.c:335: error: dereferencing pointer to incomplete type
pp.c:335: error: request for member 'pp_mode' in something not a structure or union
pp.c:335: error: dereferencing pointer to incomplete type
pp.c:335: error: request for member 'pp_context' in something not a structure or union
pp.c:338: error: dereferencing pointer to incomplete type
pp.c:338: error: request for member 'lock' in something not a structure or union
pp.c:338: warning: passing argument 1 of 'pthread_mutex_unlock' from incompatible pointer type
pp.c:340: error: dereferencing pointer to incomplete type
pp.c:340: error: request for member 'pp_mode' in something not a structure or union
make[3]: *** [xineplug_post_planar_la-pp.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_xine-lib/work/xine-lib-1.1.15" && make all " returned error 2
Command output: pp.c:326: error: dereferencing pointer to incomplete type
pp.c:326: error: request for member 'pp_mode' in something not a structure or union
pp.c:327: error: dereferencing pointer to incomplete type
pp.c:327: error: request for member 'pp_mode' in something not a structure or union
pp.c:327: error: implicit declaration of function 'pp_get_mode_by_name_and_quality'
pp.c:327: warning: nested extern declaration of 'pp_get_mode_by_name_and_quality'
pp.c:327: error: dereferencing pointer to incomplete type
pp.c:327: error: request for member 'params' in something not a structure or union
pp.c:327: error: request for member 'mode' in something not a structure or union
pp.c:328: error: dereferencing pointer to incomplete type
pp.c:328: error: request for member 'params' in something not a structure or union
pp.c:328: error: request for member 'quality' in something not a structure or union
pp.c:328: warning: statement with no effect
pp.c:330: error: dereferencing pointer to incomplete type
pp.c:330: error: request for member 'pp_mode' in something not a structure or union
pp.c:331: error: implicit declaration of function 'pp_postprocess'
pp.c:331: warning: nested extern declaration of 'pp_postprocess'
pp.c:335: error: dereferencing pointer to incomplete type
pp.c:335: error: request for member 'pp_mode' in something not a structure or union
pp.c:335: error: dereferencing pointer to incomplete type
pp.c:335: error: request for member 'pp_context' in something not a structure or union
pp.c:338: error: dereferencing pointer to incomplete type
pp.c:338: error: request for member 'lock' in something not a structure or union
pp.c:338: warning: passing argument 1 of 'pthread_mutex_unlock' from incompatible pointer type
pp.c:340: error: dereferencing pointer to incomplete type
pp.c:340: error: request for member 'pp_mode' in something not a structure or union
make[3]: *** [xineplug_post_planar_la-pp.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Warning: the following items did not execute (for xine-lib): org.macports.destroot org.macports.build
Error: Unable to upgrade port: 1

Change History (6)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Description: modified (diff)

Please remember to use WikiFormatting in future.

comment:2 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… acho@… added

Two problems: xine-lib is using an external ffmpeg without having a dependency on it, and ffmpeg's .pc files don't have the right include dirs.

comment:3 Changed 16 years ago by jmroot (Joshua Root)

Or xine-lib is just including the ffmpeg header wrong...

comment:4 Changed 16 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Fixed with a possibly dodgy hack in r45226, along with the update to 1.1.16.

comment:5 Changed 16 years ago by cjones051073 (Chris Jones)

Hi,

Just confirming your fix works fine for me. Thanks !

Chris

comment:6 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.