Opened 12 years ago
Closed 12 years ago
#37962 closed defect (invalid)
cairo: dyld: Library not loaded: /opt/local/lib/libpng14.14.dylib Referenced from: /opt/local/lib/libcairo.2.dylib
Reported by: | jp+macports@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ||
Port: | cairo |
Description
I am attempting to install gnuplot with 'sudo port install gnuplot'. I have tried 'sudo port clean gnuplot' with no luck.
Here is the output of the failed install:
---> Computing dependencies for gnuplot ---> Fetching archive for gnuplot ---> Attempting to fetch gnuplot-4.6.1_0+aquaterm+luaterm+pangocairo+x11.darwin_10.x86_64.tbz2 from http://packages.macports.org/gnuplot ---> Attempting to fetch gnuplot-4.6.1_0+aquaterm+luaterm+pangocairo+x11.darwin_10.x86_64.tbz2 from http://lil.fr.packages.macports.org/gnuplot ---> Attempting to fetch gnuplot-4.6.1_0+aquaterm+luaterm+pangocairo+x11.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gnuplot ---> Fetching distfiles for gnuplot ---> Verifying checksum(s) for gnuplot ---> Extracting gnuplot ---> Applying patches to gnuplot ---> Configuring gnuplot ---> Building gnuplot Error: org.macports.build for port gnuplot returned: command execution failed Please see the log file for port gnuplot for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/gnuplot/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port gnuplot failed
Here is the end of main.log:
:info:build /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I../term -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -D_REE NTRANT -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/inc lude/libpng15 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -O2 -arch x86_64 -Obj C -F/opt/local/Library/Frameworks -c termdoc.c :info:build /usr/bin/gcc-4.2 -O2 -arch x86_64 -ObjC -F/opt/local/Library/Frameworks -L/opt/local/l ib -arch x86_64 -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -o doc2gih doc2gih.o termdoc.o -framework Foundation -framework AquaTerm -F/op t/local/Library/Frameworks -L/opt/local/lib -lz -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1. 0 -lm -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lintl :info:build ./doc2gih ./gnuplot.doc gnuplot.gih :info:build dyld: Library not loaded: /opt/local/lib/libpng14.14.dylib :info:build Referenced from: /opt/local/lib/libcairo.2.dylib:info:build Reason: image not found :info:build make[2]: *** [gnuplot.gih] Trace/BPT trap:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.1/docs' :info:build make[1]: *** [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sour ces_rsync.macports.org_release_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.1' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources _rsync.macports.org_release_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.1' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsy nc.macports.org_release_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.1" && /usr/bin/make -j16 -w al l :info:build Exit code: 2 :error:build org.macports.build for port gnuplot returned: command execution failed :debug:build Error code: CHILDSTATUS 4227 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: targets not executed for gnuplot: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port gnuplot for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/gnuplot/main.log
I tried to 'sudo port activate libpng @1.4.5_0' and then install gnuplot again, but this time main.log says:
info:build Making all in docs :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.1/docs' :info:build ./doc2gih ./gnuplot.doc gnuplot.gih :info:build dyld: Library not loaded: /opt/local/lib/libpng15.15.dylib :info:build Referenced from: /opt/local/lib/libpangocairo-1.0.0.dylib :info:build Reason: image not found :info:build make[2]: *** [gnuplot.gih] Trace/BPT trap :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.1/docs' :info:build make[1]: *** [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.1' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.1' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/gnuplot/work/gnuplot-4.6.1" && /usr/bin/make -j16 -w all :info:build Exit code: 2 :error:build org.macports.build for port gnuplot returned: command execution failed :debug:build Error code: CHILDSTATUS 5106 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: targets not executed for gnuplot: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port gnuplot for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/gnuplot/main.log
Any guidance would be appreciated. Thanks!
Change History (10)
comment:1 follow-up: 3 Changed 12 years ago by larryv (Lawrence Velázquez)
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|---|
Port: | cairo added |
Summary: | Error: org.macports.build for port gnuplot returned: command execution failed → cairo: dyld: Library not loaded: /opt/local/lib/libpng14.14.dylib Referenced from: /opt/local/lib/libcairo.2.dylib |
Please re-activate libpng 1.5 (run "sudo port activate libpng @1.5.14_0"), then run "sudo port selfupdate" and "sudo port rev-upgrade" to rebuild anything that might still be linking against libpng 1.4 (such as apparently cairo on your system).
comment:3 follow-ups: 4 5 Changed 12 years ago by jp+macports@…
Replying to larryv@…:
Cairo should not be trying to link to libpng 1.4. What version do you have installed? You might want to update it, or at least rebuild it so it links to libpng 1.5.
The following version of cairo are installed: cairo @1.8.8_0+macosx cairo @1.10.0_0 cairo @1.10.0_1 cairo @1.12.12_0+x11 (active)
I just tried to 'sudo port upgrade cairo', but this fails with:
---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> Found 12 broken file(s), matching files to ports ---> Found 4 broken port(s), determining rebuild order ---> Rebuilding in order gnuplot @4.4.3 ghostscript @9.06 cairo @1.12.12 +x11 graphviz @2.26.3 ---> Computing dependencies for gnuplot ---> Building gnuplot Error: org.macports.build for port gnuplot returned: command execution failed Please see the log file for port gnuplot for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/gnuplot/main.log Error: Unable to upgrade port: 1 Error rebuilding gnuplot while executing "error "Error rebuilding $portname"" (procedure "revupgrade_scanandrebuild" line 382) 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_revupgrade $action $portlist $opts" (procedure "action_upgrade" line 25) 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 4785)
It looks like upgrading cairo is trying to build gnuplot, which seems cyclic...
comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to jp+macports@…:
---> Computing dependencies for gnuplot ---> Building gnuplot
This was not a clean build attempt. You're going to need to "sudo port clean gnuplot" before you'll be able to get any further.
comment:5 follow-up: 6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to jp+macports@…:
It looks like upgrading cairo is trying to build gnuplot, which seems cyclic...
No. After you upgrade or install any port, MacPorts runs the so-called "rev-upgrade" feature, which checks whether any installed ports have linking errors; if any linking errors are found, those ports are rebuilt. But the rebuild is failing, perhaps in part because it was not a clean attempt. Always clean ports before trying to rebuild them.
comment:6 Changed 12 years ago by jp+macports@…
Replying to ryandesign@…:
No. After you upgrade or install any port, MacPorts runs the so-called "rev-upgrade" feature, which checks whether any installed ports have linking errors; if any linking errors are found, those ports are rebuilt. But the rebuild is failing, perhaps in part because it was not a clean attempt. Always clean ports before trying to rebuild them.
Ok I guess that makes sense. So now I've tried 'sudo port clean cairo', 'sudo port clean gnuplot', 'sudo port selfupdate', and 'sudo port rev-upgrade'. The rev-upgrade fails with:
---> Computing dependencies for gnuplot ---> Fetching archive for gnuplot ---> Attempting to fetch gnuplot-4.6.1_0+aquaterm+luaterm+pangocairo+x11.darwin_10.x86_64.tbz2 from http://packages.macports.org/gnuplot ---> Attempting to fetch gnuplot-4.6.1_0+aquaterm+luaterm+pangocairo+x11.darwin_10.x86_64.tbz2 from http://lil.fr.packages.macports.org/gnuplot ---> Attempting to fetch gnuplot-4.6.1_0+aquaterm+luaterm+pangocairo+x11.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gnuplot ---> Fetching distfiles for gnuplot ---> Verifying checksum(s) for gnuplot ---> Extracting gnuplot ---> Applying patches to gnuplot ---> Configuring gnuplot ---> Building gnuplot Error: org.macports.build for port gnuplot returned: command execution failed Please see the log file for port gnuplot for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/gnuplot/main.log Error: Unable to upgrade port: 1 Error rebuilding gnuplot while executing "error "Error rebuilding $portname"" (procedure "revupgrade_scanandrebuild" line 382) 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 4785)
The gnuplot/main.log again gives the error:
:info:build dyld: Library not loaded: /opt/local/lib/libpng14.14.dylib :info:build Referenced from: /opt/local/lib/libcairo.2.dylib :info:build Reason: image not found
comment:7 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Ok, then rebuild cairo:
sudo port -n upgrade --force cairo
Then clean gnuplot and try rev-upgrade again.
comment:8 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Actually since MacPorts will automatically run rev-upgrade after any other upgrade or install, clean gnuplot first, then rebuild cairo.
comment:10 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Great, glad you got it working.
Cairo should not be trying to link to libpng 1.4. What version do you have installed? You might want to update it, or at least rebuild it so it links to libpng 1.5.