It fails with the following messages: gmake[3]: Entering directory '/wrkdirs/usr/ports/multimedia/dvdauthor/work/dvdauthor/src' /bin/sh ../libtool --tag=CC --mode=link cc -Wall -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fstack-protector-strong -o dvdauthor dvdauthor.o dvdcompile.o d vdvml.o dvdvmy.o dvdifo.o dvdvob.o dvdpgc.o dvdcli.o readxml.o conffile.o compat.o -L/usr/local/lib -lxml2 -lz -L/usr/lib -llzma -L/usr/lib -lm -L/usr/local/lib libtool: link: cc -Wall -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fstack-protector-strong -o dvdauthor dvdauthor.o dvdcompile.o dvdvml.o dvdvmy.o dvdifo.o dvdvob .o dvdpgc.o dvdcli.o readxml.o conffile.o compat.o -L/usr/local/lib -lxml2 -lz -L/usr/lib -llzma -lm cc -DHAVE_CONFIG_H -I. -DSYSCONFDIR="\"/usr/local/etc\"" -I/usr/local/include/libxml2 -I/usr/include -I/usr/local/include/libpng16 -I/usr/local/include/freetype2 -I/usr/local/include/fribidi -I/usr/local/include -I/us r/local/include -I/usr/local/include/freetype2 -DLIBICONV_PLUG -isystem /usr/local/include -Wall -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -MT subgen-image.o - MD -MP -MF .deps/subgen-image.Tpo -c -o subgen-image.o subgen-image.c subgen-image.c:33:10: fatal error: 'magick/api.h' file not found #include <magick/api.h> ^~~~~~~~~~~~~~ 1 error generated. gmake[3]: *** [Makefile:597: subgen-image.o] Error 1 gmake[3]: Leaving directory '/wrkdirs/usr/ports/multimedia/dvdauthor/work/dvdauthor/src' gmake[2]: *** [Makefile:412: all] Error 2 gmake[2]: Leaving directory '/wrkdirs/usr/ports/multimedia/dvdauthor/work/dvdauthor/src' gmake[1]: *** [Makefile:414: all-recursive] Error 1 gmake[1]: Leaving directory '/wrkdirs/usr/ports/multimedia/dvdauthor/work/dvdauthor' *** Error code 1 It can be worked around by enabling IMAGEMAGICK option. I didn't spend time figuring out the proper way to fix it.
Created attachment 207094 [details] svn-diff-dvdauthor Include magick/api.h from GraphicsMagick results in a linker error. So I remove defined(HAVE_GMAGICK) from subgen-image.c.
@Ting-Wei Could you please include additional information: - Full build log (as an attachment) - WRKSRC/config.log output (as an attachment) - pkg version -v output (as an attachment) - System information (uname -a) - /etc/make.conf contents (as an attachment) Note: The port currently contains the following block to (apparently) disable imagemagick in the case the option is disabled: pre-configure-IMAGEMAGICK-off: @${REINPLACE_CMD} 's|usemagick=1|usemagick=0|g' \ Presumably this is insufficient. It was added in ports r305215 (committer CC'd)
Created attachment 207189 [details] Full build log
Created attachment 207190 [details] config.log
(In reply to Kubilay Kocak from comment #2) > - pkg version -v output (as an attachment) All packages are up-to-date. I tested it with ports r510311. > - System information (uname -a) FreeBSD 12_0-amd64-default 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 amd64 > - /etc/make.conf contents (as an attachment) There was no custom settings in /etc/make.conf. It was generated by poudriere.
i ran into this same error today with IMAGEMAGICK both on or off. (i have both GraphicsMagick-1.3.35,1 and ImageMagick7-7.0.10.24 installed.) Applying the patch resulted in a completed build with IMAGEMAGICK off, but not on. The same error still occurs when i try to build with IMAGEMAGICK support turned on.
Created attachment 218457 [details] svn diff from /usr/ports/multimedia/dvdauthor includes patch from earlier submission. should now support building and linking against ImageMagick6. see bug #250033 if you like keeping ImageMagick7 installed also like i did
Created attachment 218473 [details] svn diff from /usr/ports/multimedia/dvdauthor
Created attachment 221267 [details] Add possibility to build with and without GraphicsMagick and with ImageMagick7 installed It's hack, but detecting *Magick is very ugly in dvdauthor. AFAIU, this bug is fixed in upstream already, but there is no new version yet. So 2nd option is update port to github commit.
Created attachment 221291 [details] update to last commit on github - fixed build with GraphicsMagick/ImageMagick I have question about version of this port - what is better version name?
Created attachment 221313 [details] update to last commit on github - fixed build with GraphicsMagick/ImageMagick (v3) PORTVERSION=0.7.2.20190419 It's date of the last commit.
Created attachment 221356 [details] update to last commit on github - fixed build with GraphicsMagick/ImageMagick (v4)
Moin moin It seems there is a missing depndency: cc -DHAVE_CONFIG_H -I. -DSYSCONFDIR="\"/usr/local/etc\"" -I/usr/local/include/libxml2 -I/usr/include -I/usr/local/include/libpng16 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/fribidi -I/usr/local/include -I/usr/local/include/freetype2 -DLIBICONV_PLUG -isystem /usr/local/include -Wall -O2 -pipe -march=znver1 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -MT dvdcompile.o -MD -MP -MF .deps/dvdcompile.Tpo -c -o dvdcompile.o dvdcompile.c flex -s -B -Cem -odvdvml.c -Pdvdvm dvdvml.l bison -o dvdvmy.c -d -p dvdvm dvdvmy.y gmake[3]: bison: No such file or directory gmake[3]: *** [Makefile:908: dvdvmy.h] Error 127 gmake[3]: *** Waiting for unfinished jobs.... mfg Tobias
Created attachment 221363 [details] update to last commit on github - fixed build with GraphicsMagick/ImageMagick (v5) USES=bison:alias
A commit references this bug: Author: tcberner Date: Sat Jan 9 10:49:28 UTC 2021 New revision: 560847 URL: https://svnweb.freebsd.org/changeset/ports/560847 Log: multimedia/dvdauthor: Fails to build if GraphicsMagick is installed Switch to using latest commit from github. The handling of the image magic dependency has been improved in [1] in 2017, but the software has not seen a release since. [1] https://github.com/ldo/dvdauthor/commit/a0d57bebb3a5d7259a0508a07a898cfe044155a1 PR: 240270 Submitted by: VVD <vvd@unislabs.com> Reported by: Ting-Wei Lan <lantw44@gmail.com> Changes: head/multimedia/dvdauthor/Makefile head/multimedia/dvdauthor/distinfo head/multimedia/dvdauthor/pkg-descr head/multimedia/dvdauthor/pkg-plist
Ting-Wei Lan, you can test and close this PR.