[MacPorts] #33897: yorick-mpeg (new port) -- Write MPEG-1 movies from Yorick
MacPorts
noreply at macports.org
Fri Apr 27 13:00:46 PDT 2012
#33897: yorick-mpeg (new port) -- Write MPEG-1 movies from Yorick
--------------------------------------+-------------------------------------
Reporter: thibaut.paumard@… | Owner: cal@…
Type: submission | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Keywords: | Port:
--------------------------------------+-------------------------------------
Changes (by cal@…):
* status: new => assigned
* owner: macports-tickets@… => cal@…
Comment:
Does yorick-mpeg have a license?
The build fails for me with the setup described at the bottom of
UsingTheRightCompiler:
{{{
/usr/bin/llvm-gcc-4.2 -O2 -pipe -arch x86_64 -Ilibavcodec -DPLUG_IN -I.
-I/opt/local/lib/yorick/include -c -o ywrap.o ywrap.c
gcc -O3 -g -ansi -pedantic -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -fPIC -DHAVE_AV_CONFIG_H -I..
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o
common.c
gcc -O3 -g -ansi -pedantic -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -fPIC -DHAVE_AV_CONFIG_H -I..
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o
common.c
gcc: Error: You should be using ${configure.cc}
See http://trac.macports.org/wiki/UsingTheRightCompiler
make[1]: *** [common.o] Error 1
make: *** [libavcodec/libavcodec.a] Error 2
make: *** Waiting for unfinished jobs....
}}}
Applying the usual fix:
{{{
build.args yompeg.so \
CC=${configure.cc} \
CXX=${configure.cxx} \
CFLAGS=\"${configure.cflags}\" \
CXXFLAGS=\"${configure.cxxflags}\"
}}}
doesn't work either and gives:
{{{
/usr/bin/clang -O2 -c -o ywrap.o ywrap.c
/usr/bin/clang -O2 -c -o common.o common.c
ywrap.c:2:10: fatal error: 'play.h' file not found
#include "play.h"
^
1 error generated.
make: *** [ywrap.o] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/clang -O2 -c -o utils.o utils.c
common.c:50:21: error: unknown type name 'PutBitContext'
void align_put_bits(PutBitContext *s)
^
common.c:55:5: warning: implicit declaration of function 'put_bits' is
invalid in C99 [-Wimplicit-function-declaration]
put_bits(s,s->bit_left & 7,0);
^
common.c:65:15: error: unknown type name 'PutBitContext'
void put_bits(PutBitContext *s, int n, unsigned int value)
^
common.c:70:3: warning: implicit declaration of function 'assert' is
invalid in C99 [-Wimplicit-function-declaration]
assert(n == 32 || value < (1U << n));
^
common.c:82:31: warning: implicit declaration of function 'be2me_32' is
invalid in C99 [-Wimplicit-function-declaration]
*(uint32_t *)s->buf_ptr = be2me_32(bit_buf);
^
3 warnings and 2 errors generated.
make[1]: *** [common.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from utils.c:29:
./mpegvideo.h:88:5: error: unknown type name 'FILE'
FILE *stats_file;
^
./mpegvideo.h:216:5: error: unknown type name 'PutBitContext'
PutBitContext pb;
^
./mpegvideo.h:436:5: error: unknown type name 'PutBitContext'
PutBitContext tex_pb; /*/< used for data partitioned VOPs
*/
^
./mpegvideo.h:437:5: error: unknown type name 'PutBitContext'
PutBitContext pb2; /*/< used for data partitioned VOPs
*/
^
./mpegvideo.h:479:19: error: unknown type name 'PutBitContext'
void ff_copy_bits(PutBitContext *pb, uint8_t *src, int length);
^
./mpegvideo.h:489:28: error: unknown type name 'PutBitContext'
void ff_write_quant_matrix(PutBitContext *pb, uint16_t *matrix);
^
utils.c:42:16: error: use of undeclared identifier 'NULL'
return NULL;
^
utils.c:43:5: warning: implicitly declaring C library function 'memset'
with type 'void *(void *, int, unsigned long)'
memset(ptr, 0, size);
^
utils.c:43:5: note: please include the header <string.h> or explicitly
provide a declaration for 'memset'
utils.c:68:12: error: use of undeclared identifier 'NULL'
*ptr = NULL;
^
utils.c:78:18: error: use of undeclared identifier 'NULL'
while (*p != NULL) p = &(*p)->next;
^
utils.c:80:20: error: use of undeclared identifier 'NULL'
format->next = NULL;
^
utils.c:120:5: warning: implicit declaration of function 'assert' is
invalid in C99 [-Wimplicit-function-declaration]
assert(pic->data[0]==NULL);
^
utils.c:120:26: error: use of undeclared identifier 'NULL'
assert(pic->data[0]==NULL);
^
utils.c:123:28: error: use of undeclared identifier 'NULL'
if(s->internal_buffer==NULL){
^
utils.c:172:30: error: use of undeclared identifier 'NULL'
if(buf->base[i]==NULL) return -1;
^
utils.c:198:11: error: use of undeclared identifier 'NULL'
buf = NULL; /* avoids warning */
^
utils.c:213:22: error: use of undeclared identifier 'NULL'
pic->data[i]=NULL;
^
utils.c:269:13: error: use of undeclared identifier 'NULL'
if(avctx==NULL) return NULL;
^
utils.c:269:26: error: use of undeclared identifier 'NULL'
if(avctx==NULL) return NULL;
^
utils.c:287:11: error: use of undeclared identifier 'NULL'
if(pic==NULL) return NULL;
^
utils.c:287:24: error: use of undeclared identifier 'NULL'
if(pic==NULL) return NULL;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make[1]: *** [utils.o] Error 1
make: *** [libavcodec/libavcodec.a] Error 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/33897#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list