Bug 272494 - multimedia/motion: Fails to build latest
Summary: multimedia/motion: Fails to build latest
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Fernando Apesteguía
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-14 06:29 UTC by alexvpetrov
Modified: 2023-09-24 01:17 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (ports)


Attachments
patch to build motion with webp 1.31 (2.13 KB, patch)
2023-09-13 11:07 UTC, jan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description alexvpetrov 2023-07-14 06:29:04 UTC
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
Comment 1 jan 2023-07-20 05:01:27 UTC
same here
Comment 2 Fernando Apesteguía freebsd_committer freebsd_triage 2023-09-06 07:52:30 UTC
The port has been marked as BROKEN in https://cgit.freebsd.org/ports/commit/?id=d380df54b8f9f744460ca01b3f329ce0b94a426b
Comment 3 jan 2023-09-13 11:07:54 UTC
Created attachment 244804 [details]
patch to build motion with webp 1.31
Comment 4 jan 2023-09-13 11:09:13 UTC
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.
Comment 5 Fernando Apesteguía freebsd_committer freebsd_triage 2023-09-18 10:59:13 UTC
Committed,

Thanks!
Comment 6 commit-hook freebsd_committer freebsd_triage 2023-09-18 10:59:23 UTC
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(-)
Comment 7 commit-hook freebsd_committer freebsd_triage 2023-09-24 01:17:59 UTC
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(-)