Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#12196 closed defect (fixed)

BUG: MPlayer does not build with lzo2.

Reported by: ehainry@… Owned by: ecronin (Eric Cronin)
Priority: High Milestone:
Component: ports Version: 1.4.40
Keywords: Cc: ehainry@…,ecronin (Eric Cronin)
Port:

Description

So, seems that the correction to #12159 does not work for me. Below is the log.

However, reverting to lzo (and commenting the patch for building with lzo2) works perfectly.

Oh, It just occurred to me that it picked its headers in those installed by lzo instead of lzo2 (yes both can cohabitate on a system since lzo2 installs headers in /opt/local/include/lzo/, which is what happened when I upgraded mplayer)

--->  Building MPlayer with target all
Error: Target com.apple.build returned: shell command " cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.macports.org_dpupdate_dports_multimedia_MPlayer/work/MPlayer-1.0rc1" && make all " returned error 2
Command output: make -C libavutil LIBPREF=lib LIBSUF=.a
make[1]: Nothing to be done for `all'.
make -C libmpdemux
make[1]: Nothing to be done for `all'.
make -C stream
make[1]: Nothing to be done for `all'.
make -C libmpcodecs
cc -c -I. -I.. -Inative -I../libmpdemux -I../stream -I../loader  -I../libavutil -I../libavcodec -Wdeclaration-after-statement -O4 -mcpu=7450 -mtune=7450 -pipe -ffast-math -fomit-frame-pointer -faltivec -D__APPLE_ALTIVEC__ -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include -I/opt/local/include/lzo -I/usr/X11R6/include -I/opt/local/include/ -I/opt/local/include/freetype2 -I/opt/local/include -D_GNU_SOURCE  -o vd_lzo.o vd_lzo.c
In file included from vd_lzo.c:10:
/opt/local/include/lzoutil.h:55: error: conflicting types for 'lzo_alloc'
native/lzoconf.h:356: error: previous declaration of 'lzo_alloc' was here
/opt/local/include/lzoutil.h:56: error: conflicting types for 'lzo_malloc'
native/lzoconf.h:357: error: previous declaration of 'lzo_malloc' was here
/opt/local/include/lzoutil.h:59: error: conflicting types for 'lzo_alloc_hook_t'
native/lzoconf.h:360: error: previous declaration of 'lzo_alloc_hook_t' was here
/opt/local/include/lzoutil.h:60: error: redefinition of typedef 'lzo_free_hook_t'
native/lzoconf.h:361: error: previous declaration of 'lzo_free_hook_t' was here
/opt/local/include/lzoutil.h:62: error: parse error before 'lzo_alloc_hook'
/opt/local/include/lzoutil.h:62: error: conflicting types for 'lzo_alloc_hook'
native/lzoconf.h:363: error: previous declaration of 'lzo_alloc_hook' was here
/opt/local/include/lzoutil.h:62: warning: data definition has no type or storage class
/opt/local/include/lzoutil.h:63: error: parse error before 'lzo_free_hook'
/opt/local/include/lzoutil.h:63: error: conflicting types for 'lzo_free_hook'
native/lzoconf.h:364: error: previous declaration of 'lzo_free_hook' was here
/opt/local/include/lzoutil.h:63: warning: data definition has no type or storage class
vd_lzo.c: In function 'decode':
vd_lzo.c:124: warning: pointer targets in passing argument 4 of 'lzo1x_decompress_safe' differ in signedness
vd_lzo.c:160: warning: pointer targets in passing argument 4 of 'lzo1x_decompress_safe' differ in signedness
make[1]: *** [vd_lzo.o] Error 1
make: *** [libmpcodecs/libmpcodecs.a] Error 2

Error: Status 1 encountered during processing.

Change History (4)

comment:1 Changed 17 years ago by ecronin (Eric Cronin)

Oops, could you try using the current lzo2 portfile but change

--with-extraincdir=${prefix}/include:${prefix}/include/lzo \

to

--with-extraincdir=${prefix}/include/lzo:${prefix}/include \

and report back if it works?

comment:2 Changed 17 years ago by ehainry@…

Yes, it works fine when I do that (with both lzo and lzo2 installed).

comment:3 Changed 17 years ago by sfiera@…

Resolution: fixed
Status: newclosed

Resolved by r26616

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.