[vlc-devel] [PATCH 12/19] contrib: libarchive: fix build on mingw32

Steve Lhomme robux4 at gmail.com
Thu Jun 15 10:31:30 CEST 2017


On Thu, Jun 15, 2017 at 8:54 AM, Steve Lhomme <robux4 at gmail.com> wrote:
> On Wed, Jun 14, 2017 at 3:35 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
>> On June 14, 2017 3:02:01 PM GMT+03:00, Steve Lhomme <robux4 at videolabs.io> wrote:
>>>there's no reason to build with gnutls anyway
>>>---
>>> contrib/src/libarchive/rules.mak | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>>diff --git a/contrib/src/libarchive/rules.mak
>>>b/contrib/src/libarchive/rules.mak
>>>index e2c309f0cf..2ef1a240c8 100644
>>>--- a/contrib/src/libarchive/rules.mak
>>>+++ b/contrib/src/libarchive/rules.mak
>>>@@ -29,7 +29,7 @@ endif
>>> .libarchive: libarchive
>>>       cd $< && $(HOSTVARS) ./configure $(HOSTCONF) \
>>>               --disable-bsdcpio --disable-bsdtar --disable-bsdcat \
>>>-              --without-nettle \
>>>+              --without-nettle --without-openssl \
>>>               --without-xml2 --without-lzmadec --without-iconv --without-expat
>>>       cd $< && $(MAKE) install
>>>       touch $@
>>>--
>>>2.12.1
>>>
>>>_______________________________________________
>>>vlc-devel mailing list
>>>To unsubscribe or modify your subscription options:
>>>https://mailman.videolan.org/listinfo/vlc-devel
>>
>> Comment makes no sense to me??
>
> Yes, I meant openssl. Although the problem here is that it's using the
> one fron mingw but fail to add extra dependencies in the .pc and so
> fail to link.
> I don't know if the buildbot actually uses openssl (unlikely) but it
> may be better to fix the link issue instead.

I tried... As soon as the code calls HMAC_Init_ex() it has the linker
issue. But if I test that during configure it just uses libcrypto and
says everything is fine.

This is linker issue
libcrypto.a(rand_win.o):(.text+0xd5b): undefined reference to
`__imp_GetDeviceCaps'
libcrypto.a(rand_win.o):(.text+0xd5b): relocation truncated to fit:
R_X86_64_PC32 against undefined symbol `__imp_GetDeviceCaps'
libcrypto.a(rand_win.o):(.text+0xd88): undefined reference to
`__imp_CreateCompatibleBitmap'
libcrypto.a(rand_win.o):(.text+0xd88): relocation truncated to fit:
R_X86_64_PC32 against undefined symbol `__imp_CreateCompatibleBitmap'

At this point, apart from disabling --without-openssl (it also doesn't
find libcrypto and open-sll on the buildbot) I don't see how to fix
this.

>
>> --
>> Rémi Denis-Courmont
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list