Avnu / libavtp

Open source implementation of Audio Video Transport Protocol (AVTP) specified in IEEE 1722-2016 spec.
BSD 3-Clause "New" or "Revised" License
62 stars 34 forks source link

Fixed Linux/Alpine 3.20 build #45

Closed tomaszmi closed 3 months ago

tomaszmi commented 3 months ago

I noticed the error while compiling GStreamer 1.24.5 on Alpine/Linux 3.20:

[1352/8486] Linking target subprojects/libavtp/libavtp.so.0.2.0
ninja: job failed: cc  -o subprojects/libavtp/libavtp.so.0.2.0 subprojects/libavtp/libavtp.so.0.2.0.p/src_avtp.c.o subprojects/libavtp/libavtp.so.0.2.0.p/src_avtp_aaf.c.o subprojects/libavtp/libavtp.so.0.2.0.p/src_avtp_crf.c.o subprojects/libavtp/libavtp.so.0.2.0.p/src_avtp_cvf.c.o subprojects/libavtp/libavtp.so.0.2.0.p/src_avtp_rvf.c.o subprojects/libavtp/libavtp.so.0.2.0.p/src_avtp_ieciidc.c.o subprojects/libavtp/libavtp.so.0.2.0.p/src_avtp_stream.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,-soname,libavtp.so.0
/usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: subprojects/libavtp/libavtp.so.0.2.0.p/src_avtp_rvf.c.o: in function `avtp_rvf_pdu_get':
/app/gstreamer/builddir/../subprojects/libavtp/src/avtp_rvf.c:209:(.text+0x47c): undefined reference to `be64toh'
/usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: subprojects/libavtp/libavtp.so.0.2.0.p/src_avtp_rvf.c.o: in function `set_raw_field_value':
/app/gstreamer/builddir/../subprojects/libavtp/src/avtp_rvf.c:320:(.text+0x804): undefined reference to `be64toh'
/usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /app/gstreamer/builddir/../subprojects/libavtp/src/avtp_rvf.c:324:(.text+0x840): undefined reference to `htobe64'
/usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: subprojects/libavtp/libavtp.so.0.2.0.p/src_avtp_stream.c.o: in function `avtp_stream_pdu_get':
/app/gstreamer/builddir/../subprojects/libavtp/src/avtp_stream.c:116:(.text+0x2b8): undefined reference to `be64toh'
/usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: subprojects/libavtp/libavtp.so.0.2.0.p/src_avtp_stream.c.o: in function `avtp_stream_pdu_set':
/app/gstreamer/builddir/../subprojects/libavtp/src/avtp_stream.c:199:(.text+0x524): undefined reference to `htobe64'
collect2: error: ld returned 1 exit status
ninja: subcommand failed
tomaszmi commented 3 months ago

Unfortunately I have read-only access and I cannot deliver this approved PR