Opened 14 years ago

Closed 13 years ago

#24079 closed defect (wontfix)

MPlayer, mplayer-devel don't build with zlib 1.2.4

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: acho@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: ecronin (Eric Cronin), stvnschwrz@…, dershow, bhadder@…, jsg72@…, mirimiri66@…, bitmail@…, ben-macports@…, alek2@…, social.thiago@…
Port: MPlayer, mplayer-devel

Description

MPlayer doesn't build with zlib 1.2.4:

/usr/bin/gcc-4.0 -I../libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -shared-libgcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/opt/local/include/lzo -I/opt/local/include -I/usr/local/include   -c -o vo_png.o vo_png.c
In file included from /opt/local/include/png.h:506,
                 from vo_png.c:15:
/opt/local/include/zlib.h:1561: error: parse error before 'gzseek64'
/opt/local/include/zlib.h:1561: error: parse error before 'off64_t'
/opt/local/include/zlib.h:1561: warning: type defaults to 'int' in declaration of 'gzseek64'
/opt/local/include/zlib.h:1561: warning: data definition has no type or storage class
/opt/local/include/zlib.h:1562: error: parse error before 'gztell64'
/opt/local/include/zlib.h:1562: warning: type defaults to 'int' in declaration of 'gztell64'
/opt/local/include/zlib.h:1562: warning: data definition has no type or storage class
/opt/local/include/zlib.h:1563: error: parse error before 'gzoffset64'
/opt/local/include/zlib.h:1563: warning: type defaults to 'int' in declaration of 'gzoffset64'
/opt/local/include/zlib.h:1563: warning: data definition has no type or storage class
/opt/local/include/zlib.h:1564: error: parse error before 'off64_t'
/opt/local/include/zlib.h:1565: error: parse error before 'off64_t'
make[1]: *** [vo_png.o] Error 1
make: *** [libvo/libvo.a] Error 2

mplayer-devel fails like this:

/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=core2 -mtune=core2 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o libvo/vo_png.o libvo/vo_png.c
In file included from /opt/local/include/png.h:506,
                 from libvo/vo_png.c:33:
/opt/local/include/zlib.h:1561: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzseek64'
/opt/local/include/zlib.h:1562: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gztell64'
/opt/local/include/zlib.h:1563: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzoffset64'
/opt/local/include/zlib.h:1564: error: expected declaration specifiers or '...' before 'off64_t'
/opt/local/include/zlib.h:1565: error: expected declaration specifiers or '...' before 'off64_t'
make: *** [libvo/vo_png.o] Error 1

The general ticket for this zlib 1.2.4 issue is #24067 but my understanding is that this error actually reveals a problem in MPlayer and mplayer-devel which is where the fix needs to occur.

Change History (14)

comment:1 Changed 14 years ago by stvnschwrz@…

Cc: stvnschwrz@… added

Cc Me!

comment:2 Changed 14 years ago by stvnschwrz@…

In addition, the gnome-vfs port won't build against zlib 1.2.4 either:

In file included from gzip-method.c:33:
/opt/local/include/zlib.h:1561: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzseek64'
/opt/local/include/zlib.h:1562: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gztell64'
/opt/local/include/zlib.h:1563: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzoffset64'
/opt/local/include/zlib.h:1564: error: expected declaration specifiers or '...' before 'off64_t'
/opt/local/include/zlib.h:1565: error: expected declaration specifiers or '...' before 'off64_t'

Should I open a separate ticket for this case?

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Yes, please.

comment:4 Changed 14 years ago by stvnschwrz@…

Ok, done, see #24083.

comment:5 Changed 14 years ago by dershow

Cc: dersh@… added

Cc Me!

comment:6 Changed 14 years ago by zquestz (Josh Ellithorpe)

To fix, just remove -D_LARGEFILE64_SOURCE from config.mak after it fails. Quick workaround till the port is updated.

comment:7 Changed 14 years ago by bhadder@…

Cc: bhadder@… added

Cc Me!

comment:8 Changed 14 years ago by jsg72@…

Cc: jsg72@… added

Cc Me!

comment:9 Changed 14 years ago by mirimiri66@…

Cc: mirimiri66@… added

Cc Me!

comment:10 Changed 14 years ago by bitmail@…

Cc: bitmail@… added

Cc Me!

comment:11 Changed 14 years ago by ben-macports@…

Cc: ben-macports@… added

Cc Me!

comment:12 Changed 14 years ago by alek2@…

Cc: alek2@… added

Cc Me!

comment:13 Changed 14 years ago by social.thiago@…

Cc: social.thiago@… added

Cc Me!

comment:14 Changed 13 years ago by jmroot (Joshua Root)

Resolution: wontfix
Status: newclosed

Well, apparently nobody here is going to do anything about this (not surprising given that zlib 1.2.5 doesn't exhibit the problem), and it's really something that upstream should deal with anyway.

Note: See TracTickets for help on using tickets.