[mythtv] 0.23-fixes compilation error in libs/libavformat

Janne Grunau janne-mythtv at grunau.be
Sun Aug 8 10:43:02 UTC 2010


On Sun, Aug 08, 2010 at 10:52:03AM +0200, Torbjörn Jansson wrote:
> > On Wed, Aug 04, 2010 at 03:09:27PM +0200, Torbjörn Jansson wrote:
> > >
> > > gcc -c -pipe -fomit-frame-pointer -O3 -std=c99 -g -Wall -Wno-switch
> > > -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
> -Wno-pointer-sign
> > > -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -fno-math-errno
> > > -fno-signed-zeros -fno-tree-vectorize -w -D_REENTRANT -DPIC -fPIC -DMMX
> > > -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_AV_CONFIG_H
> > > -D_LARGEFILE_SOURCE -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/local
> > > -I/usr/X11R6/include -I.. -I../.. -o os_support.o os_support.c
> > > In file included from os_support.c:43:
> > > network.h:72: error: redefinition of 'struct sockaddr_storage'
> > > make[2]: *** [os_support.o] Error 1
> > >
> > > any clues on what this is caused by and how to fix it?
> > 
> > no, it is checked for in configure.
> > 
> > grep -A5 sockaddr_storage config.ep
> > 
> > should give some hints. Which distribution is this?
> 
> I fixed it manually by doing a oneline change in network.h.
> I changed the ifdef:
> #if !HAVE_STRUCT_SOCKADDR_STORAGE to #if 0
> on the line in question (the one it errored on) and then I was able to
> compile it.

That is not a solution, please send the output of the grep command. It
will show why the test fails and thinks the system has no struct
socketaddr_storage.

Janne


More information about the mythtv-dev mailing list