On 11/19/2011 09:21 AM, John Stebbins wrote:
> Hi,
>
> On 11/19/2011 12:06 AM, Martin Storsjö wrote:
>> On Fri, 18 Nov 2011, Måns Rullgård wrote:
>>
>>>> From ba07b4888a5195ccb1161ae4edd5d64a5c4ffd00 Mon Sep 17 00:00:00 2001
>>>> From: John Stebbins <[email protected]>
>>>> Date: Fri, 18 Nov 2011 13:39:18 -0800
>>>> Subject: [PATCH] Fix httpproxy protocol dependencies
>>>>
>>>> Building with --disable-network failed with undefined reference.
>>>> ---
>>>>  configure |    1 +
>>>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>>>
>>>> diff --git a/configure b/configure
>>>> index 6e4259f..352150b 100755
>>>> --- a/configure
>>>> +++ b/configure
>>>> @@ -1484,6 +1484,7 @@ http_protocol_deps="network"
>>>>  http_protocol_select="tcp_protocol"
>>>>  https_protocol_select="tls_protocol"
>>>>  mmsh_protocol_select="http_protocol"
>>>> +httpproxy_protocol_select="http_protocol"
>>>>  mmst_protocol_deps="network"
>>>>  rtmp_protocol_select="tcp_protocol"
>>>>  rtp_protocol_select="udp_protocol"
>>>> -- 
>>> OK
>> This shouldn't be needed actually, if I would have added the object files 
>> properly in the Makefile. John, does the
>> patch I just posted fix your issue, too?
>>
> With only the Makefile patch:
>
> In file included from libavformat/http.c:26:0:
> libavformat/network.h:42:24: fatal error: sys/socket.h: No such file or 
> directory
> compilation terminated.
> make: *** [libavformat/http.o] Error 1
>
>
> Remember, I am using --disable-network.  So all network protocols should be 
> disabled somehow.
>

It seems that since httpproxy is it's own thing (not dependent on http), it 
should have similar
dependencies as http.

This patch, combined with Martin's Makefile patch fixes the build with 
--disable-network and
also works with --disable-everything --enable-protocol=httpproxy.

Should it also have httpproxy_protocol_select="tcp_protocol" like http does?


-- 
John      GnuPG fingerprint: D0EC B3DB C372 D1F1 0B01  83F0 49F1 D7B2 60D4 D0F7

From 967577c4b63989d220e96869103c060100ea73fe Mon Sep 17 00:00:00 2001
From: John Stebbins <[email protected]>
Date: Sat, 19 Nov 2011 09:58:26 -0800
Subject: [PATCH] Fix httpproxy protocol dependencies

Fix building with --disable-network
---
 configure |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 61bb4df..1da1f72 100755
--- a/configure
+++ b/configure
@@ -1480,6 +1480,7 @@ x11_grab_device_indev_extralibs="-lX11 -lXext -lXfixes"
 
 # protocols
 gopher_protocol_deps="network"
+httpproxy_protocol_deps="network"
 http_protocol_deps="network"
 http_protocol_select="tcp_protocol"
 https_protocol_select="tls_protocol"
-- 
1.7.4.4

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to