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

Janne Grunau janne-mythtv at grunau.be
Sun Aug 8 15:00:34 UTC 2010


On Sun, Aug 08, 2010 at 03:35:32PM +0200, Torbjörn Jansson wrote:
> > > > > 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.
> 
> I know, it was just a temporary fix so i could get it to compile.
> Here is the output as requested:
> # grep -A5 sockaddr_storage config.ep
> check_type sys/types.h sys/socket.h struct sockaddr_storage
> check_cc
> BEGIN /tmp/mythtv_conf.7LHG3PJ1.c
>     1
>     2   #include <sys/types.h>
>     3   #include <sys/socket.h>
>     4   struct sockaddr_storage v;
> END /tmp/mythtv_conf.7LHG3PJ1.c
> gcc -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -std=c99 -pthread -fomit-frame-pointer -c -o
> /tmp/mythtv_conf.bTx9nU1F.o /tmp/mythtv_conf.7LHG3PJ1.c

strange that looks like the test succeeds.

please post the output of `grep HAVE_STRUCT_SOCKADDR_STORAGE config.h`

Janne


More information about the mythtv-dev mailing list