selsta / hlsdl

C program to download VoD HLS (.m3u8) files
MIT License
636 stars 158 forks source link

Didn't compile on Fedora 32 #77

Closed charlesleer closed 4 years ago

charlesleer commented 4 years ago

Kept getting issues with compiling on Fedora 32

/usr/bin/ld: src/curl.o:(.bss+0x0): multiple definition of hls_args'; src/main.o:(.bss+0x0): first defined here /usr/bin/ld: src/hls.o:(.bss+0x0): multiple definition ofhls_args'; src/main.o:(.bss+0x0): first defined here /usr/bin/ld: src/misc.o:(.bss+0x0): multiple definition of hls_args'; src/main.o:(.bss+0x0): first defined here /usr/bin/ld: src/msg.o:(.bss+0x0): multiple definition ofhls_args'; src/main.o:(.bss+0x0): first defined here /usr/bin/ld: src/mpegts.o:(.bss+0x0): multiple definition of `hls_args'; src/main.o:(.bss+0x0): first defined here

solution was to add:

-z muldefs to the LDFLAGS in makefile, after adding that it compiles fine.

Just dropping it here, if someone else might run into it :)

selsta commented 4 years ago

Thank you, should be fixed in c14b0c9