Opened 12 years ago

Closed 12 years ago

#35105 closed defect (invalid)

openjpeg port erroneously tries to link against absent libpng15

Reported by: trg818 (Thomas Ruedas) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: openjpeg

Description (last modified by neverpanic (Clemens Lang))

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.

Attachments (2)

main.log (21.7 KB) - added by trg818 (Thomas Ruedas) 12 years ago.
Logfile for openjpeg compilation
config.log (34.2 KB) - added by trg818 (Thomas Ruedas) 12 years ago.
config.log for openjpeg build

Download all attachments as: .zip

Change History (9)

Changed 12 years ago by trg818 (Thomas Ruedas)

Attachment: main.log added

Logfile for openjpeg compilation

comment:1 Changed 12 years ago by neverpanic (Clemens Lang)

Description: modified (diff)
Keywords: libpng openjpeg ffmpeg removed

comment:2 Changed 12 years ago by neverpanic (Clemens Lang)

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.

comment:3 Changed 12 years ago by neverpanic (Clemens Lang)

Cc: mcalhoun@… added

Changed 12 years ago by trg818 (Thomas Ruedas)

Attachment: config.log added

config.log for openjpeg build

comment:4 Changed 12 years ago by neverpanic (Clemens Lang)

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.

comment:5 Changed 12 years ago by neverpanic (Clemens Lang)

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.

comment:6 Changed 12 years ago by trg818 (Thomas Ruedas)

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}

comment:7 Changed 12 years ago by neverpanic (Clemens Lang)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.