S

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

S

mvelanka
I am trying to build ffmpeg on Sun Solaris
----------------------
uname -a shows:
SunOS xxx-xxxx-xx 5.10 Generic_150400-14 sun4v sparc sun4v
----------------------
I am able to build when I make following changes:
----------------------
edit version.sh and make it for bash
#! /usr/bin/bash
----------------------
export PATH=/opt/csw/bin:$PATH
... this enables gmake to be called instead of make

bash ./configure --prefix=/tmp --disable-protocol=udp,udplite --disable-network && gmake
----------------------

ffmpeg as built above runs fine
However I need to enable network support and there is an issue there.

if I build
bash ./configure --prefix=/tmp --disable-protocol=udp,udplite  && gmake

compilation fails for
libavformat/sctp.c

following three struct members are not recognized for  struct msghdr
msg_control
msg_controllen
msg_flags  

I looked in the file
/usr/include/sys/socket.h
and saw that above members are there for struct msghdr32 (instead of struct msghdr)

This is the reason I had to disable network to proceed with compilation.

Please help me if I am making any wrong setting or anything else.
(currently I can work without network support; however it will soon be required.)

Please let me know if I should provide more details.

Thanks in advance
-mvelanka

Reply | Threaded
Open this post in threaded view
|

Re: S

Reindl Harald


Am 29.02.2016 um 20:24 schrieb mvelanka:
> ffmpeg as built above runs fine
> However I need to enable network support and there is an issue there.
>
> if I build
> bash ./configure --prefix=/tmp --disable-protocol=udp,udplite  && gmake
>
> compilation fails for
> libavformat/sctp.c

and why do you use "--disable-protocol" when you want to enable network
support?


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Solaris build problems with network support

mvelanka
Hi Reindl,
Thanks for your prompt support.

>and why do you use "--disable-protocol" when you want to enable network
support?

I had seen that setting in one of the emails on this board.
Now that you have asked, I removed that disable and tried to build
my current config is
==================================
bash ./configure --prefix=/tmp && gmake
==================================
I am getting following errors:
==================================
libavformat/sctp.c: In function `ff_sctp_recvmsg':
libavformat/sctp.c:80: warning: implicit declaration of function `CMSG_SPACE'
libavformat/sctp.c:91: error: structure has no member named `msg_control'
libavformat/sctp.c:92: error: structure has no member named `msg_controllen'
libavformat/sctp.c:100: error: structure has no member named `msg_flags'
libavformat/sctp.c:102: warning: implicit declaration of function `CMSG_FIRSTHDR'
libavformat/sctp.c:102: warning: assignment makes pointer from integer without a cast
libavformat/sctp.c:103: warning: implicit declaration of function `CMSG_NXTHDR'
libavformat/sctp.c:103: warning: assignment makes pointer from integer without a cast
libavformat/sctp.c:111: warning: implicit declaration of function `CMSG_DATA'
libavformat/sctp.c:111: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
libavformat/sctp.c: In function `ff_sctp_send':
libavformat/sctp.c:128: error: structure has no member named `msg_controllen'
libavformat/sctp.c:80: warning: redundant redeclaration of 'CMSG_SPACE'
libavformat/sctp.c:80: warning: previous implicit declaration of 'CMSG_SPACE' was here
libavformat/sctp.c:134: error: structure has no member named `msg_control'
libavformat/sctp.c:135: error: structure has no member named `msg_controllen'
libavformat/sctp.c:136: error: structure has no member named `msg_flags'
libavformat/sctp.c:102: warning: redundant redeclaration of 'CMSG_FIRSTHDR'
libavformat/sctp.c:102: warning: previous implicit declaration of 'CMSG_FIRSTHDR' was here
libavformat/sctp.c:138: warning: assignment makes pointer from integer without a cast
libavformat/sctp.c:141: warning: implicit declaration of function `CMSG_LEN'
libavformat/sctp.c:143: error: structure has no member named `msg_controllen'
libavformat/sctp.c:111: warning: redundant redeclaration of 'CMSG_DATA'
libavformat/sctp.c:111: warning: previous implicit declaration of 'CMSG_DATA' was here
libavformat/sctp.c:144: warning: passing arg 1 of `memcpy' makes pointer from integer without a cast
gmake: *** [libavformat/sctp.o] Error 1
=====================

Please see.
Thanks
-mvelanka