[FFmpeg-devel] select interface for multicast messages

Michael Niedermayer michaelni at gmx.at
Mon Mar 12 06:55:12 CET 2012


On Mon, Mar 12, 2012 at 05:32:07AM +0100, Michael Niedermayer wrote:
> On Sun, Jan 29, 2012 at 03:32:50PM +0100, Tudor SUCIU wrote:
> > Hello,
> > 
> > This is how I finally managed to test the windows build:
> > 
> > I downloaded http://www.zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-2.8.4
> > and build the mingw.
> > 
> > Then I used the configure from
> > http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=5&t=14 :
> > 
> > ./configure \
> > --enable-gpl \
> > --enable-version3 \
> > --enable-nonfree \
> > --enable-runtime-cpudetect \
> > --arch=x86 \
> > --cpu=core2 \
> > --prefix=$HOME/host/builds/ffmpeg \
> > --target-os=mingw32 \
> > --cross-prefix=x86_64-w64-mingw32- \
> > --enable-w32threads \
> > --enable-postproc
> > 
> > This patch compiles now on linux, win32, win64.
> > What else needs to be done in order for it to get accepted?
> 
> patch applied

reverted

it breaks compilation on bsd and opensolaris

Please submit a better patch :)

opensolaris:
CC  libavformat/txd.o
CC  libavformat/udp.o
/export/home/michael/fate/src/libavformat/udp.c: In function `udp_join_multicast_group':
/export/home/michael/fate/src/libavformat/udp.c:131: error: `SOL_IP' undeclared (first use in this function)
/export/home/michael/fate/src/libavformat/udp.c:131: error: (Each undeclared identifier is reported only once
/export/home/michael/fate/src/libavformat/udp.c:131: error: for each function it appears in.)

openbsd:
CC  libavformat/txd.o
CC  libavformat/udp.o
/home/fate/src/libavformat/udp.c: In function `udp_join_multicast_group':
/home/fate/src/libavformat/udp.c:118: error: storage size of `gr' isn't known
/home/fate/src/libavformat/udp.c:118: warning: unused variable `gr'
gmake: *** [libavformat/udp.o] Error 1

freebsd:
CC  libavformat/udp.o
/home/fate/src/libavformat/udp.c:131:32: error: use of undeclared identifier 'SOL_IP'
        if (setsockopt(sockfd, SOL_IP, MCAST_JOIN_GROUP, &gr, sizeof(struct group_req)) < 0) {
                               ^
1 error generated.
gmake: *** [libavformat/udp.o] Error 1

[...]


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120312/5ae91646/attachment.asc>


More information about the ffmpeg-devel mailing list