[MPlayer-dev-eng] [PATCH] to make mplayer compile without inet6 support

Mark Szabo mw3 at daisy.chains.ch
Mon Apr 21 11:01:45 CEST 2003


Thus spoke Diego Biurrun <diego at biurrun.de> on 2003-04-21 01:50:34:
> Mark Szabo schrieb:
> >The attached  patch fixes a bug in cfg-common.h which caused
> >compilation errors with --disable-inet6.
> >
> >--- cfg-common.h	13 Apr 2003 11:37:36 -0000	1.97
> >+++ cfg-common.h	20 Apr 2003 15:19:40 -0000
> >@@ -47,7 +47,7 @@
> > #ifdef HAVE_AF_INET6
> > 	{"prefer-ipv6", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 1, 0, NULL},
> > #else
> >-	{"prefer-ipv6", "MPlayer was compiled without IPv6 support\n", 
> >CONF_TYPE_PRINT, 0, 0, NULL},
> >+	{"prefer-ipv6", "MPlayer was compiled without IPv6 support\n", 
> >CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
> > #endif
> > 
> > #else
> 
> This looks like a 10l bugfix, but it does compile fine for me with 
> --disable-inet6.  What platform are you on?  Can you show the error?
> 
> Diego
> 

Hi!

I'm using Linux on x86. (Debian sid, gcc 3.2.3).

The error log is attached. If I apply the patch everything works fine.

My configure options are: --enable-gui --enable-linux-devfs
--enable-freetype --enable-lirc --enable-xvid --enable-new-conf
--enable-menu --enable-qtx-codecs --with-xmmsplugindir=/usr/lib/xmms/
--with-xmmslibdir=/usr/lib --enable-xmms --disable-inet6

Thx

-- 
Mark Szabo
mw3 at bsd.hu
-------------- next part --------------
gcc -c -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo -I/usr/include/freetype2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  -I/usr/include/SDL -D_REENTRANT   -o mencoder.o mencoder.c
In file included from cfg-mencoder.h:217,
                 from mencoder.c:241:
cfg-common.h:50: incompatible types in initialization
cfg-common.h:50: initializer element is not constant
cfg-common.h:50: (near initialization for `mencoder_opts[48].max')
cfg-common.h:50: initializer element is not constant
cfg-common.h:50: (near initialization for `mencoder_opts[48]')
cfg-common.h:62: initializer element is not constant
cfg-common.h:62: (near initialization for `mencoder_opts[49]')
cfg-common.h:65: initializer element is not constant
cfg-common.h:65: (near initialization for `mencoder_opts[50]')
cfg-common.h:66: initializer element is not constant
cfg-common.h:66: (near initialization for `mencoder_opts[51]')
cfg-common.h:69: initializer element is not constant
cfg-common.h:69: (near initialization for `mencoder_opts[52]')
cfg-common.h:70: initializer element is not constant
cfg-common.h:70: (near initialization for `mencoder_opts[53]')
cfg-common.h:73: initializer element is not constant
cfg-common.h:73: (near initialization for `mencoder_opts[54]')
cfg-common.h:74: initializer element is not constant
cfg-common.h:74: (near initialization for `mencoder_opts[55]')
cfg-common.h:75: initializer element is not constant
cfg-common.h:75: (near initialization for `mencoder_opts[56]')
cfg-common.h:78: initializer element is not constant
cfg-common.h:78: (near initialization for `mencoder_opts[57]')
cfg-common.h:79: initializer element is not constant
cfg-common.h:79: (near initialization for `mencoder_opts[58]')
cfg-common.h:80: initializer element is not constant
cfg-common.h:80: (near initialization for `mencoder_opts[59]')
cfg-common.h:81: initializer element is not constant
cfg-common.h:81: (near initialization for `mencoder_opts[60]')
cfg-common.h:83: initializer element is not constant
cfg-common.h:83: (near initialization for `mencoder_opts[61]')
cfg-common.h:84: initializer element is not constant
cfg-common.h:84: (near initialization for `mencoder_opts[62]')
cfg-common.h:86: initializer element is not constant
cfg-common.h:86: (near initialization for `mencoder_opts[63]')
cfg-common.h:87: initializer element is not constant
cfg-common.h:87: (near initialization for `mencoder_opts[64]')
cfg-common.h:90: initializer element is not constant
cfg-common.h:90: (near initialization for `mencoder_opts[65]')
cfg-common.h:94: initializer element is not constant
cfg-common.h:94: (near initialization for `mencoder_opts[66]')
cfg-common.h:95: initializer element is not constant
cfg-common.h:95: (near initialization for `mencoder_opts[67]')
cfg-common.h:96: initializer element is not constant
cfg-common.h:96: (near initialization for `mencoder_opts[68]')
cfg-common.h:97: initializer element is not constant
cfg-common.h:97: (near initialization for `mencoder_opts[69]')
cfg-common.h:98: initializer element is not constant
cfg-common.h:98: (near initialization for `mencoder_opts[70]')
cfg-common.h:99: initializer element is not constant
cfg-common.h:99: (near initialization for `mencoder_opts[71]')
cfg-common.h:100: initializer element is not constant
cfg-common.h:100: (near initialization for `mencoder_opts[72]')
cfg-common.h:101: initializer element is not constant
cfg-common.h:101: (near initialization for `mencoder_opts[73]')
cfg-common.h:103: initializer element is not constant
cfg-common.h:103: (near initialization for `mencoder_opts[74]')
cfg-common.h:105: initializer element is not constant
cfg-common.h:105: (near initialization for `mencoder_opts[75]')
cfg-common.h:109: initializer element is not constant
cfg-common.h:109: (near initialization for `mencoder_opts[76]')
cfg-common.h:118: initializer element is not constant
cfg-common.h:118: (near initialization for `mencoder_opts[77]')
cfg-common.h:119: initializer element is not constant
cfg-common.h:119: (near initialization for `mencoder_opts[78]')
cfg-common.h:122: initializer element is not constant
cfg-common.h:122: (near initialization for `mencoder_opts[79]')
cfg-common.h:125: initializer element is not constant
cfg-common.h:125: (near initialization for `mencoder_opts[80]')
cfg-common.h:126: initializer element is not constant
cfg-common.h:126: (near initialization for `mencoder_opts[81]')
cfg-common.h:127: initializer element is not constant
cfg-common.h:127: (near initialization for `mencoder_opts[82]')
cfg-common.h:128: initializer element is not constant
cfg-common.h:128: (near initialization for `mencoder_opts[83]')
cfg-common.h:134: initializer element is not constant
cfg-common.h:134: (near initialization for `mencoder_opts[84]')
cfg-common.h:138: initializer element is not constant
cfg-common.h:138: (near initialization for `mencoder_opts[85]')
cfg-common.h:139: initializer element is not constant
cfg-common.h:139: (near initialization for `mencoder_opts[86]')
cfg-common.h:141: initializer element is not constant
cfg-common.h:141: (near initialization for `mencoder_opts[87]')
cfg-common.h:142: initializer element is not constant
cfg-common.h:142: (near initialization for `mencoder_opts[88]')
cfg-common.h:144: initializer element is not constant
cfg-common.h:144: (near initialization for `mencoder_opts[89]')
cfg-common.h:145: initializer element is not constant
cfg-common.h:145: (near initialization for `mencoder_opts[90]')
cfg-common.h:150: initializer element is not constant
cfg-common.h:150: (near initialization for `mencoder_opts[91]')
cfg-common.h:151: initializer element is not constant
cfg-common.h:151: (near initialization for `mencoder_opts[92]')
cfg-common.h:153: initializer element is not constant
cfg-common.h:153: (near initialization for `mencoder_opts[93]')
cfg-common.h:154: initializer element is not constant
cfg-common.h:154: (near initialization for `mencoder_opts[94]')
cfg-common.h:158: initializer element is not constant
cfg-common.h:158: (near initialization for `mencoder_opts[95]')
cfg-common.h:160: initializer element is not constant
cfg-common.h:160: (near initialization for `mencoder_opts[96]')
cfg-common.h:165: initializer element is not constant
cfg-common.h:165: (near initialization for `mencoder_opts[97]')
cfg-common.h:167: initializer element is not constant
cfg-common.h:167: (near initialization for `mencoder_opts[98]')
cfg-common.h:169: initializer element is not constant
cfg-common.h:169: (near initialization for `mencoder_opts[99]')
cfg-common.h:173: initializer element is not constant
cfg-common.h:173: (near initialization for `mencoder_opts[100]')
cfg-common.h:174: initializer element is not constant
cfg-common.h:174: (near initialization for `mencoder_opts[101]')
cfg-common.h:175: initializer element is not constant
cfg-common.h:175: (near initialization for `mencoder_opts[102]')
cfg-common.h:176: initializer element is not constant
cfg-common.h:176: (near initialization for `mencoder_opts[103]')
cfg-common.h:177: initializer element is not constant
cfg-common.h:177: (near initialization for `mencoder_opts[104]')
cfg-common.h:178: initializer element is not constant
cfg-common.h:178: (near initialization for `mencoder_opts[105]')
cfg-common.h:179: initializer element is not constant
cfg-common.h:179: (near initialization for `mencoder_opts[106]')
cfg-common.h:181: initializer element is not constant
cfg-common.h:181: (near initialization for `mencoder_opts[107]')
cfg-common.h:182: initializer element is not constant
cfg-common.h:182: (near initialization for `mencoder_opts[108]')
cfg-common.h:183: initializer element is not constant
cfg-common.h:183: (near initialization for `mencoder_opts[109]')
cfg-common.h:186: initializer element is not constant
cfg-common.h:186: (near initialization for `mencoder_opts[110]')
cfg-common.h:189: initializer element is not constant
cfg-common.h:189: (near initialization for `mencoder_opts[111]')
cfg-common.h:194: initializer element is not constant
cfg-common.h:194: (near initialization for `mencoder_opts[112]')
cfg-common.h:196: initializer element is not constant
cfg-common.h:196: (near initialization for `mencoder_opts[113]')
cfg-common.h:198: initializer element is not constant
cfg-common.h:198: (near initialization for `mencoder_opts[114]')
cfg-common.h:199: initializer element is not constant
cfg-common.h:199: (near initialization for `mencoder_opts[115]')
cfg-common.h:200: initializer element is not constant
cfg-common.h:200: (near initialization for `mencoder_opts[116]')
cfg-common.h:201: initializer element is not constant
cfg-common.h:201: (near initialization for `mencoder_opts[117]')
cfg-common.h:202: initializer element is not constant
cfg-common.h:202: (near initialization for `mencoder_opts[118]')
cfg-common.h:203: initializer element is not constant
cfg-common.h:203: (near initialization for `mencoder_opts[119]')
cfg-common.h:204: initializer element is not constant
cfg-common.h:204: (near initialization for `mencoder_opts[120]')
cfg-common.h:206: initializer element is not constant
cfg-common.h:206: (near initialization for `mencoder_opts[121]')
cfg-common.h:208: initializer element is not constant
cfg-common.h:208: (near initialization for `mencoder_opts[122]')
cfg-common.h:209: initializer element is not constant
cfg-common.h:209: (near initialization for `mencoder_opts[123]')
cfg-common.h:210: initializer element is not constant
cfg-common.h:210: (near initialization for `mencoder_opts[124]')
cfg-common.h:211: initializer element is not constant
cfg-common.h:211: (near initialization for `mencoder_opts[125]')
cfg-common.h:212: initializer element is not constant
cfg-common.h:212: (near initialization for `mencoder_opts[126]')
cfg-common.h:213: initializer element is not constant
cfg-common.h:213: (near initialization for `mencoder_opts[127]')
cfg-common.h:214: initializer element is not constant
cfg-common.h:214: (near initialization for `mencoder_opts[128]')
cfg-common.h:217: initializer element is not constant
cfg-common.h:217: (near initialization for `mencoder_opts[129]')
cfg-common.h:218: initializer element is not constant
cfg-common.h:218: (near initialization for `mencoder_opts[130]')
cfg-common.h:219: initializer element is not constant
cfg-common.h:219: (near initialization for `mencoder_opts[131]')
cfg-common.h:220: initializer element is not constant
cfg-common.h:220: (near initialization for `mencoder_opts[132]')
cfg-common.h:221: initializer element is not constant
cfg-common.h:221: (near initialization for `mencoder_opts[133]')
cfg-common.h:222: initializer element is not constant
cfg-common.h:222: (near initialization for `mencoder_opts[134]')
cfg-common.h:223: initializer element is not constant
cfg-common.h:223: (near initialization for `mencoder_opts[135]')
cfg-common.h:224: initializer element is not constant
cfg-common.h:224: (near initialization for `mencoder_opts[136]')
cfg-common.h:226: initializer element is not constant
cfg-common.h:226: (near initialization for `mencoder_opts[137]')
cfg-common.h:227: initializer element is not constant
cfg-common.h:227: (near initialization for `mencoder_opts[138]')
cfg-common.h:228: initializer element is not constant
cfg-common.h:228: (near initialization for `mencoder_opts[139]')
cfg-common.h:229: initializer element is not constant
cfg-common.h:229: (near initialization for `mencoder_opts[140]')
cfg-common.h:230: initializer element is not constant
cfg-common.h:230: (near initialization for `mencoder_opts[141]')
cfg-common.h:231: initializer element is not constant
cfg-common.h:231: (near initialization for `mencoder_opts[142]')
In file included from mencoder.c:241:
cfg-mencoder.h:221: initializer element is not constant
cfg-mencoder.h:221: (near initialization for `mencoder_opts[143]')
cfg-mencoder.h:222: initializer element is not constant
cfg-mencoder.h:222: (near initialization for `mencoder_opts[144]')
cfg-mencoder.h:226: initializer element is not constant
cfg-mencoder.h:226: (near initialization for `mencoder_opts[145]')
mencoder.c: In function `main':
mencoder.c:400: warning: passing arg 2 of `m_config_register_options' from incompatible pointer type
make: *** [mencoder.o] Error 1


More information about the MPlayer-dev-eng mailing list