Unable to build XV

Richard L. Hamilton rlhamil at smart.net
Sun Sep 18 23:56:40 UTC 2022


I’ve not only seen that across various macOS versions, but something else broke the existing xv because one of the ports the older version depended on changed where it keeps some libraries. Specifically, the older version of xv expects

/opt/local/lib/libjasper.4.dylib

but the new location for that seems to be

/opt/local/libexec/jasper2/lib/libjasper.4.dylib

So there are definitely issues between xv and jasper2.

I worked around the existing broken xv binary using a symlink for the library (which if it all gets fixed, I’ll remove by hand as I created it by hand). But other than that, I have no particular familiarity with the innards of either xv or jasper2, although many years ago I compiled xv for Solaris.

> On Sep 18, 2022, at 7:37 PM, Dave Horsfall <dave at horsfall.org> wrote:
> 
> Mid-2010 MacBook Pro w/ High Sierra 10.13.6 (as far as it will go)
> 
> I'll understand if XV is no longer supported (it's quite long in the 
> tooth), but I find it better than GIMP for my requirements.
> 
> Anyway...
> 
>    --->  Building xv
>    Error: Failed to build xv: command execution failed      
>    Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_xv/xv/main.log for details.
>    Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
> 
> Extract from main.log (compressed log attached):
> 
>    :info:build /usr/bin/clang -Os -arch x86_64 -DDOPNG -I/opt/local/include -I/opt/local/include -DDOJPEG -I/opt/local/include -DDOTIFF -DUSE_TILED_TIFF_BOTLEFT_FIX -I/opt/local/include -DDOPDS -DDOJP2K -I/opt/local/libexec/jasper2/include  -DMGCSFXDIR=\"/opt/local/lib/xv\"      -D__DARWIN__   -DUSLEEP -DDOCDIR=\"/opt/local/share/doc/xv\" -DSYSCONFDIR=\"/etc\" -DXVEXECPATH=\"/opt/local/lib/xv\" -o bggen bggen.c -L/opt/local/lib -ltiff -L/opt/local/lib -ljpeg -L/opt/local/lib -lpng -L/opt/local/lib -lz -L/opt/local/libexec/jasper2/lib -ljasper -L/usr/X11R6/lib -lX11 -lm
>    :info:build xvjp2k.c:77:5: error: redefinition of 'jas_getdbglevel'
>    :info:build int jas_getdbglevel(void) {return 0;}
>    :info:build     ^
>    :info:build /opt/local/include/jasper/jas_debug.h:123:5: note: previous definition is here
>    :info:build int jas_getdbglevel(void)
>    :info:build     ^
>    :info:build 1 error generated.
>    :info:build make: *** [xvjp2k.o] Error 1
> 
> Anyone else seeing this before I lodge a bug report?  I guess a dependency 
> must've changed to cause the rebuild...
> 
> -- Dave<main.log.bz2>



More information about the macports-users mailing list