cc -D_THREAD_SAFE -I/usr/local/include -I/usr/local/include -I/usr/local/include/p11-kit-1 -I/usr/local/include -I/usr/local/include/webp -I/usr/local/ffmpeg4/include -O2 -pipe -I/usr/local/ffmpeg4/include -fstack-protector-strong -isystem /usr/loc al/include -fno-strict-aliasing -L/usr/local/ffmpeg4/lib -fstack-protector-strong -o motion motion.o logger.o conf.o draw.o jpegutils.o video_loopback.o video_v4l2.o video_common.o video_bktr.o netcam.o netcam_http.o netcam_ftp.o netcam_jpeg.o netcam _wget.o netcam_rtsp.o track.o alg.o event.o picture.o rotate.o translate.o md5.o stream.o ffmpeg.o webu.o webu_html.o webu_stream.o webu_text.o mmalcam.o /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -pthread -L/usr/local/ lib -ljpeg -L/usr/local/lib -lmicrohttpd -L/usr/local/lib -lwebpmux -L/usr/local/ffmpeg4/lib -lavutil -lavformat -lavcodec -lswscale -lavdevice ld: error: undefined symbol: WebPConfigInitInternal >>> referenced by picture.c >>> picture.o:(put_picture) ld: error: undefined symbol: WebPPictureInitInternal >>> referenced by picture.c >>> picture.o:(put_picture) ld: error: undefined symbol: WebPPictureAlloc >>> referenced by picture.c >>> picture.o:(put_picture) ld: error: undefined symbol: WebPMemoryWriterInit >>> referenced by picture.c >>> picture.o:(put_picture) ld: error: undefined symbol: WebPMemoryWrite >>> referenced by picture.c >>> picture.o:(put_picture) ld: error: undefined symbol: WebPEncode >>> referenced by picture.c >>> picture.o:(put_picture) ld: error: undefined symbol: WebPMemoryWriterClear >>> referenced by picture.c >>> picture.o:(put_picture) ld: error: undefined symbol: WebPPictureFree >>> referenced by picture.c >>> picture.o:(put_picture) ld: error: undefined symbol: WebPFree >>> referenced by picture.c >>> picture.o:(put_picture) cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[4]: *** [Makefile:424: motion] Error 1
same here
The port has been marked as BROKEN in https://cgit.freebsd.org/ports/commit/?id=d380df54b8f9f744460ca01b3f329ce0b94a426b
Created attachment 244804 [details] patch to build motion with webp 1.31
The problem is the updated webp (from 1.30 to 1.31). There is a fix on in a github issue: https://github.com/Motion-Project/motionplus/issues/74 Its already fixed in a commit but not in a release. My patch works for me, I hope it can get committed.
Committed, Thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=42ce6b36ff709ca04247b85eec6b4e8f370ec2e3 commit 42ce6b36ff709ca04247b85eec6b4e8f370ec2e3 Author: Fernando Apesteguía <fernape@FreeBSD.org> AuthorDate: 2023-09-17 17:28:50 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2023-09-18 10:40:27 +0000 multimedia/motion: Fix build Update patch with fix from upstream. PR: 272494 Reported by: alexvpetrov@gmail.com Approved by: ports@blievers.net (maintainer, timeout > 2 weeks) multimedia/motion/Makefile | 4 +--- multimedia/motion/distinfo | 4 +++- multimedia/motion/files/patch-configure.ac | 11 +++++++++++ 3 files changed, 15 insertions(+), 4 deletions(-)
A commit in branch 2023Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=71a5cdfb0331553236640f80c67840b6a7ca6981 commit 71a5cdfb0331553236640f80c67840b6a7ca6981 Author: Fernando Apesteguía <fernape@FreeBSD.org> AuthorDate: 2023-09-17 17:28:50 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2023-09-24 01:16:44 +0000 multimedia/motion: Fix build Update patch with fix from upstream. PR: 272494 Reported by: alexvpetrov@gmail.com Reported by: pkg-fallout (quarterly) Approved by: ports@blievers.net (maintainer, timeout > 2 weeks) (cherry picked from commit 42ce6b36ff709ca04247b85eec6b4e8f370ec2e3) multimedia/motion/Makefile | 2 +- multimedia/motion/distinfo | 4 +++- multimedia/motion/files/patch-configure.ac | 11 +++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-)