Opened 2 years ago
Last modified 2 years ago
#65864 new defect
xv @3.10a: error: redefinition of 'jas_getdbglevel'
Reported by: | RobK88 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | Cc: | ||
Port: | xv |
Description
I am unable to upgrade xv on lion.
Compiler complains that jas_getdbglevel(void)
has been defined multiple times.
xvjp2k.c:77:5: error: redefinition of 'jas_getdbglevel' int jas_getdbglevel(void) {return 0;} ^ /opt/local/include/jasper/jas_debug.h:123:5: note: previous definition is here int jas_getdbglevel(void) ^ 8 warnings and 1 error generated. make: *** [xvjp2k.o] Error 1 make: *** Waiting for unfinished jobs.... make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_xv/xv/work/xv-3.10a' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_xv/xv/work/xv-3.10a" && /usr/bin/make -j4 -w all PREFIX='/opt/local' ZLIBDIR='/opt/local' JPEGDIR='/opt/local' JP2KDIR='/opt/local/libexec/jasper2' TIFFDIR='/opt/local' PNGDIR='/opt/local' CC='/usr/bin/clang' CCOPTS='-Os -arch x86_64' Exit code: 2 Error: Failed to build xv: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_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.
see attached main.log for more details.
Attachments (1)
Change History (5)
Changed 2 years ago by RobK88
comment:1 follow-up: 2 Changed 2 years ago by RobK88
It looks like the xv
port was updated last night. The xv
port now compiles and installs just fine. But one must first deactivate jasper
by running sudo port -f deactivate jasper
.
You can close this ticket now!
P.S. After xv
is installed, you may need to rebuilt a number of ports due to linking errors.
e.g.
---> Cleaning xv ---> Removing work directory for xv ---> Scanning binaries for linking errors Could not open /opt/local/lib/libjasper.6.dylib: Error opening or reading file (referenced from /opt/local/bin/4channels) ---> Found 15 broken files, matching files to ports ---> Found 2 broken ports, determining rebuild order You can always run 'port rev-upgrade' again to fix errors. The following ports will be rebuilt: libraw @0.20.2 netpbm @10.99.02+x11 Continue? [Y/n]: Y
Once xv
has been installed and any necessary ports have been rebuilt, one can reactivate japser
, if so desired.
comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | lion removed |
---|---|
Summary: | Unable to upgrade the xv port in lion - jas_getdbglevel(void) defined multiple times → xv @3.10a: error: redefinition of 'jas_getdbglevel' |
In [a6f5fa31ebd95ce6a7b3f4fe5ee20c2f1e64f5fd/macports-ports] the port was changed to alert users to this problem, but it should still be fixed properly.
comment:4 Changed 2 years ago by lpagani91
Hello,
I tried to deactivate jasper as mentioned, cleaned the xv installation, relaunched and fails with this message :
---> Found 2 broken ports, determining rebuild order You can always run 'port rev-upgrade' again to fix errors. The following ports will be rebuilt: netpbm @10.98.02+x11 qt513-qtimageformats @5.13.2 Continue? [Y/n]: ---> Computing dependencies for netpbm ---> Dependencies to be installed: jasper ---> Activating jasper @3.0.6_0 ---> Cleaning jasper ---> Fetching archive for netpbm ---> Attempting to fetch netpbm-10.99.02_1+x11.darwin_16.x86_64.tbz2 from https://packages.macports.org/netpbm ---> Attempting to fetch netpbm-10.99.02_1+x11.darwin_16.x86_64.tbz2.rmd160 from https://packages.macports.org/netpbm ---> Installing netpbm @10.99.02_1+x11 ---> Cleaning netpbm ---> Computing dependencies for netpbm ---> Deactivating netpbm @10.98.02_0+x11 ---> Cleaning netpbm ---> Activating netpbm @10.99.02_1+x11 ---> Cleaning netpbm ---> Computing dependencies for qt513-qtimageformats ---> Cleaning qt513-qtimageformats ---> Scanning binaries for linking errors ---> Found 16 broken files, matching files to ports Warning: No port py27-healpy found in the index; can't rebuild Warning: No port py36-healpy found in the index; can't rebuild ---> Broken files found, but all associated ports are not in the index and so cannot be rebuilt.
and it stops there.
py27|38-healpy has nothing to do with all this I guess.
main.log