[vlc-devel] [PATCH] configure: disable -z defs linker check for OpenBSD.

Brad Smith brad at comstyle.com
Mon Mar 30 08:40:46 CEST 2020


libvlccore will fail linking..

ld: error: undefined symbol: daemon
 >>> referenced by libvlc.c
 >>>               .libs/libvlc.o:(libvlc_InternalInit)

ld: error: undefined symbol: getpid
 >>> referenced by libvlc.c
 >>>               .libs/libvlc.o:(libvlc_InternalInit)

ld: error: undefined symbol: fprintf
 >>> referenced by libvlc.c
 >>>               .libs/libvlc.o:(libvlc_InternalInit)

ld: error: undefined symbol: fclose
 >>> referenced by libvlc.c
 >>>               .libs/libvlc.o:(libvlc_InternalInit)

ld: error: undefined symbol: free
 >>> referenced by libvlc.c
 >>>               .libs/libvlc.o:(libvlc_InternalInit)

ld: error: undefined symbol: free
 >>> referenced by libvlc.c
 >>>               .libs/libvlc.o:(libvlc_InternalInit)

ld: error: undefined symbol: free
 >>> referenced by libvlc.c
 >>>               .libs/libvlc.o:(libvlc_InternalInit)

ld: error: undefined symbol: asprintf
 >>> referenced by libvlc.c
 >>>               .libs/libvlc.o:(libvlc_InternalInit)

This is expected for OpenBSD. You cannot use -z,defs
when linking shared libraries if any of the code utilizes
functions from libc since shared libraries are not linked
against libc.


On 3/30/2020 2:16 AM, Steve Lhomme wrote:
> Hi,
>
> Can you give any reason why this is needed ?
>
> On 2020-03-29 1:53, Brad Smith wrote:
>> ---
>>   configure.ac | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/configure.ac b/configure.ac
>> index e6e4fc4d56..dde0f60e7b 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -163,6 +163,7 @@ case "${host_os}" in
>>       SYS=openbsd
>>       CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/usr/X11R6/include"
>>       LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/usr/X11R6/lib/"
>> +    ac_cv_ld_z_defs=no
>>       ;;
>>     netbsd*)
>>       SYS=netbsd
>> -- 
>> 2.25.1
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>>
> _______________________________________________
> 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