[MacPorts] #35105: openjpeg port erroneously tries to link against absent libpng15
#35105: openjpeg port erroneously tries to link against absent libpng15 --------------------------------------+------------------------------------- Reporter: trg818@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: libpng, openjpeg, ffmpeg | Port: openjpeg --------------------------------------+------------------------------------- In the course of a more comprehensive upgrade involving ffmpeg and gtk2, I have to rebuild openjpeg, on which ffmpeg depends. This build fails, because it tries to link against libpng15, which is absent from my system, instead of linking against libpng14, which is installed and active. The screen output is: ~> sudo port clean openjpeg ffmpeg gtk2 ---> Cleaning openjpeg ---> Cleaning ffmpeg ---> Cleaning gtk2 ~> sudo port rev-upgrade ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> Found 92 broken file(s), matching files to ports ---> Found 4 broken port(s), determining rebuild order ---> Rebuilding in order ffmpeg @0.7.11 gdk-pixbuf2 @2.26.1 gtk2 @2.24.8 +x11 poppler @0.18.4 +qt4+quartz ---> Computing dependencies for ffmpeg ---> Dependencies to be installed: openjpeg ---> Fetching archive for openjpeg ---> Attempting to fetch openjpeg-1.5.0_2.darwin_9.i386.tbz2 from http://packages.macports.org/openjpeg ---> Fetching distfiles for openjpeg ---> Verifying checksum(s) for openjpeg ---> Extracting openjpeg ---> Applying patches to openjpeg ---> Configuring openjpeg ---> Building openjpeg Error: org.macports.build for port openjpeg returned: command execution failed Error: Failed to install openjpeg Please see the log file for port openjpeg for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_openjpeg/openjpeg/main.log Error: The following dependencies were not installed: openjpeg Error: Unable to upgrade port: 1 Error rebuilding ffmpeg while executing "error "Error rebuilding $portname"" (procedure "revupgrade_scanandrebuild" line 370) invoked from within "revupgrade_scanandrebuild broken_port_counts $opts" (procedure "macports::revupgrade" line 5) invoked from within "macports::revupgrade $opts" (procedure "action_revupgrade" line 2) invoked from within "$action_proc $action $portlist [array get global_options]" (procedure "process_cmd" line 95) invoked from within "process_cmd $remaining_args" invoked from within "if { [llength $remaining_args] > 0 } { # If there are remaining arguments, process those as a command set exit_status [process_cmd $remaining..." (file "/opt/local/bin/port" line 4784) The logfile is attached. -- Ticket URL: <https://trac.macports.org/ticket/35105> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35105: openjpeg port erroneously tries to link against absent libpng15 ------------------------------+--------------------------------------------- Reporter: trg818@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: openjpeg ------------------------------+--------------------------------------------- Changes (by cal@…): * keywords: libpng, openjpeg, ffmpeg => Old description:
In the course of a more comprehensive upgrade involving ffmpeg and gtk2, I have to rebuild openjpeg, on which ffmpeg depends. This build fails, because it tries to link against libpng15, which is absent from my system, instead of linking against libpng14, which is installed and active. The screen output is: ~> sudo port clean openjpeg ffmpeg gtk2 ---> Cleaning openjpeg ---> Cleaning ffmpeg ---> Cleaning gtk2 ~> sudo port rev-upgrade ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> Found 92 broken file(s), matching files to ports ---> Found 4 broken port(s), determining rebuild order ---> Rebuilding in order ffmpeg @0.7.11 gdk-pixbuf2 @2.26.1 gtk2 @2.24.8 +x11 poppler @0.18.4 +qt4+quartz ---> Computing dependencies for ffmpeg ---> Dependencies to be installed: openjpeg ---> Fetching archive for openjpeg ---> Attempting to fetch openjpeg-1.5.0_2.darwin_9.i386.tbz2 from http://packages.macports.org/openjpeg ---> Fetching distfiles for openjpeg ---> Verifying checksum(s) for openjpeg ---> Extracting openjpeg ---> Applying patches to openjpeg ---> Configuring openjpeg ---> Building openjpeg Error: org.macports.build for port openjpeg returned: command execution failed Error: Failed to install openjpeg Please see the log file for port openjpeg for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_openjpeg/openjpeg/main.log Error: The following dependencies were not installed: openjpeg Error: Unable to upgrade port: 1 Error rebuilding ffmpeg while executing "error "Error rebuilding $portname"" (procedure "revupgrade_scanandrebuild" line 370) invoked from within "revupgrade_scanandrebuild broken_port_counts $opts" (procedure "macports::revupgrade" line 5) invoked from within "macports::revupgrade $opts" (procedure "action_revupgrade" line 2) invoked from within "$action_proc $action $portlist [array get global_options]" (procedure "process_cmd" line 95) invoked from within "process_cmd $remaining_args" invoked from within "if { [llength $remaining_args] > 0 } {
# If there are remaining arguments, process those as a command set exit_status [process_cmd $remaining..." (file "/opt/local/bin/port" line 4784)
The logfile is attached.
New description: In the course of a more comprehensive upgrade involving ffmpeg and gtk2, I have to rebuild openjpeg, on which ffmpeg depends. This build fails, because it tries to link against libpng15, which is absent from my system, instead of linking against libpng14, which is installed and active. The screen output is: {{{ ~> sudo port clean openjpeg ffmpeg gtk2 ---> Cleaning openjpeg ---> Cleaning ffmpeg ---> Cleaning gtk2 ~> sudo port rev-upgrade ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> Found 92 broken file(s), matching files to ports ---> Found 4 broken port(s), determining rebuild order ---> Rebuilding in order ffmpeg @0.7.11 gdk-pixbuf2 @2.26.1 gtk2 @2.24.8 +x11 poppler @0.18.4 +qt4+quartz ---> Computing dependencies for ffmpeg ---> Dependencies to be installed: openjpeg ---> Fetching archive for openjpeg ---> Attempting to fetch openjpeg-1.5.0_2.darwin_9.i386.tbz2 from http://packages.macports.org/openjpeg ---> Fetching distfiles for openjpeg ---> Verifying checksum(s) for openjpeg ---> Extracting openjpeg ---> Applying patches to openjpeg ---> Configuring openjpeg ---> Building openjpeg Error: org.macports.build for port openjpeg returned: command execution failed Error: Failed to install openjpeg Please see the log file for port openjpeg for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_openjpeg/openjpeg/main.log Error: The following dependencies were not installed: openjpeg Error: Unable to upgrade port: 1 Error rebuilding ffmpeg while executing "error "Error rebuilding $portname"" (procedure "revupgrade_scanandrebuild" line 370) invoked from within "revupgrade_scanandrebuild broken_port_counts $opts" (procedure "macports::revupgrade" line 5) invoked from within "macports::revupgrade $opts" (procedure "action_revupgrade" line 2) invoked from within "$action_proc $action $portlist [array get global_options]" (procedure "process_cmd" line 95) invoked from within "process_cmd $remaining_args" invoked from within "if { [llength $remaining_args] > 0 } { # If there are remaining arguments, process those as a command set exit_status [process_cmd $remaining..." (file "/opt/local/bin/port" line 4784) }}} The logfile is attached. -- -- Ticket URL: <https://trac.macports.org/ticket/35105#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35105: openjpeg port erroneously tries to link against absent libpng15 ------------------------------+--------------------------------------------- Reporter: trg818@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: openjpeg ------------------------------+--------------------------------------------- Comment(by cal@…): Please attach `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_openjpeg/openjpeg/work/openjpeg-1.5.0/config.log`. -- Ticket URL: <https://trac.macports.org/ticket/35105#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35105: openjpeg port erroneously tries to link against absent libpng15 ------------------------------+--------------------------------------------- Reporter: trg818@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: openjpeg ------------------------------+--------------------------------------------- Changes (by cal@…): * cc: mcalhoun@… (added) -- Ticket URL: <https://trac.macports.org/ticket/35105#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35105: openjpeg port erroneously tries to link against absent libpng15 ------------------------------+--------------------------------------------- Reporter: trg818@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: openjpeg ------------------------------+--------------------------------------------- Comment(by cal@…): From the looks of your `config.log`, `pkg-config --exists --print-errors "libpng15 zlib"` doesn't signal any problems, so the configure script assumes you have libpng15 installed. Please provide the output of `pkg-config --cflags --libs --print-errors libpng15`, please search your system for any installed files named `libpng15.pc` and attach them. -- Ticket URL: <https://trac.macports.org/ticket/35105#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35105: openjpeg port erroneously tries to link against absent libpng15 ------------------------------+--------------------------------------------- Reporter: trg818@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: openjpeg ------------------------------+--------------------------------------------- Comment(by cal@…): Actually, further down in your `config.log` the result of `pkg-config --cflags libpng15` and `pkg-config --libs libpng15` is already present: {{{ 820 PNG_CFLAGS='-I/opt/local/include/libpng15 -I/opt/local/include ' 821 PNG_LIBS='-L/opt/local/lib -lpng15 -lz ' }}} It seems your previous installation of libpng15 has not been correctly and completely removed. -- Ticket URL: <https://trac.macports.org/ticket/35105#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35105: openjpeg port erroneously tries to link against absent libpng15 ------------------------------+--------------------------------------------- Reporter: trg818@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: openjpeg ------------------------------+--------------------------------------------- Comment(by trg818@…): Yes, it turns out that the include files of an old libpng15 installation were still there. I removed them, and openjpeg and ffmpeg now build correctly. Sorry for bothering. {{{ ~> pkg-config --cflags --libs --print-errors libpng15 Package libpng15 was not found in the pkg-config search path. Perhaps you should add the directory containing `libpng15.pc' to the PKG_CONFIG_PATH environment variable No package 'libpng15' found }}} {{{ prefix=/opt/local exec_prefix=/opt/local libdir=/opt/local/lib includedir=/opt/local/include/libpng15 Name: libpng Description: Loads and saves PNG files Version: 1.5.7 Libs: -L${libdir} -lpng15 -lz Cflags: -I${includedir} }}} -- Ticket URL: <https://trac.macports.org/ticket/35105#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35105: openjpeg port erroneously tries to link against absent libpng15 -------------------------------+-------------------------------------------- Reporter: trg818@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: invalid | Keywords: Port: openjpeg | -------------------------------+-------------------------------------------- Changes (by cal@…): * status: new => closed * resolution: => invalid -- Ticket URL: <https://trac.macports.org/ticket/35105#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts